Beginners - May 2014 (Page 14)

by Huppa
Need some help!
 
Hello, I'm writing a little mini-game and I'm stuck at a point. What I want to do is add a loop that only allows the user to guess the number 6 times, and if t...
[15 replies] Last: My method actually had an error I edited to fix (by CodeGoggles)
¿Cómo puedo sacar los numeros pares de un vector/arreglo?
 
Tengo diez numeros en un array, lo único que tengo que hacer es sacar de allí los numeros pares. Muchas gracias.
[8 replies] Last: That is up to you, I've already given examples of parsing an array of ... (by closed account j3Rz8vqX)
Segmentation fault
 
Here is a simple program that I got as an exercise from my book. I get the following error when I run it: Segmentation fault // Keyboard keys \ | #include ...
[2 replies] Last: Thank you MiiNiPaa So I just added begvi/begli = before it and that f... (by closed account EwCjE3v7)
Generate random numbers
 
I am trying to make a very simple console application that just prints out random numbers. Could someone please help me out with this? maybe show an example...
[2 replies] Last: Thank you :D (by eirikg97)
Trouble with Variables in Classes
 
I'm doing tutorials on C++ and got to "Variables in Classes".. I keep getting the error "1.cpp |25| error: no match for 'operator<<' (operand types are 'st...
[2 replies] Last: Thank you so much <33!!! so stupid.. all i forgot was () -.-' (by Rsage1121)
Console game problems - PLEASE URGENT
 
I'm building a console game, but i'm having problems with the mouse code. I need to check if a certain coordenate has been clicked on. I tried using a bool, but...
[1 reply] : I skimmed... and stopped once I saw you were using threads to get mous... (by Disch)
HELP WITH THE "gets()"
 
When I execute de program it doesn't ask me to give the string, ¿why? #include <iostream> using namespace std; int CoutLetters(char* string, char le...
[6 replies] Last: Some in-depth explanation of what is happening and how to avoid it: ht... (by MiiNiPaa)
error: assignment of function
 
Hi.Im new to programming . I started learning c++ few days ago.i chose my first book Jumping into c++ by alex allain. At the end of chapter 6 there are some p...
[2 replies] Last: MiiNiPaa thank you very much! i didnt learn pascal before but i wish i... (by IBIGSPOT)
a queue to track the 10 most recent #'s
 
So you are picking #'s and this program needs to the ten last numbers. When you press 'enter' the program will check if the input is a #. So if the input 'a' th...
[14 replies] Last: If they want to add more, replace the oldest one with the new one. If ... (by Yay295)
Output error
 
I am trying to get the output income to be only to 2 decimal places, I attempted the cin.precision(2) but the number outputted is something way off. Let me know...
[1 reply] : I figured it out! cout << fixed << setprecision(2); (by DEnumber50)
iofstream problem
 
Hello there, for some reason the file highestScore, has the value 0 and it dosnt even change when I get a higher score. The code is the last few lines. before t...
[1 reply] : Oh lol, I`m assign the file its only value. line 126 should be newSco... (by closed account EwCjE3v7)
Income tax calculator
 
I am stuck writing this income tax calculator. It compiles and works with the right math on the income. My problem is the loop where I ask for a married or si...
[4 replies] Last: I have figured this one out, thanks for your response MiiNiPaa. (by DEnumber50)
Not initiating class
 
When i go execute my code there is this one class it will not go to. The class that wont work is the StandardForm class The part of my main built for class goi...
[1 reply] : Why are you doing StandardForm StandardForm as the name? To me that is... (by BHX)
by zdzero
Inheritance and virtual methods questions
 
I have something like this class Repository { private: MyArray<Something> *myList; MyArray<MyArray<Something>> *undo; public: // constructor, destructor, ...
[3 replies] Last: Yes. Pretty much like that. (by MiiNiPaa)
by SanaJA
NEED HELP with my project
 
I have a project that ask me to create a system tracks the employee's tracking in a company. It maintains employee information. Each employee has the following ...
[1 reply] : Hi All, at first lets make a link list class, that have the flowing me... (by amirtork)
List iterator not dereferencable error
 
I know what causes this error but i dont know how to fix it without changing what im supposed to do in this function. the error is in the line old=*it (I debug...
[3 replies] Last: thanks. :) (by ibasraeehilm)
How to keep up with the latest c++ updates?
 
What sites can i use to stay updated with the latest c++ standards and news? for example there are new stuff being added to C++ all the time i don't know what ...
[4 replies] Last: I learned a lot about C++11 while it was still a work in progress by h... (by Peter87)
Nested loop statement
 
I am confused of how to set up the loop here, the user will input a m for married or a s for single. If the user inputs anything else I want to redo this step....
[3 replies] Last: wait I forgot something: bool is_again; // Note do { is_again = fa... (by coder777)
problem with returning a specific type
 
I get two errors: 1 unresolved external and Error 3 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup C:\Users\user1\Doc...
[2 replies] Last: Thanks (by ibasraeehilm)
Help figuring out code
 
I am studying some code and i can't figure out what is going on here. Record is a class by the way. vector<Record> students; for (int i = 0; i < 5; i...
[1 reply] : This code is quite straight forward. I'd suggest you review the std::... (by AbstractionAnon)
May 2014 Pages: 1... 1213141516... 55
  Archived months: [apr2014] [jun2014]

This is an archived page. To post a new message, go to the current page.