I changed the variable names like you said and put 0.55*(faren -32).
#include <iostream>
#include <stdlib.h>
//function prototypes
float celsius1(float faren);
float farenhiet1(float cels);...
Type: Posts; User: Chizzlah
I changed the variable names like you said and put 0.55*(faren -32).
#include <iostream>
#include <stdlib.h>
//function prototypes
float celsius1(float faren);
float farenhiet1(float cels);...
I changed the varibles: celsius_ , farenhiet_ to celsius, farenhiet.
deleted the underscores and followed them in the main and corrected them too. compiled and the parse error remained..
Do you...
The reason for the underscores is because I was changing the code around so much that it began getting very confusing trying to follow the variables around so I put underscores after the variables in...
I tried taking the "float" out of the call...ended up with more errors.
#include <iostream>
#include <stdlib.h>
//function prototypes
float celsius_(float faren);
float farenhiet_(float cels);
void show_menu();
int main(int argc, char *argv[])
{
//declared...
sorry about the first post. w/ wrong code tags.
29. result = farenhiet_( float cels );
This is the definition:
I am writing a program that converts celsius to farenhiet and vice versa. I made two function's that do the converting for me so that all I have to do is call them like this:
<code>
(line 29) ...
Thanks too all.. I have realized that it is very exciting compiling and running even a simple program....maybe i'm weird to think it's exciting but I do, it's like landing a new trick on my...
I'm a newbie to programming. I mean it's always interested me since I was 15 yrs. old, but I never really had any help learning and wasn't too serious about it anyways until recently when I started...