Jump to content


Photo

C++ Help


  • Please log in to reply
1 reply to this topic

#1 Viper EM

Viper EM

    RCT Insanity Club Member

  • Members
  • PipPipPipPipPipPipPip
  • 1677 posts
  • Gender:Male
  • Location:Pennsylvania, USA

Posted 13 October 2009 - 02:16 AM

I am sorry in advance if this is in the wrong section, but i was contemplating on whether it went in Computer discussion or Webmaster.
Well anyways..

I am writing a C++ Program in one of my College courses, and i seem to have hit a brick wall. The program hits a brick wall, it is supposed to take a Input of a temperature in Celsius and convert it to Kelvin.
I keep getting an error of an undeclared identifier ©.
Here is what i have so far.

#include "std_lib_facilities.h"double CtoK( double = c ){	cout << "Please enter a temperature to be converted into Celsius \n";	int c;	cin >> c;	double k =  c + 273.15;	return k;keep_window_open();}int main (){	double c=0;	int d;	cin >> d;	double k = CtoK©;	cout <<k<< endl ;}

With the following error:
d:\compsci\1104-02\projects\exercise5.4\exercise5.4\exercise5.4.cpp(6) : error C2065: 'c' : undeclared identifier

I am using Microsoft Visual Studio 2008 Pro. Any ideas whats going on?

#2 tomadam89

tomadam89

    Park Guest

  • Members
  • Pip
  • 3 posts
  • Gender:Male

Posted 01 December 2010 - 03:28 AM

I first thought of sorting in descending order and then add the fourth element in the array before, but I think during that complexity will increase sorting.This site is really great! It challenges them to solve a lot of fun here. I also enjoy reading the clear tutorial C. Original point analysis provider jars or zip to install I do not know. Eclipse and online docs dont provide instructions anywhere that I can find tptp.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users