Thank you
#define TAB '\t'
worked fine!
Type: Posts; User: tikelele
Thank you
#define TAB '\t'
worked fine!
Hi,
I want to define something and I need direction on it.
I want to define a comma (,) and the tab escape ('\t'), so I can use them later. Would it be:
#define TAB \t
#define COMMA ,
actually that did not solve it at all. It made it worse.
I compiled it as is with VC++ and that is where I got the warning.
I compiled same code with gcc and no warnings at all.
Must be MS....
what a knucklehead I am!!
Thanks.
er
return (array[])
thanks Elysia for the reply.
so: return ( int array[] )
Hi all,
I utilized all of the function help I got before and I am close on this one:
#include <stdio.h>
#include <math.h>
#define NumElements 5
as always...
You are good with producing explanation.
Thank you Mats
Thanks Todd. Poor choice of words "can I get away with". All I really meant to ask was if I am "over doing" it as in is it necessary to do. I originally had int UpperString (c){ something} and I...
ok i did
int UpperString(char c)
{
c = toupper(c);
return(c);
}
I did this and placed it before main():
int UpperString(c)
{
c = toupper(c);
return(c);
}
Alrighty then. First I thank you both.
Now, I tripped and fell over this: :)
I suppose I need to put:
return (c);
I get the following warnings:
cap.c: In function `main':
cap.c:19: warning: implicit declaration of function `UpperString'
cap.c: At top level:
cap.c:27: warning: return type defaults to...
Hi all.
I don't need help on writing this as much as I have a question.
#include <stdio.h>
#include <string.h>
#define MaxStringLength 150
it is SPIN language
http://en.wikipedia.org/wiki/Spin_(programming_language)
Your best bet it do do it in C and work on it. Post code (yours) that you don't get and the programmers here will...
hmm, I don't think I need this after all:
for( i = 0; i < NumProducts; i++ )
{
if( inputID == Product[i].id )
{
break;
}
}
@ eXeCuTeR - The only answer I have for that is...I have to, it's part of the deal.
@ Elysia - I know the variable is full of garbage, I am reading and searching and didn't see anything on how to...
ok thanks
I declared
Product product;
with the rest of the declarations and now I get:
the variable 'product' is being used without being initialized.
here
good advise thanks
Hi,
I know I am not done with this, but I get an error that I don't know how to fix.
I am trying to lower the inventory count of this data file.
named productdata.txt
id, price, and count
FAQs
shudda known!;)
Thank you
MacGyver
@MacGyver (or anyone else who knows)
I wanted to know what the consequesces of using feof() as the loop control. I changed it to the proper fgets() but I am curious because feof() worked. I am...
yes it does. at first it didn't because i had a typo
Thanks all!
i did but i cant get it to stop at the end of the file
i beleive i have it.
while (!feof(myfile))
{
fgets (fileName , sizeof( fileName ), myfile);
fprintf( newfile, "%s", fileName);
}