![]() |
|
#11
|
|||
|
|||
Re: Convert to structureCPP / C++ / C Code:
its work in the compiler...showin output Hello world.... |
|||
|
#12
|
|||
|
|||
Re: Convert to structureOk, let's add the structure definition to it:
CPP / C++ / C Code:
Now, try to compile again. |
|
#13
|
|||
|
|||
Re: Convert to structurecan execute without any error,,,show the output Hello World....
|
|
#14
|
|||
|
|||
Re: Convert to structureNow, let's add the Student struct
CPP / C++ / C Code:
My best guess is that this will give you the error. If so, change it to: CPP / C++ / C Code:
|
|
#15
|
|||
|
|||
Re: Convert to structureits executable if use
CPP / C++ / C Code:
and the output is Hello World |
|
#16
|
|||
|
|||
Re: Convert to structureWell keep on adding stuff like that until it breaks!
Then fix it. If you have trouble fixing it post back with the code and error. |
|
#17
|
|||
|
|||
Re: Convert to structureCPP / C++ / C Code:
the errors shown here is Code:
|
|
#18
|
|||
|
|||
Re: Convert to structureNo, you added a whole bunch of wrong stuff.
BUILD your program ONE piece at a time. 1- Go back to where you had a good compile above. 2- add ONE statement. 3- compile and run. Repeat 2 and 3 until you get the first problem and post us then. |
|
#19
|
|||
|
|||
Re: Convert to structureok...let start one by one...now i added 2 statement there....and shows 2 error.
CPP / C++ / C Code:
Before add this statement ,there is no error... CPP / C++ / C Code:
After add the above one...its show 2 error that is Compiling... g.c C:\Users\Viper\Desktop\g.c(14) : error C2449: found '{' at file scope (missing function header?) C:\Users\Viper\Desktop\g.c(16) : error C2059: syntax error : '}' Error executing cl.exe. g.exe - 2 error(s), 0 warning(s) |
|
#20
|
|||
|
|||
Re: Convert to structureWell in those two items there are several mistakes and there are some other things you should change as well.
Let's start with this... CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
CPP / C++ / C Code:
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Structure with in a structure | knockout_artist | C Programming Language | 3 | 19-Dec-2007 12:08 |
| Allocating memory to a structure | Printisor | C Programming Language | 4 | 29-Jun-2007 09:00 |
| Convert the input into square yards | pjpav | Java Forum | 1 | 08-Oct-2005 08:43 |
| [CONTEST?]Data Structure Test | dsmith | C Programming Language | 2 | 06-Jun-2004 16:13 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The