User Profile

Collapse

Profile Sidebar

Collapse
ShawnRR
ShawnRR
Last Activity: Sep 15 '07, 10:48 AM
Joined: Aug 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ShawnRR
    replied to Formatting C output
    in C
    RRick,

    I totally agree with you except that the programming exercise specifically asks to use E or e as the break point....
    See more | Go to post

    Leave a comment:


  • ShawnRR
    replied to Formatting C output
    in C
    Savage the only problem with Sicarie's answer is that scanf automatically seems to continue to the next line when user inputs his value. I know how to make the printf print on the same line before the user input but i want to printf on the same line after the user input. Also on storing number in a char array can you give me a sample code on how i would than do the arithmetic operation using that char array since the user inputed numbers are stored...
    See more | Go to post

    Leave a comment:


  • ShawnRR
    replied to Formatting C output
    in C
    Savage,

    My problem is both. I want the program to exit when i type 0e and also i want to be able to output with printf on the same line where i input with scanf.

    thanks
    shawn...
    See more | Go to post

    Leave a comment:


  • ShawnRR
    started a topic Formatting C output
    in C

    Formatting C output

    Hi all,

    This program is an easy "printing" Calculator... the problem i am having is that when I type in "0e" or "0E" for the program to exit it thinks i am typing in an exponent value and does not exit unless i type in "0ee" or "0EE". My question is how do i change this code around so when i type in "0e" or "0E" it exits the program.

    Here is the code:...
    See more | Go to post
    Last edited by Ganon11; Sep 13 '07, 01:46 PM. Reason: added =cpp to CODE tags

  • ShawnRR
    started a topic Can't get this to work in Visual Studio 2005
    in C

    Can't get this to work in Visual Studio 2005

    Hi,

    I am learning C using VS2005 and I can't get this code to work. It is out of the book but it does not compile and run. What am i doing wrong?

    Code:
    #include <stdio.h>
    
    
    int main (void)
    {
    	int    integerVar = 100;
    	float  floatingVar = 331.79;
    	double doubleVar = 8.44e+11;
    	char   charVar = 'W';
    
    	_Bool boolVar = 0;
    ...
    See more | Go to post
No activity results to display
Show More
Working...