d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > C Compiling/saving Issue
Add Reply New Topic New Poll
Member
Posts: 8,250
Joined: May 10 2012
Gold: 0.00
Feb 5 2017 02:41pm
I am in a C class. Professor wants us to use Visual Studio 2013 as our IDE. I submitted mine with the follow feedback from him:

"Do not use

Error 1 error C1083: Cannot open include file: 'stdafx.h': No such file or directory c:\users\professor\desktop\++grading\145\school\ch2_2.cpp 5 1 Grading

--------------------

Error 1 error C2061: syntax error : identifier '_TCHAR' c:\users\professor\desktop\++grading\145\school\ch2_2.cpp 13 1 Grading

2 IntelliSense: identifier "_TCHAR" is undefined c:\Users\Professor\Desktop\++Grading\145\school\CH2_2.cpp 13 22 Grading

--------------------------

_TCHAR* is not ANSI standard.nor is _tmain.

------------------

I was able to open your files but not run them."

Literally have no idea what he is asking. I sent him a reply and he's ignored me for the last few days. Feels bad..

My code can be found :

http://collabedit.com/eur2h
Member
Posts: 3,417
Joined: May 15 2009
Gold: 1,201.69
Feb 13 2017 06:27pm
Code runs fine on Linux.
Would try and make a new project. Probably some issue with Visual.
Member
Posts: 3,417
Joined: May 15 2009
Gold: 1,201.69
Feb 13 2017 07:59pm
Just a note that your program does not handle floats.
You should ask the user for natural numbers only.
Go Back To Homework Help Topic List
Add Reply New Topic New Poll