| | |
Fatal Error C010?
![]() |
•
•
Join Date: Nov 2004
Posts: 3
Reputation:
Solved Threads: 0
Ok Yes I admit it I'm a student with a homework problem but I'm using this forum as a last resort. I've already written the code and I can't find the error no matter how many times I look over it so I really just need a second set of eyes. Don't tell me how to fix it just tell me what line/lines it is in and I'll figure it out myself.
C Syntax (Toggle Plain Text)
// Weighted Average program // Written by Will Styers CIS115-01 #using <mscorlib.dll> using namespace System; int main() { //declaration of variables int test1 = 0; int test2 = 0; int test3 = 0; int lab1 = 0; int lab2 = 0; int lab3 = 0; int lab4 = 0; int lab5 = 0; int exam = 0; int avgt = 0; int avgl = 0; int finalAverage = 0; //asking for user input Console::Write("Enter first test:"); test1 = Console::ReadLine(); Console::Write("Enter second test:"); test2 = Console::ReadLine(); Console::Write("Enter third test:"); test3 = Console::ReadLine(); Console::Write("Enter first lab:"); lab1 = Console::ReadLine(); Console::Write("Enter second lab:"); lab2 = Console::ReadLine(); Console::Write("Enter third lab:"); lab3 = Console::ReadLine(); Console::Write("Enter fourth lab:"); lab4 = Console::ReadLine(); Console::Write("Enter fifth lab:"); lab5 = Console::ReadLine(); Console::Write("Enter final exam:"); exam = Console::ReadLine(); //Equations avgt = (test1 + test2 + test3)/3; avgl = (lab1 + lab2 + lab3 + lab4 + lab5)/5; finalAverage = (avgt * .30) + (avgl * .50) + (exam * .20); //output statement Console::WriteLine("The final average is {0}.",Convert::ToString(finalAverage)); return 0; } //End main function
•
•
•
•
Originally Posted by coppernicus
Hmm yeah you're probably right about the data types. I wasn't thinking. Here is the error message I got. I looked it up on Microsoft but to no avail.
fatal error C1010: unexpected end of file while looking for precompiled header directive
I forgot to slip that 1 in there in the thread title.
![]() |
Similar Threads
- Fatal Error (Windows NT / 2000 / XP)
- Help: I am getting a Windows InstallShield fatal Error 1603 (Windows NT / 2000 / XP)
- Fatal error in Ie has occured (Viruses, Spyware and other Nasties)
- Fatal Error, c0000005 Memory could not be read??? (Windows NT / 2000 / XP)
- Fatal Error Message When Accessing A Web Page (Windows NT / 2000 / XP)
- fatal error C1010 (C++)
Other Threads in the C Forum
- Previous Thread: MERGED: Deleting duplicates in an array (plz help me out!!!!!!!)
- Next Thread: Limits 10 Per Page
| Thread Tools | Search this Thread |
* adobe ansi api array arrays binarysearch calculate centimeter char character cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hacking highest homework i/o inches incrementoperators intmain() iso km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. lowest match matrix microsoft mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pattern pdf performance posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprograming socketprogramming stack standard strchr string suggestions test unix urboc user variable voidmain() whythiscodecausesegmentationfault win32api windows.h windowsapi





