#include <iostream.h>
#include <stdlib.h>
void factorial(int);
int num;
int f;
void main ()
{
cout<<"enter number";
Type: Posts; User: CBeginner
#include <iostream.h>
#include <stdlib.h>
void factorial(int);
int num;
int f;
void main ()
{
cout<<"enter number";
check it out.
//
//
//
#include <iostream.h>
void truncate (float);
my output:
Enter a decimal point number : 12.60
After truncating the variable, the values are : 12.00 and 0.75
Do you want to run the operation again [Y/N]? n
Press any key to...
i tried. it was wrong, which is why i am here. so what, the rules are i cant be helped?
Write a program that uses a user defined function called 'truncate()' which separates the integer and the decimal part from a float value.
The prototype for this function is as follows :
...
so do you know anything about hacking? does it involve C++
thanks a lot mate. but the dumbass part isnt something you want to have when presenting this to a group of 40 year olds...:D
alright, that would make a good addition there. thanks.
what kind of program would be best for an example of a switch statement:confused:
so far i have the math calculator one only, but that...
thanks for the help.
but dont you have a definition with a few short examples for selection:confused:
so far, my definition has been
"Function in C++ where the execution of the entire...
any useful webpages that may be helpful:confused:
i am quite new to C, so my understanding of a few statements are unclear. first,
what is the meaning of selection, i know it has to do with programs being executed on basis of true of false, but...