hay.... Thanks for the advice..
Type: Posts; User: nesir
hay.... Thanks for the advice..
@spydoor
Oh... Okay... I'll try that. But wait a minute, you mean I have to start over???
hello!
Why? What's wrong with goto? For me, goto is simplier than making loops... :) Eh... How can I make a loop from that? And my original problem is about saving files, what's that got to do with solving...
Wow... I wonder why the topic suddenly changed...
Well, back to the topic... Okay, now I understand a little of my program but now I have another DIFFERENT FILE problem..
My program isn't...
let me rephrase my question...
I understand only a LITTLE of how FILES work. I know that if you want to open a file, you use fopen() and if you close, fclose(); r is for read, r+ is for...
Help!! I don't understand FILES at all and the scientific terms used by FAQ only confuses me more!!!
I do know how to use FILES though, what I don't understand is how to save the user's input and...
Now I get it!!! Thanks a LOT!!!! If you put it that way, it's actually very simple. (Why didn't I thought about that?) Thanks! You don't know how much you've helped me.
So I can't actually...
Oh! I also have one question:
How can I output the qoutient together with its remainder?
We know that if we place 9/2 the answer is 4 and if we place 9%2 the answer is 1.
How can I get 4.5...
Huh? Sorry, but I'm completely at a lost... Please elaborate a little.. BTW, thanks for coping with me... :)
Now i finally understand!
Thanks but one thing is still bothering me though...
When will I call my function? I mean, where in the code that I made will I place that function? Is it inside the...
Yah... I know how to make a function.. but I'm not quite good. I get confused sometimes.
So for example, I will make a function that will display a message... Tell me if I'm wrong or if I did...
I have this code that will compute a student's average QPI (Qoutient Percentile Intelligence). You see, the code is too messy. Can anyone help me to make it clean? I mean, help me to make a function...
Never Mind!! I Already Figured Out My Problem... Please Don't Reply To This Thread Anymore...
#include <stdio.h>
#include <conio.h>
void swap(int *, int *);
void bubble(int [], int);
main(){
int a[] = {7, 3, 66, 3, -5, 22, -77, 2};
printf("I will arrange these...
that's right.. i get an answer for each one even though i only want ONE answer.
i still don't get it you know...
how can i scan characters?
the brackets don't work...
i want it to output only one sentence and even though there is no 0, it outputs "Yes, there is a 0"
i try to make a program that will tell the user if there is a 0 in his input but why won't it run the way i want it to?
#include <stdio.h>
#include <conio.h>
int main(){
int num[10];
...
hey... what does getch() means, by the way? A friend of mine just told me to use #include <conio.h> and getch() when using DevC++ but he didn't tell me the exact function of it... I'm not used to use...
Finally! I got it! But it looks rather long... Is there no shortcuts in this??
#include <stdio.h>
#include <conio.h>
int main(void){
int v=0;
printf("Number please: ");
...
#include <stdio.h>
#include <conio.h>
int main(void){
int v=0;
printf("Number please: ");
scanf("%d",&v);
if((v%10)<=4){
printf("Tens is %d", (v/10)*10);
...
actually, no... if it would be rounded to the hundred place, it would turn 538 would turn to 500... i can't seem to find in the math.h library the function for rounding off if there is any!
okay, here's the REAL DEAL. My instructor obviosly created a serious mistake... if I was to input a number, say 538, the output of its tens value must be 40... but now i can't seem to make it happen!...