Search:

Type: Posts; User: cc870

Search: Search took 0.00 seconds.

  1. Thread: scanf problem!!!

    by cc870
    Replies
    12
    Views
    1,940

    I assumed tat u have include the neccessary...

    I assumed tat u have include the neccessary header files *.h.

    This is the correct format ------ scanf("%d",&k); <====Take note of the brackets and the semi-colon.
  2. Replies
    9
    Views
    2,467

    O.... ic... tks quzah...

    O.... ic... tks quzah...
  3. Replies
    3
    Views
    30,076

    Maybe the follow steps can hlp u ^.^ 1) Find...

    Maybe the follow steps can hlp u ^.^

    1) Find out the requirements/limitation for the program u r goin to do
    2) Visual how the output is going to be
    3) Program it.
  4. Replies
    9
    Views
    2,467

    Actually, the program does not close on 3rd...

    Actually, the program does not close on 3rd scanf.... The program calculate N output the answers. It is juz tat u dun have a line to "hold" the screen.


    printf("For series wiring: %.3f\n",...
  5. Replies
    5
    Views
    3,796

    (^.^)

    Maybe this is the intented program?

    Take note of the following in future programming

    1) if u are using "float" to declare ur variables, use "%f" to scan in ur data.

    2) if u are using...
  6. Thread: loop problem

    by cc870
    Replies
    16
    Views
    3,046

    But since you are using a do-while loop, it is...

    But since you are using a do-while loop, it is suppose to loop back to the menu.
  7. Replies
    8
    Views
    1,475

    // Description: Calculates the number of jelly...

    // Description: Calculates the number of jelly beans in a container.

    #include <stdio.h>
    #define PI 3.14159265

    int main()
    {
    // Declare necessary variables
    double jb_radius, conta_radius,...
  8. Replies
    8
    Views
    1,475

    I thank Quzah for the feedback to my previous...

    I thank Quzah for the feedback to my previous reply...

    I have misunstood that the problem is caused by '\n' left in stdin, therefore i use gets to get '\n' into dump...

    Is '\n' considered 1...
  9. Replies
    8
    Views
    1,475

    Wif ref. to 1st program, declare a char array of...

    Wif ref. to 1st program, declare a char array of 1 and use gets to store '\n' in it.
    In ur first scanf statement, should be scanf("%d", &cd_space);
    after the scanf statements, use gets to store...
  10. Replies
    2
    Views
    1,168

    Help needed for validing input

    /*
    This source file is for current calculation using
    voltage/resistance.
    */
    #include <stdio.h>
    #include <stdlib.h>
    #include <conio.h>

    //Function prototype
    //char UserChoice(void);
  11. Replies
    1
    Views
    4,704

    Display superscript/subscript

    Is it possible to display superscript/subscript chars using C programming?

    I am using wins XP and Visual C++.

    Thanx in advance.....
  12. Replies
    4
    Views
    2,302

    Solve my problem le..... a BIG TKS to everyobe...

    Solve my problem le.....

    a BIG TKS to everyobe who help me.....
  13. Replies
    4
    Views
    2,302

    I am using Visual C++ 6.0 My OS wins XP

    I am using Visual C++ 6.0
    My OS wins XP
  14. Replies
    4
    Views
    2,302

    Changing screen colour

    Hi!!!!

    How can i change the colour of the screen when my program runs? (EG: from BLACK to RED);

    PLS help. tks...
  15. Replies
    3
    Views
    3,529

    indentation error

    #include<stdio.h>
    #include<stdlib.h>
    #include<math.h>

    void main(void)
    {

    //Declaration
    double v_a,v_b,v_c,discriminant,root_1,root_2,sq_d;
Results 1 to 15 of 15