Every function has to be declared first. You can do it yourself if you want, but with standard functions it's like hitting a moving target. That's why we have standard headers. If you include...
Type: Posts; User: Noir
Every function has to be declared first. You can do it yourself if you want, but with standard functions it's like hitting a moving target. That's why we have standard headers. If you include...
int i = s[0];
I think you mean
int i = 0;
Your code is setting the index variable to whatever value is the first character in the string.
while( s[i] != '0')
I think you mean
while ( s[i]...
Yes. You don't have to worry about any pointers other than previous->next because you're deleting the last node and don't have to update any back pointers.
The first one catches exceptions thrown anywhere in the function. It's a special syntax designed for the intialization list in constructors. The second one I'm not sure about. I don't think it's...
unsigned int or unsigned long, I'd guess.
Self-improvement isn't a contest. You should only move at the right pace for you and forget about how fast other people are going. There's always going to be something you don't understand.
Very regularly. I use it to make the intention of my code very clear.
A conditional flag makes the code harder to follow and negating the condition adds unnecessary and often illogical...
That was bad wording on my part. I meant "text stream". Sorry for the confusion.
They won't work though. You can't jump to somewhere you haven't been yet and fsetpos() requires a successful call to fgetpos(). The only way to jump somewhere you haven't been is with fseek() and...
Why yes, since you asked so nicely. Here's the quote that says fsetpos() won't work because you have to have been to the position first and called fgetpos():
And here's the quote that says you...
Now you're saying something different and still not being clear. Here's one line:
c:\mybaby\storm\links.php
This is the path:
c:\mybaby\storm\
You get a gold star. :) gets() removes the '\n' from the stream but doesn't store it in the array. The standard tells you that, but you can also test it with a quick program:
#include <stdio.h>...
Nope, you can't do arbitrary seeking on a text file. It has to be opened as a binary file.
Can you describe that a different way? You're getting the file names, but what for? Are you throwing them away or using them? What do you mean by copy the path?
Because it's dangerous and shouldn't be used? ;) gets() doesn't allow you to stop reading when the array is full, so can end up writing past the end if the array and breaking all kinds of things. Use...
I don't believe that. Can you prove it?
You need to return a string instead of a character.
I'll make this as simple as possible because you look like you don't understand what everyone else has told you.
NO
Someone please close this thread.
Here's some code for cin that encrypts with 3. You probably want the key to be set once and used for every character instead of a different key for each character. That way you don't have to keep...
So what's the problem?
Look up strtok(), but I'm not sure that's what you really want. Can you describe your problem a different way?
Yeah.
Looks okay. If the list is empty, you add a node at the front. If the list isn't empty, you add a node ad the end. I don't think createnode() is good though because it doesn't return an error status...
Lining things up really only works if the data isn't being entered dynamically or if you're only entering one thing at the end of the line like with the id and payrate. You have to hit enter to send...
_getch() isn't portable, you should be using getchar() instead. It doesn't do exactly the same thing, but it's close enough not to matter.
It makes sure that the message is really printed before...