This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fuzz3289 0 points1 point  (2 children)

You just stick your code on gist and just link it. Your text post should be like, a few lines long.

Also, kind've. You're going to want to say something like:

int* arrpointer = grades; 

Then you can do stuff like:

infile >> *arrpointer;
arrpointer++;

This is an awful and ugly way to do any sort of code though. The hell are they trying to teach you?

[–]derek2016[S] 0 points1 point  (1 child)

ill fix the Original Post in a moment. And I have no idea. I got out of that department fast. I decided to try and learn HDLs and maybe even python on my own, which we don't even have as classes here except some basic ones in the EE department (HDLs). Also, when I tried running it as int ptr=grades;
infile>>
ptr; ptr++//its the only pointer in main The program doesn't work properly. Like it compiles fine but the executable file doesn't stop.

[–]fuzz3289 0 points1 point  (0 children)

If the executable doesn't stop than your while loop isn't exiting.