Well that was my next option, as it would be very easy to do. Although I could've sworn there was something built-in that could do this for me and save me a couple lines of code and a function call.
Type: Posts; User: Mr Moe
Well that was my next option, as it would be very easy to do. Although I could've sworn there was something built-in that could do this for me and save me a couple lines of code and a function call.
I can't seem to remember how to use the fill() function, or at least that is the function I think I'm wanting to use.
I need to fill a line with x number of a certain character, say a '*' or "-"...
Ok, I threw that in. Now it seems to be skipping something, in the wrong way. ;)
After I enter in what record to update, it should display the first entry in that record to update. However, it...
I'm working on an update function for my program. Here's how the function works out-
The user enters in a record they want to update, each record contains 3 entries. The user is presented with...
Thanks, I think I got it to work, here is the code-
char ip_address[16] = "";
char *tokptr;
int octet_count = 0;
cout << "Enter an IP: ";
cin >> ip_address;
I'm looking to retrieve bits of information from a char string.
Basically I get a string with delimiters in a few spots, then I have to get the substrings between each of those delimiters.
For...
Hm, thanks for the suggestions guys. I'm doing this program for a class, and we haven't covered link-lists or vectors yet, so "technically" we can't use them.
Is there any other way to do it,...
Hi, what I'm doing is reading in information from a binary file, and storing that information into an array of structs. Here is that bit of code. Record in this case is my base struct.
int...
Thanks a bunch guys, I'll give some of that a shot. I really appreciate the help ;)
Actually the tab will work perfectly. Thanks! I knew it had to be something simple that just wasn't coming to mind.
New here, thought I'd start off with something easy. ;)
Ok I have this function that converts an (int) into a 4 octect IP address, storing each octet of the IP into an array. To output this as a...