| | |
Gettin C2064 error on a pretty simple program...Please help!!
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
you can not use the name of functions as the name of a variables. Function names must be different from variable names. Example: residential_rate is used both as a function name and a variable name, and since the variable name is in _tmain() the compiler is treating that symble as a float, not a function.
You are declaring functions residential_rate(), commercial_rate(), industrial_rate() also as floats of the same name in function main(). Remove those variables and it will work!
Oops, I was too slow! Sorry Mister Dragon near St Louis!
Oops, I was too slow! Sorry Mister Dragon near St Louis!
Last edited by vegaseat; Oct 3rd, 2006 at 7:38 pm.
May 'the Google' be with you!
![]() |
Similar Threads
- newcommer to c++ need help with simple program (C++)
- Wierd error messages with calculator program (C++)
- Simple C++ program terminate prematurely (C++)
- I am a girl doing my 1st simple program (C)
- Error message when I run my program in C++ (C++)
Other Threads in the C Forum
- Previous Thread: a simple question
- Next Thread: enquiry
| Thread Tools | Search this Thread |
Tag cloud for C
adobe ansi api array arrays asterisks binarysearch calculate centimeter char convert copyanyfile copyimagefile copypdffile cprogramme createcopyoffile csyntax directory drawing dynamic executable fflush file fork frequency getlasterror givemetehcodez graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators infiniteloop initialization interest km lazy linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix microsoft motherboard multi mysql number open opendocumentformat opensource owf pattern pdf performance pointer pointers posix power problem probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling scripting segmentationfault send shape socketprograming spoonfeeding stack standard string strings structures student suggestions systemcall test testautomation unix user variable voidmain() wab win32api windows.h






