I see. Thanks again
Type: Posts; User: Roint
I see. Thanks again
I just have one more question; why exactly did you use this to obtain the option's value:
if ( strncmp( buff, optionKey, Keylen ) == 0 )
{
strncpy( optionValue, &buff[Keylen], optionLen );...
Thanks, everyone, you've all helped me a lot.
- Roint
I tried using the static array, but I need to be able to change the variable in the rest of the function. Here's the whole program (it's not very big) if this clarifies anything:
...
Why is it that when I pass a regular charcter array:
char optionValue[20];
as the return value to a function that uses a character pointer as it's return type:
char *funcName(int a,...
For console editors, I suggest:
nano - Extremely easy to use.
joe - fairly easy to use.
pico - much like nano.
For editors in X, I suggest:
nedit - designed for programming
xedit - comes with...
Ok. Thanks. I was just porting an MS-DOS program to Linux, and I didn't know wether to keep the clrscr() function of conio.h in it to replicate it as much as possible. I guess I should just avoid...
Since I use Linux, would you consider it bad programming practise to use STDIO.H's system() function to clear the screen like this:
system("clear");
I'm not experianced, (only a year in C++) but I vary rarely use functions other than "main()" unless I have to.
But this is from a 14 year old redneck, so don't go on that.
I'll list what I think are the levels of language, from LOW to HIGH.
Machine code
C
C++
Java
BASIC
AppleScript
Thanks everybody!
I've been learning C++ for about a year now, and it's the first lower-level language I've learned. Anyway, here's my problem:
I have a program with a
while() loop in it. Inside this loop is a ...