When you build Win32 Application you'll have a WinMain() as the entry point of the program, a Win32 Console Application will use main()
Try rebuild the workspace with Win32 Application.
Type: Posts; User: Mercury_Linx
When you build Win32 Application you'll have a WinMain() as the entry point of the program, a Win32 Console Application will use main()
Try rebuild the workspace with Win32 Application.
First of all, read http://cboard.cprogramming.com/showthread.php?threadid=25765
1. After that you have to actually call getletgrade() to give you back a value.
Something like:
printf("the...
If you declare your struct like this:
typedef struct {
type1 id_list1;
type2 id_list2;
.....
}struct_type;
you can declare a struct variable like this:
Two things to makesure:
1. Implementation of that function, do you have a function body for all the function you've declare in the .h file?
2. If you're using VC++ or some IDE, is the .cpp...
If you have access to Win32 APIs, GetConsoleScreenBufferInfo can help you.
I don't think there is a portable way to get console cursor position anyway... Anyone else?
That is due to you made a call to
scanf("%d", &opt);
When you key in a value and hit Enter, the value is taken into opt but scanf leave a '\n' character in the stdin, and when gets comes along...
Try your luck at www.visualbasicforum.com
Only use MFC when there is no other posible solution without one... adding MFC will make your program have more dependencies.
MFC also uses some number of TLS, which might given you problem on...
If you're using gcc, download rhide as well, it's the best IDE that goes with gcc :)
Opps ;p ... Found out about that just now ... Hm... how do I remove post?
Hm... I had a program that need to recurs pretty deep before. I realise that going too deep will cause a stack overflow (duh)
So... what I did is to segment out the data chunck, and run the...
Try your luck at http://www.visualbasicforum.com
How did you check for End Of File? Snippets please?
What do you mean by "good" compiler? "good" as in it doesn't delete your file quitely? Auto-type your code while you're asleep? It's free?
Cheers :)
Yeah that will work :)
side note:
you probably need to change the following line
int *array = malloc(SIZE * sizeof( int ) );
to
Use ShellExecuteEx, and pass in LPSHELLEXECUTEINFO struct which contain your parameters.
Well, if you decided to move to C++ here's a dynamic array class that I've been using, you might interest in it.
Are you saying that you write a struct to a file and fail to read it back? It could be due to the padding that the compiler normally added to your struct during compilation for optimisation purpose. ...
Well, to keep things simple to yourself and not screwing your own mind ;) Use Class when you build reusable operational object, and Struct for data object only.
What do you mean by DOS? DOS 6.0? Or is a console app with DOS box in Win32 system?
If you're running a Win32 DOS box, just use Winsock :)
I'm not sure if the stack size is the root of the problem (too sleepy to read it thru yet... might do it tomorrow :)
Anyway, there is a "limit" command which you can use to increase the OS stack...
Well, here's an interest piece of software where you can check out...
http://www.guardware.co.uk/
PCB *pcb; <--- This is wrong
pcb->priority=0; //Error here
by declaring pcb as a *pcb, you only created a 4 byte pointer to a PCB struct, and since you did not...