Search:

Type: Posts; User: spurs01

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,459

    I understand the code will give me the answer i...

    I understand the code will give me the answer i want. It is because i program it directly.
    For example :

    if the value is 3 then store it in buffer[0] and so on....

    But this program is not...
  2. Replies
    4
    Views
    1,459

    FIFO question (Please help)

    Hi ,

    I doing my assignment and got struck with my programming. The following source code take in data(1,2,3,4,5) and then display it. My program display the following result which
    is not my...
  3. Replies
    2
    Views
    1,418

    Question on array

    Hi ,

    I have question about array. The program below has a fix array(100). I want the size of
    the array to be determined by the user. How to write the code ?

    The function "input_number" ask...
  4. Thanks a lot !! it works perfectly. Here is the...

    Thanks a lot !! it works perfectly.
    Here is the final version!!



    #include<stdio.h>

    int main()
    {
  5. Hi , i don't understand the following code. Can...

    Hi , i don't understand the following code. Can u explain to me again ?
    U mean i should copy the code directly ??




    if (number[j] >= 0 && number[j] < 16)
    {
    ...
  6. I need to use putchar() to display the output. ...

    I need to use putchar() to display the output.
    number[] is int. So i cannot directly display the output using putchar(number[i]) , right ?
    I am struck here. That is why i am using the long method
  7. How to reduce the source code to a more simple one ???

    Hi ,

    I have completed a programming. Just wondering if anyone have any idea on how to reduce the source code to a more simple one(display part, red color). For this program , i check for whether...
  8. Replies
    11
    Views
    9,186

    Hello , Here is my code. I revise it but why...

    Hello ,

    Here is my code. I revise it but why the putchar() can only display one character only ??

    Please see the last part of the code .




    #include<stdio.h>
  9. Replies
    11
    Views
    9,186

    I can only use getchar() and putchar() for taking...

    I can only use getchar() and putchar() for taking into and displaying output. Because this is the requirement.
  10. Replies
    11
    Views
    9,186

    How to display output using puchar() only ???

    Hello ,

    My program read in input using getchar() and then convert it into integer value. After converting into integer value , i will have to convert it into hexadecimal.

    My question is : how...
  11. Replies
    22
    Views
    4,001

    Thank you very much ! The program is ok. The...

    Thank you very much ! The program is ok.
    The following should be my final code.



    #include<stdio.h>

    int romanize(int q[], int base)
    {
    int counter, temp;
  12. Replies
    22
    Views
    4,001

    dear RockyMarrone, To answer your #17 thread :...

    dear RockyMarrone,

    To answer your #17 thread :
    not quite really solve the problem. I am not doing an argument. I tried the program myself. It seem to go out of control in the later part of the...
  13. Replies
    22
    Views
    4,001

    Dear RockyMarrone, ou To answer your #8 thread...

    Dear RockyMarrone,
    ou
    To answer your #8 thread :
    I am trying to determine what kind of input the user wants to enter. User wants to enter in hexadecimal format or normal decimal format.

    If the...
  14. Replies
    22
    Views
    4,001

    becuase this is an assignment. he don't come...

    becuase this is an assignment. he don't come between me n this forum. But he will come between me and my grade !!!
  15. Replies
    22
    Views
    4,001

    I can't use "switch" because the teacher still...

    I can't use "switch" because the teacher still did not teach us yet. If so , i might just use scanf .
    from my program , everyone should be able to see that it is so primitive. no choice. Got...
  16. Replies
    22
    Views
    4,001

    Thanks using && really works !! but i have the...

    Thanks using && really works !! but i have the second problem
    if the user enter y then it should proceed with the following code.
    Inside the code , i still ask user to enter hexadecimal...
  17. Replies
    22
    Views
    4,001

    using char or int should not be the problem....

    using char or int should not be the problem. because in the later part of the problem , i also use int to read in user input and convert it to decimal and later convert it to roman character.
  18. Replies
    22
    Views
    4,001

    Hello everyone , thanks a lot. I used char...

    Hello everyone , thanks a lot.

    I used char too. it is still the same problem.
    And for the following code
    ----------------------------------------------------------
    hex != 'y' || hex != 'n'||...
  19. Replies
    2
    Views
    1,840

    Hi thanks for your guidance. Because our...

    Hi thanks for your guidance.
    Because our teacher did not teach us "switch" function yet, we r not suppose to use any advance functions etc.

    I have wrote the source code for this program. A...
  20. Replies
    22
    Views
    4,001

    Why my while loop is not working ??? pls help

    Hi everyone ,

    I am writing a program that require user to choose whether to enter in hexadecimal form or in normal form. The 'while" is to check whether the user enter the correct key or not. If...
  21. Replies
    2
    Views
    1,840

    Help needed ! ( displaying Roman character )

    Hello ,

    I need help on how to change user entered numerical number into Roman character.

    For example , 1 = i , 2 = ii , 5 = v , 10 = x , 13 = xiii etc...

    I have done the programming half...
Results 1 to 21 of 21