My Computer Forum Computer Science Forum

Go Back   My Computer Forum > Computer Science Forum > Computer Science

Computer Science Computer Science is the scientific and practical approach to computation and its applications.

LinkBack Thread Tools Display Modes
September 10th, 2013, 09:33 AM   #1
Joined: Jul 2013
Posts: 4
Computer Science Question.

This is the question on my homework.

1) An include guard, typically in the form of:
#ifndef _SomeClass_Included_ 
#define _SomeClass_Included_ 
// Class declaration here 
Is used to prevent a header file from being included twice in the same implementation file. What happens if a header file declaring a class gets included twice without an include guard in place?

So if it did not ignore the class being defined, would it essentially just re-copy the data of that class into the first class defined - causing an error? Would that be a sufficient answer? :ugeek:
Shamieh is offline  

My Computer Forum is free to register and we welcome everyone!

September 14th, 2013, 04:27 AM   #2
Joined: Sep 2013
Posts: 3
Re: Computer Science Question.
gelatine1 is offline  

  My Computer Forum > Computer Science Forum > Computer Science

computer, question, science

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Little Man Computer question cduval04 Programming 3 December 29th, 2017 11:58 PM
Curriculum of computer science johnny Computer Science 9 March 16th, 2011 07:22 AM
Cryptography in Computer Science johnny Cryptography 5 February 28th, 2011 10:01 PM
New to forum am n00b with computer science cyber snake New Users 1 May 6th, 2010 07:15 AM

Copyright © 2019 My Computer Forum Forum. All rights reserved.