User Profile

Collapse

Profile Sidebar

Collapse
cworld
cworld
Last Activity: Apr 5 '07, 10:16 AM
Joined: Jan 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cworld
    replied to problem in using ungetch( )
    in C
    Thankyou Jo for your quick response.
    but still i m getting error:
    *************** *************** *************** ******
    error C2660: 'ungetc' : function does not take 1 parameters stack.cpp
    *************** *************** *************** ******
    Actually i am taking input from keyboard so it should return character to the keyboard, but it does not work.

    any idea?

    cworld...
    See more | Go to post

    Leave a comment:


  • cworld
    started a topic problem in using ungetch( )
    in C

    problem in using ungetch( )

    Hi all
    I am making an RPN calculator in which i want to read data from input. so i used getchar( ) and able to read character by character. But when the while condition fullfill then it comes out from the loop but retain the next character read from input so i want to ungetch to the input. but it does not work. Plz help me, my code is:
    Code:
    /******** Program for Read_Input Function**********/
    
    # include <stdio.h>
    ...
    See more | Go to post
    Last edited by Ganon11; Apr 5 '07, 02:22 PM. Reason: code tags added

  • cworld
    replied to how to combine more than two programs....
    in C
    thanx
    i will check it out....
    See more | Go to post

    Leave a comment:


  • cworld
    replied to how to combine more than two programs....
    in C
    Thankyou sir,
    I am using VC++.I will declare the variable in header file as extern variable. It means i need one header file in which i can declare variables then include the header file in each file. So then do i need to compile each program separately other than main file.
    thankyou in advance to clear my doubt once again.
    cworld...
    See more | Go to post

    Leave a comment:


  • cworld
    replied to how to combine more than two programs....
    in C
    thankyou sir
    i will try it now....
    See more | Go to post

    Leave a comment:


  • cworld
    started a topic how to combine more than two programs....
    in C

    how to combine more than two programs....

    i have written a program in C for RPN calculator. In this i have made four function and a main ( ) and stored in same file. But now i have stored each function in a different C file and one header file and want to run it.
    So i am getting some errors. My doubt is that whether i have to run each file before i run Main file OR whether i should make headre file more than one.
    I have stored all file in the same folder. Help me !! or suggest...
    See more | Go to post

  • Yes ! you first define third array then read the contents from Array 1 and store in array 3 (size 20) then read contents of array 2 then store in array 3 but after 10th position and then you can arrange them in ascending order.
    In fact there are many ways of doing this first give your code.
    cworld...
    See more | Go to post

    Leave a comment:


  • cworld
    replied to error: parse error before 's'
    in C
    can not find line 26 . your code is not understandable! !!!!!!1...
    See more | Go to post

    Leave a comment:


  • cworld
    replied to c program
    in C
    yes i think first You need to study some basic Tutorial...
    See more | Go to post

    Leave a comment:


  • yes it is a simple program. i suggest you to read a simple programming book. then you compare two nos save the no which is large and compare it with third and so on .
    Once you try then if you face the problem then again ask.
    cworld
    See more | Go to post

    Leave a comment:


  • cworld
    replied to Can we use % operator for double type?
    in C
    Thankyou for ur response,
    actually i was facing this problem for double type since i am using push and pop command for double type everywhere in my program . Now prob is solved i can use fmod command for this
    Thankyou...
    See more | Go to post

    Leave a comment:


  • cworld
    replied to Can we use % operator for double type?
    in C
    Thankyou very much Ganon11,
    I was just trying one ther command for modulus and I got my problem solved. This is for the others facing the problem, we can use fmod(double x, double y) command i.e. fmod command which is available in <math.h>
    Thankyou for ur reply....
    See more | Go to post

    Leave a comment:


  • cworld
    started a topic Can we use % operator for double type?
    in C

    Can we use % operator for double type?

    Hello dear
    I am writing a program for calculator. I am getting error when I use % operator for remainder because I have used push-pop command for double type. So can i use % for double type? or some other operator ? Suggest me Plz!!
    See more | Go to post

  • cworld
    replied to getch() and ungetch() ?
    in C
    Thankyou so much horace!
    now i understand the concept of getch() and getchar very well
    Thanx once again

    Regards
    cworld...
    See more | Go to post

    Leave a comment:


  • cworld
    started a topic getch() and ungetch() ?
    in C

    getch() and ungetch() ?

    when i use getch , then it reads the data from the keyboard but it does not display it on screen as in the case of getchar(). So should i use ungetch() or some thing else.
    but the program executes well and give output other then the current entered data from the keyboard.
    Plz help

    Regard
    cworld.
    See more | Go to post
No activity results to display
Show More
Working...