![]() |
|
#1
|
|||
|
|||
char * to float/doubleHi Guys still a bit rusty on c++ but thanx to u!!
CPP / C++ / C Code:
Last edited by LuciWiz : 01-Nov-2008 at 13:09.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: char * to float/double- the problem is you have no header lines
....#include <iostream> ....using namespace std; - the problem is there is no int main() - the problem is you used tabs - the problem is you had no closing bracket after y=0 Ok now what happens : 081031_char_to_f-1.cpp:9: error: ‘file’ was not declared in this scope 081031_char_to_f-1.cpp:13: error: ‘x1’ was not declared in this scope 081031_char_to_f-1.cpp:16: error: ‘y’ was not declared in this scope 081031_char_to_f-1.cpp:16: error: ‘x’ was not declared in this scope 081031_char_to_f-1.cpp:20: error: ‘N’ was not declared in this scope 081031_char_to_f-1.cpp:24: error: ‘y’ was not declared in this scope cplusplus.com/doc/tutorial/ why do I bother... |
|
#3
|
|||
|
|||
Re: char * to float/doubleQuote:
i jus copied the bit i was having problems with i have all headers and all its just that its part of a long program. My apologies Howard for the incomplete program! i managed |
|
#4
|
|||
|
|||
Re: char * to float/doubleI tested your code with minor modifications to make it run and I cant find any issues with it.
I haven't made any major changes. input file used ------ 75, 5.1, 0.23, 1.1 6.01, 7.44, 8.34, 9.05 ------ CPP / C++ / C Code:
|
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pointer initialization causing program abend? | emanresu | C Programming Language | 0 | 12-Dec-2006 11:36 |
| lvalue compile error | emanresu | C Programming Language | 7 | 16-Nov-2006 11:22 |
| getting an error while compiling and running using different IDE. | jaro | C Programming Language | 0 | 25-Aug-2006 10:14 |
| Memory cannot be read? | dlare9 | C Programming Language | 3 | 16-Nov-2005 08:03 |
| Debug Assertion Failed! | dlare9 | C Programming Language | 3 | 14-Nov-2005 00:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The