Can you take a look at my code?
-
Hi, I write something simple, see below, and it is right now supposed to only just allow user to various data. I think what I have done should work as is, however, it doesn't even though code compiles without compiler errors which is what sort of confuses me. The screen says to Enter faculty name, which I do, then after I press enter after typing the text I wanted to enter, it automatically exits and an error message come up saying program has crashed. What's going on? I am using microsoft visual c++ 2008 express. THANKS!! int main() { char* faculty_name[13], *department[13]; float current_yearly_income=0, raise_percentage=0; int i; for(i=0; i > current_yearly_income; cout > raise_percentage; }
-
Answer:
Here is the corrected code. Have a look.. void data_input(char *,char *,float,float); int main() { char faculty_name[13], department[13]; float current_yearly_income=0, raise_percentage=0; int i; for(i=0; i > current_yearly_income; cout > raise_percentage; }
Miningco.com Visit the source
Related Q & A:
- A package from China to U.S.,can it take a month?Best solution by Yahoo! Answers
- Can I take a picture of myself using my webcam and how do I do it?Best solution by Super User
- Where can I take a free legal IQ test?Best solution by Yahoo! Answers
- Where can I take a good, free learning style test online?
- Can You Take A Picture Out Of A Video?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.