Search Results

Search: Posts Made By: metal005
Forum: Programming 12-08-2011
3,030
Posted By Corona688
You'll never find the "right answer", since other...
You'll never find the "right answer", since other people probably don't have the same problem as you word-for-word, letter-for-letter, keystroke-for-keystroke.

Try breaking it down into steps...
2,386
Posted By pludi
It's a simple typo: you declare and use void...
It's a simple typo: you declare and use void Output(int,int,int);, but defined is void Ouput(int nGround, int nPower, int nDecimal)
Forum: Programming 09-19-2011
3,002
Posted By Corona688
An array of characters is a string. Stick a '\0'...
An array of characters is a string. Stick a '\0' on the end and you can print it just like that with puts, printf, and so forth, as well as strcpy it, etc.
#include <stdio.h>

int main(void)
{
...
1,453
Posted By Corona688
#define zero 0; Remember that #define does an...
#define zero 0;
Remember that #define does an entirely literal text substitution. It's not anything like a variable or alias.

So you get while(iNumber!=zero) turning into while(iNumber!=0;)...
6,159
Posted By methyl
@metal005 Your script as posted contains syntax...
@metal005 Your script as posted contains syntax and logic errors. Needs to be an OR test and all variables should be quoted because we need to look at empty variables.

Maybe you meant:

#...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy