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.


Reply
 
LinkBack Thread Tools Display Modes
September 10th, 2013, 10: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:
Code:
#ifndef _SomeClass_Included_ 
#define _SomeClass_Included_ 
// Class declaration here 
#endif
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, 05:27 AM   #2
 
Joined: Sep 2013
Posts: 3
Re: Computer Science Question.

http://www.mymathforum.com/viewtopic.php?f=44&t=42661
gelatine1 is offline  
Reply

  My Computer Forum > Computer Science Forum > Computer Science

Tags
computer, question, science



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Little Man Computer question cduval04 Programming 2 July 4th, 2013 03:30 PM
Curriculum of computer science johnny Computer Science 9 March 16th, 2011 08:22 AM
Cryptography in Computer Science johnny Cryptography 5 February 28th, 2011 11:01 PM
New to forum am n00b with computer science cyber snake New Users 1 May 6th, 2010 08:15 AM





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