the PROBLEM IS THAT ONCE THE PROGRAM IS DONE... IT DOES NOT RETURN BACK TO CODING SCREEN
Type: Posts; User: sal
the PROBLEM IS THAT ONCE THE PROGRAM IS DONE... IT DOES NOT RETURN BACK TO CODING SCREEN
#include<iostream.h>
#include<conio.h>
int main(){
clrscr();
int i; char * c;
cin>>c;
i=*c;
if(i<48 || i>57)return 0;
else cout<<i<<" "<<c; getch(); return 0;}
hey thaanx... that did do the trick..... :D
im having another problem just saw it... the root function im want it to return a float value to main... how do i do that cuz no matter what value i enter the answer give 0.0000 ...????
k elysia i dont knw how to indent it ane better but i have added to prototypes, wat did u mean main must always return int.
Some of your functions lack a return type???
thanx alot pple.... adak ur way worked out.. kinshara the thing is i cant make things work quite the way i wanted to with if statement thanx though... THANKS A MILLION EVERY1 :D:D:D
@elysia.... there r no errors... it runs smoothly.... i just want e to work with characters.... thnx for the advice though ill work on them
like when i press Y the prog continue n when i press N it stops
THIS IS A PART OF MY PROG.. I M USING A DO-WHILE LOOP. i want e to b a character rather than an integer but when ever i try to run my prog with e as a character it doesnt work all the same... i did...