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...
Type: Posts; User: spurs01
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...
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...
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...
Thanks a lot !! it works perfectly.
Here is the final version!!
#include<stdio.h>
int main()
{
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)
{
...
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
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...
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>
I can only use getchar() and putchar() for taking into and displaying output. Because this is the requirement.
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...
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;
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...
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...
becuase this is an assignment. he don't come between me n this forum. But he will come between me and my grade !!!
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...
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...
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.
Hello everyone , thanks a lot.
I used char too. it is still the same problem.
And for the following code
----------------------------------------------------------
hex != 'y' || hex != 'n'||...
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...
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...
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...