The thing is the professor required us to read negative numbers and numbers that are more than one digit via getchar()... so is there any way whatsoever. Pretty much the user has to enter a number...
Type: Posts; User: Deerman
The thing is the professor required us to read negative numbers and numbers that are more than one digit via getchar()... so is there any way whatsoever. Pretty much the user has to enter a number...
Is it possible to read negative numbers (-93, -9) and numbers that are longer than one digit (269) via the getchar function?
I've searched the web but to no avail.
If it's possible how can it...
I ran that command in the run box, but nothing happened.
But, even if I can execute the command via run would it be possible to get the date that the user selects (Month & Day)? Or do I have to...
Well, I've seen some applications that have a calendar that is identical to the the one one Microsoft windows (double click on the time and it will pop up). I'm wondering this available via some...
I am fairly new to C/C++. I was wondering if it was possible to access the calendar that is provided by windows in application. Can it be done by some library call?
If possible, can I integrate it...
I am new to C...
I tried to declare a global char array and initialize it in the main method but the compiler wouldn't let me.
The only way around it (that I could think of) was using a char...
I am trying to convert code from Java to C. I am sure I have done something wrong but I cannot figure out; can anyone see the problem?
// Java
public void rotate(int newSize)
{
int i;
...
That <Windows.h> still doesn't fix the problem it gives the same result as system("Sleep 3s").
The final printf is still not showing.
The sum of num1 + num2 + num3 is 0 for some reason.
#include <stdio.h>
int main(void)
{
printf("Please enter three numbers and I shall return the average.\n");
int num1 = 0;
int num2 = 0;
int num3 = 0;
double mean = 0;