Ok let me explain this in english. I have a project with DOS commands like dir, traceroute, ping ect. eventually they will all be compilled into 1 program then turned in. Each command program has to...
Type: Posts; User: Seph_31
Ok let me explain this in english. I have a project with DOS commands like dir, traceroute, ping ect. eventually they will all be compilled into 1 program then turned in. Each command program has to...
scanf() is just a primitive way to get input. If he does not want to get into a complicated fgets() the he doesnt have to. scanf() works fin for me when doing simple things.
READ MY EARLIER POST : I HAVE TO DO A PROJECT WITH DOS COMMANDS AND I AM ON PING. I AM NOT TRYING TO FREAKIN DOS SUM1 BECAUSE IT IS LAME AND DOESNOT WORK NE MORE UNLESS U HAVE LIKE A T3...
Sry about not indenting my compiler craps out when i indent. But how would I spawn count processes in the for loop running pinger?
No its a project I have to do with using DOS commands in C so i just chose ping.
The problem is in the for loop. No matter what I put in that for loop, it just restarts the program. Even if i...
When I do that, it just gets to the for loop and restarts the program. I want it to open how ever many int count is windows running the ping of the website with however many bytes. It all seems to...
Ok heres the code so far. When I run it and it gets to the part where it starts the ping process, it just gets an error and closes. What i want it to do is to open a dos window and ping in the for...
I have a ping program that will just ping a site a bunch of times and im trying to add input to a string but it wont work. Heres the code:
#include <inc.h>
int count;
char site[32];
char...
thx and two more questions, how do i display the grid( is it just printf("%c,grid[x][y]) and how do i see if the user pressed the arrow keys Left, down , right, or up?
i think its just winsock.h
I am making a snake game (just in command prompt) and I want to setup a grid that has kinda x and y values like a matrix.
1 2 3 4 5 6 7 8 9 10
1 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0...
wouldnt that just waste memory though. Like if i never used anything from math.h, it would be included into the program anyway and that would make the program bigger.
When you start a program, you have todo includes like stdin.h, conio.h, string.h, and ect. How do you know when to use them.
There are a bunch of ways to make the main part of a program like int main() and int main(void) and void main ect. What are the types and how are they used?
umm thats unix not winsock
I have been looking for a while and have yet to find ways to connect to servers and send data ect. I was wondering of anyone could tell me how to conenct to a server then send a string to it....
How do i make a random interger and set the min, max?
#include <stdio.h>
/* Random int here */
int randomint = 0;
int main()
{
printf("%d",randomint);
return 0;
Thx for everyone's help here if the final source code if any1 wants it.
#include <stdio.h>
#include <conio.h>
#include <windows.h>
char * Drive[32];
int bleh = 0;
int main()
{
Also I was wondering if any1 could post some C code that would be a small windows app with a list box and it pings something then displays the results in the list box
I did a search for fullscreen start but I only came back to this thread and the other threads I found were in C++ and had a bunch of Glut things that i did not have. Could some one just show me how...
But I have seen programs with buttons and such written in C. I don't want to have to learn C++ just yet to do a windows app with a button. Heres and example: A program that has a button that says...
I am new to OOP with C and dont really understand it. Could anyone give an example of how do like add a button and use its functions to a windows app?
Thx for the help but does anyone know how to make the program start fullscreen like if you were to press ALT + ENTER in the DOS shell?
And for the above posts: Im not trying to really destroy a...
Hello I am a beginner at C and was wondering if anyone could help me out. I am trying to make a prank program that pretends to delete your whole computer. I wanted to know how to spin the A drive to...