Here is the errors I am getting:
project7.c: In function `choices':
project7.c:82: warning: passing arg 2 of `delete' makes pointer from integer wit...
Type: Posts; User: awkeller
Here is the errors I am getting:
project7.c: In function `choices':
project7.c:82: warning: passing arg 2 of `delete' makes pointer from integer wit...
I am getting the following errors for my program:
line 138: unterminated string or character constant
line 35: possible real start of unterminated constant
For the program I am supposed to allow...
i need help quick, how do i get my program to print the total moves????? thank you. here is my code:
int towers(int, int, int, int);
int level[3];
int main()
{
/* Gets input from user */...
I tried figuring out how to print the total moves, I tried the following but it always says "Total moves: 1" no matter how many disks i enter.
#include<stdio.h> ...
Where and how would I add a part in my program that tells how many moves were done? here is my code:
#include<stdio.h>
void...
Stone_Coder
What is the code in C not C++?
I have to write a program that the user enters the number of disks from tower 1 to tower 3. The rules are: only one disk can be moved at any time and no disk can be placed on top of a disk with a...
If you can't say anything nice, then just keep your damn mouth shut. Just because you may be somewhat of an expert, doesn't mean you put down everyone else. If you don't like what they posted or...
why are you floating n if you want them to enter an integer?
so would this work forl array t[2][5]?
for (row=0, row < 2, row++)
for (column=0, column < 5, column++)
t[row][column]=0;
is this right?:
for (row = 0; row <=2; row++)
t[row][5] = 0;
for (column = 0; column <=5, column++)
t[2][column] = 0;
im still tryin to figure out the part about printing the elements of the...
How would I write a nested for statement that initializes each element of the array t[2][5] to zero?
Also how do I display the elements of the first row of array t[2][5]?
Thank you.
My code is part of a calculator program. it computes
4
*
4
E
and then gives the answer 16 which is correct but if i do more than 2 numbers, the answer is completely wrong giving crap. why does...
what does a segmentation fault mean????
My program is to calculate the value of an expression involving arithmetic operators. The expression should be evaluated based on operator precedence. The program should prompt the user to input the...
I'm not asking anyone to do my homework but I am desperate to get help. I need a huge boost in the right direction. My program is to calculate the value of an expression involving arithmetic...
for my math program, how do i tell it to carry out the operations, for example if the user entered:
3
*
9
-
2
+
5
E(termination character)
How do I write a line in a program that will terminate the program if the user enters E?
for example they will be doing a math problem and it should go like this:
34
*
2
+
9
/
3
E (this...