Elysia, im showing the code 'as is'. im pretty sure you saw i said 'algorithm' in
my post above.
Type: Posts; User: ComputerWarrior
Elysia, im showing the code 'as is'. im pretty sure you saw i said 'algorithm' in
my post above.
well, the outcome is simple to predict. 'i' is set to zero
at the start of your program, then in main() 'i' is printed
and then incremented by one. main() calls val() then,
val() sets 'i' to 100,...
fprintf is like this:
fprintf(FILE *stream, char *args, ...);
so to write integer 'Cash' to FILE stream:
(Future) Career: C with OpenGL.
Hobby: making 2D games and Computer Troubleshooting.
oh well, Computer Troubleshootings is also a hobby for me! it think that began
when by computer got a failure...
its a fairly good book for beginners.
sorry 'bout that, i was in a hurry so i must have forgotten the && signs...
thanks for pointing that out pheininger!
while this may or may not be related, knowing Win32, OpenGL (or DirectX),
and afew other major APIs will give you a good chance to have success.
I got Turbo C from Brothersoft:
im not sure about TASM though, since im not much into
assemblers. and the TC i have is v3.0...
Cheers, ComputerWarrior.
you may use getch() instead of getchar(), getch() is included in conio.h
example:
#include <stdio.h>
#include <conio.h>
int main()
{
the game is not bad, as far as ASCII games go. but what has this to do
with a contest? this topic should have been in the General Discussion
board.
HWND hEdit =CreateWindowEx(WS_EX_CLIENTEDGE,"EDIT",
"Type Text Here",WS_CHILD|WS_VISIBLE|WS_HSCROLL|ES_AUTOHSCROLL,
0,0,100,20,hwnd,(HMENU)SOME_KIND_OF_ID,GetModuleHandle(NULL),
NULL);
put...