First, I'd double check the cable connecting the computer w/internet to the hub. Then you probably want to double check it's netword card to make sure it didn't die. The fact that it can't see...
Type: Posts; User: drharv
First, I'd double check the cable connecting the computer w/internet to the hub. Then you probably want to double check it's netword card to make sure it didn't die. The fact that it can't see...
Here's how you'd use strtok(), with comments.
#include <stdio.h>
#include <string.h>
int main()
{
Yes, print me now will loop until y=x, then it will start all over again with x=4. That probably answers your second question, the block of code is executed, then the increment/decrement takes place.
A nested for loop runs it's entire length then goes back to the original. If the original condition is still met, it runs the entire nested loop again.
for example
int i,j;
for( i=0; i<3;...
It's working, I guess it was the '&' . Thanks
I was wondering if anyone knows the correct way to use fopen to open a file in a location like "Documents & Settings".
I tried this
fptr = fopen("c:\Documents & Settings\filename.txt", "r"); ...
I'm not sure what you mean by saving it. You are saving it in a buffer as it is, and you could do all thw work you need within the loop. But I do have a suggestion for you - drop the for loop and...
and yes, i think it would. You said that address held the address you wanted.
You said that the variable address contained the address that you wanted. If this is true, then just set pointer2address equal to it without the '&' operator. The '&' is used when you want the...
If address holds a memory address already, then you don't need the '&' operator in front of it.
int *pointer2address = address; //should work
You need to be sure address points to the...
Am I the only one that finds it ironic that your compression program is downloaded as a zip? Not trying to make fun, I think it's awesome that you wrote this. Just thought it was a little humorous....
I am a computer engineering student now, and i can take all of the programming classes the comp sci take and use them to graduate. I just have more choice in my electives. At my university, the...
I am pretty familiar with C, and would like to be able to produce some nicer gui's for my programs. I have worked on a little C++ using the MFC, but would rather not use that to achieve a prettier...
still not sure why the first method didn't work, but using a second count worked. Thank you very much!!!!!
Ok, I have a text file that I am reading into buffers, and it breaks after around 107 lines of the file have been scanned. Any help would be greatly appreciated.
void ReadFile(struct...
try defining fname without #define. maybe something like this...
>const char fname[5] = "a.f";
You maybe getting the error because it doesn't realize that fname is the char[] type.
Ok, I am just starting to play with C++ and have written a class that opens files for practice. Does anyone know why this is not opening the files? (or if it is, why it is not exiting) I am sending...
I have been wrong many times before and maybe again here, but I think EOF in Windows is Ctrl-C.
Just check to see if they entered 'Y' and then you have two options.
1. Set the record values to a pre-set identifier like '-1' so that you know it has been deleted. Then just set your options...
If your compiler supports it, use getch(). It takes in a character then proceeds without the user having to press enter. Otherwise, make your menu say "press enter to continue" and use getc() or...
If you didn't have the gotoxy() there, it would print a space right after the original position. The gotoxy moves it back so that the space prints over the '*' and not after it.
::EDIT:: Sorry,...
First thing that I spot is the GetDisk() function.
This function makes a copy of num_disk and changes it, not the original. Try this;
int GetDisk(void)
{
int num_disk;
...
Have you even tried to build the functions? If so, let us see.
Don't you have to use an escape sequence to represent a '/'? I think '//' just represents a single backslash. Try '///' or '////' to represent two of them.
Or, it could be the fact that you are...
I don't know about VB, but I think your problem is you are using a character when you need a string and vice-versa.
arrayName[0] = a single character(the first letter)
arrayName =...