![]() |
| ||
| Need help with some syntax errors Hi guys, I just found this site while doing a google search for "declaration syntax errors" and it looks like there are some great people here that are willing to take time to explain things which is what I need! I'm in college taking c++ and my teacher doesn't tell us anything at all. Literally. He just gives us assignments and sets us free. This latest assignment is on Arrays, more specifically the program generates data for a sine waveform. I feel like I have it almost complete (probably not the neatest code I know) but I can't get rid of errors enough to compile it. He wants the program to input amplitude, frequency, duration and timestep (delta t) and generate a table with the time and the sine that looks something like this: Time Sine 1 0 2 .5 3 1 4 .5 5 0 6 -.5 7 -1 8 -.5 9 0 ect... So here is what I have so far: //--------------------------- I have gotten rid of most of my errors, syntax and logic, but I've run out of ideas and things to try. The error I am currently getting is "Error E2141 lab8.cpp 25: Declaration syntax error" What I don't get isline 25 is "int main()" I don't see what is an error about that. Thank you in advance. -Grant Bivens |
| ||
| Re: Need help with some syntax errors //---------------------------Usually you should look
In this case it was just before the error line 25. You missed a semicolon. |
| ||
| Re: Need help with some syntax errors MOD - Please remove this thread. It is indexed on google and do not wish for it to be viewable any longer. Thank you, -Grant |
| ||
| Re: Need help with some syntax errors Quote:
|
| ||
| Re: Need help with some syntax errors It probably was his homework assignment and he's affraid his teacher going to find out :cool: |
| ||
| Re: Need help with some syntax errors Na.. he is afraid that his friends might stumble across this same snippet while reasearhcing and submit the same as assignment. |
| ||
| Re: Need help with some syntax errors Yes, it was one of my homework assignments from last semester. No, I do not care if my professor stumbles across it. I already have my grade for the class. I am trying to get rid of the amount of stuff that comes up when people google me. |
| ||
| Re: Need help with some syntax errors why would people want to google for you? |
| ||
| Re: Need help with some syntax errors Holy cow, this isn't rocket science... I have asked nicely for this thread to be removed. Does it matter why people would google me? No, that has absolutly NOTHING to do with you removing this thread. Now I ask again PLEASE remove this thread. Thank you, -Grant |
| ||
| Re: Need help with some syntax errors Oops. I forgot to tell you that we don't delete threads unless they are violating forum rules.:) Edit. I am closing this thread before it get's out of hand. But before that I should explain the reason for not deleting this or any other thread (incase other requests similar to this arise in the future). If you have any other questions, please contact me via PM.
|
| All times are GMT -4. The time now is 5:37 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC