No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Always looking to learn new things about computers and music :3
- Interests
- Music, Computer Programming, MineCraft
14 Posted Topics
Hi, My name is Erik :) I've learned a bit of java, visual basic, and now I'm working on learning alot in c++. I have been taking classes but next semester I'll be off until I transfer to Devry in the spring. Joining a forum would help me learn more … | |
Perhaps this question has been asked or even has a thread written about it so I apologize if it's been asked before however I can't seem to find a solid answer online. I read the article: [Written by Narue](http://www.daniweb.com/software-development/cpp/threads/90228/flushing-the-input-stream) about using getline instead of cin when obtaining input from the … | |
Re: Why haven't you told us anything about it yet? Especially if you know what the function(s) will be, tell us. | |
So in my classes I've taken I was told by the teacher "case statements and if-else statements are the same things essentionally" so why learn both? and so I was not taught about cases. Besides the fact I should learn it anyway incase I need it for someone elses code, … | |
Re: well #include <string> needs to be at the top I believe | |
Re: #include "List.h" List::List() { length = 0; // this is where the error points to currentPos = 0; } Shouldn't you write line 2 with the length and currentPos variables inside it? #include "List.h" List::List(int length, int currentPos) Sorry if that's wrong haha, I'm EXTREMELY new to classes. | |
Re: > "error C2064: term does not evaluate to a function taking 1 arguments" This error is telling me that you are either sending in too little variables or too many variables into that function/method. | |
Alright guys, I've been looking at this on google and I can't seem to find an answer. Any help is definitely appreciated! Here is the code, then I will explain my problem. void printMenu() { cout<<"||============================||"<<endl; cout<<"||=========Main Menu==========||"<<endl; cout<<"||===1.Begin DNA Creation"; cout<<"||===2.Load the Files"; if(!dna1[].strand1){ cout<<"<0>";} else{ cout<<"<"<<sizeof(dna1.strand1)<<">";} cout<<endl; cout<<"=========||"<<endl; … | |
Re: Well, I know c++ more than python. But since no one has replied yet I'll take a shot at this. There are several ways to go about adding difficulty, I would do something like having a menu in the beginning asking for the difficulty, say 1-3, 1 is easy and … | |
Re: First off. I suggest adding a system("cls"); at the end of the do-while loop. Otherwise it'll just clutter the screen if it's run multiple times. The problem with you code is the brackets. You're missing a few brackets and others aren't correctly placed. If you can't figure it out feel … | |
Re: I know how to read and write to txt and dat files using the command prompt. Not sure if it's different in a window. If you'd like I can show you what I use :3 |
The End.