How do I make a C program?
400603
Those mentioned above (Visual studio) are fine but for beginning I'd recommend something smaller and simpler... try devC++... it's free and can be found at bloodshed.net...\n\nthen (just to keep the tradition) write something like this:\n#include<stdio.h>\nmain()\n{\nprintf("Hello World&#92;n");\ngetchar();\n}\nThen hit f9 to save the file, compile it and run...
368941
I can help you with this program in C (not C++).\n\n#include <stdio.h>\n\nint a;\n\nvoid main(void)\n{\n   for(a = 0; a <= 1000; a++)\n   {\n       printf("%d&#92;n", a);\n   }\n}\n\nThe above program lists numbers starting from 0 to 1000.\nYou can modify the program to add up all those numbers if that is what you want.\n\n#include <stdio.h>\n\nint a, sum = 0;\n\nvoid main(void)\n{\n   for(a = 0; a <= 1000; a++)\n   {\n      printf("%d&#92;n", a);\n      sum = sum + a;\n   }\n   printf("Sum = %d", sum);\n}\n\nThis program prints and also finds the sum to 1000 numbers starting from 0!
81883
Details of the algorithm for conversion along with\nsource program written in C can be found at.\nhttp://www.codepedia.com/1/Art_Expressions_p1\n\nA good short article on this topic.\nhttp://www.cs.man.ac.uk/~pjj/cs2121/fix.html
1048980
http://www.cprogramming.com/tutorial.html\nhttp://www.cplusplus.com/doc/tutorial/\nhttp://visualcplus.blogspot.com/\n\nall taken from yahoo seach. you can search for c c+ tutorials and come up with hundreds if these don't do it for you.
814965
what c++ program are you referring to ...anyway the syntax is\n\n#include<iostream.h>\n#include<conio.h>\n...include all the header files here ..\n\nint count()\n  {\n     function body\n     return value #integer value to be returned \n\n  }\n\nother functions\n\nvoid main() \n\n   {\n\n# this is the main function \n\nint a,b,c;\nfloat al,bl;\nstring str;\n\n#declare the variables\n\n#get the inputs from the user\ncout<<"enter the value of a ";\ncin>>a;\n...\n...\n\ncall the functions\n\nb=count()\n..\n#do what ever processing has to be done\n } # program closing curly braces\n\n\nhope this helps\n\nthis is a excellent c++ tutorial \n\nhttp://www.geocities.com/sstutor\n\ncprogramming.com is also pretty good
750295
check out http://www.planet-source-code.com for examples.  I don't do C, but I use that site all the time.
423103
#include <stdio.h>\n#include <stdlib.h>\n\nint\nmain(int argc, char* argv[])\n{\n  int count = argc>1 ? atoi(argv[1]) : 10;\n  FILE *f = fopen("numfile", "w+");\n  if (!f)\n    perror("fopen"), exit(-1);\n  for (int i=0; i<count; i++)\n    fprintf(f, "%d&#92;n", rand());\n  fclose(f);\n  return 0;\n}
785470
There are numerous ways to do that. \nHere is, probably the simplest:\n\nchar *s="char *s=%c%s%c;%cmain() {printf(s,34,s,34,10,10);}%c";\nmain() {printf(s,34,s,34,10,10);}\n\nThe program itself is fairly useless.\nThe whole point of an exercise like this is the satisfaction of finding a solution yourself. Too bad, you did not give yourself a chance
760548
Well, you can find a lot of C source code at the URL below, though you may need to modify a thing or two to use it under Turbo C and any Windows code won't likely work.
980273
1. name your source code with .c extension.\n2. type gcc <sourcefilename.c> or cc <sourcefilename.c> \n3. your source code will be compiled and the output file is named as a.out.\n4. type a.out at the prompt to execute your program.\n\nBy default all compiled files will be compiled to a.out output file as a executable. \nyou can change this with optional parameter \n-o<newoutputfilename>
1161264
The above answerer is slightly wrong.  C++ holds a subset of C, it is not the complete C language.\n\nApart from that, You should be able to get a program that executes in C, not in C++.\n\n/* hello.c -- The most famous program of them all ..\n */\n\n#include <stdio.h>\n\nint main(void) {\n  printf("Hello World!&#92;n");\n}\n\nGot from http://www.cis.temple.edu/~ingargio/cis71/code/hello.c
676530
In c++\n\n#include <iostream.h>\n\nint main(int argc, char* argv[])\n{\n printf("Hello World!&#92;n");\n return 0;\n}
348911
#include <stdio.h>\n#include <strings.h>\n\nint\nmain(int argc, char* argv[])\n{\n  char *token, *string = argv[1];\n  int count = 0;\n\n  while ((token=strtok(string, "&#92;t ")) != 0) {\n    count++;\n    string = 0;\n  }\n    \n  printf("String has %d words&#92;n", count);\n\n  return 0;\n}\n\n\nAnd to show that it works:\n\n$ cc cw.c\n\n$ a.out "this is a simple test"\nString has 5 words
811310
Apart from the obvious:  how can I use functionnalities defined in it, I don't see what you are trying to find out.  \n\nanyway if that is what you need, this is done by placing this line at the top of your  .c file\n\n#include <graphic.h>\n\nOtherwise try to be more explicit about what you need
469705
Basically you'll need to open a port on each of the two processes, and send a packet between them to communicate.  Generally that will be structured as a sending/"talking" process and a "listening" process to catch the sent packet. In C, you'll need to check the library for the operating system and compiler you're using to find the appropriate functions.  Look under "low level IO", usually.
1077694
I suggest you visit a site like www.sourceforge.org or www.programmersheaven.com. There are many open-source, game projects written in C.
253284
#include <stdio.h>\n\nint main(void) {\n\nint i, j, count; //C Sucks, wait till you take java\n\nfor(i=1; i<=1000; i++){&#92;&#92;goes through all numbers 1 to 1000\n    count=0;\n    for(j=2; j<i; j++)&#92;&#92;goes through all numbers 2 to i\n    {\n     if(i%j==0)&#92;&#92;checks to see if it i is evenly div. by i\n        count++;\n    }//nested for\n    if (count ==0)\n        printf("%d&#92;n", i);\n}//for\n\nreturn 0;\n}//main\n\n\n//Hope that helps!