Beginners - February 2016 (Page 40)

by THirt
Video Game Player Program
I am having trouble getting my program to get my program to display the data for the players that scored below average. It displays it really quick and then th...
Feb 6, 2016 at 3:57am
[1 reply] : I think you may need to read the sticky at the top of the Beginners fo... (by mgoetschius)
by sjdods
I'm stuck on trying to get the rows and columns to read from the data file of the matrix
I need it to look like the below output however I am having trouble getting it to work. This is what I have so far. Can someone help me with the code I would wr...
Feb 6, 2016 at 1:12am
[3 replies] Last: Okay, I'm looking at it. Will edit this post shortly. Alright. Don'... (by Duthomhas)
how do i make repeating numbers appear once
i read in a file and arrange the file to something like this: 1 2 3 3 4 5 7 7 8 8 9 9 9 10 10 10 10 what i want is for all the numbers...
Feb 5, 2016 at 11:55pm
[5 replies] Last: i think the questions are quite similar... this is what i had in mind... (by StupidLag)
Why does it assign wrong value???
Hey guys,my exams are near, so I wondered why not make a program to guess my Marks (and the aggregate percentage).So I began writing a small program (really, no...
Feb 5, 2016 at 9:58pm
[3 replies] Last: One more thing, I dont know what you're trying to do here, but you def... (by TarikNeaj)
convert a vector of strings to vectors of char
I have a vector of string which, say, contains three words: send more money I want to convert this string to three different vectors of char. I want to...
Feb 5, 2016 at 8:35pm
[1 reply] : Take a look at this thread, the last example: http://www.cplusplus.com... (by AlphaFoxAlpha)
...
...
Feb 5, 2016 at 7:11pm
[14 replies] Last: Twicker is the one to contact, but he may not agree to remove any co... (by Duthomhas)
Little problem in game
So, the following is a little game I am working on it, all the things are going good but I am facing a little problem as I am making a guessing game in which fi...
Feb 5, 2016 at 6:49pm
[10 replies] Last: Ok if other are not answering my question but it is good choice not to... (by ZahoorKhan)
Quiz score calculator! Need help!
Hello guys. I have an assignment due soon. I have to read a file and convert it to an array, then I need to compare the answers in that array to the correct ans...
Feb 5, 2016 at 6:36pm
[2 replies] Last: I'm not near a computer right now, but did your code worked? I don't s... (by vremia2)
by phase
Beginner sales tax calculator
I'm not sure how to make a code where I could calculate sales tax and keeping the total showing 2 decimal places. This is how far I got, but for some reason my ...
Feb 5, 2016 at 6:27pm
[1 reply] : double total=salesPrice*0.0875; You're doing the calculation before... (by TarikNeaj)
by mihiir
need help for my practicals
can someone please help me with this question!! Define a class named Publisher in C++ with the following descriptions : Private members Id long title ...
Feb 5, 2016 at 5:48pm
[1 reply] : http://bfy.tw/3u3P (by TarikNeaj)
Loop Tutorial Example
Hello, its my third day coding I use codeblock In your tutorial it says this: // echo machine #include <iostream> #include <string> using namespace std; ...
Feb 5, 2016 at 5:00pm
[2 replies] Last: Using both cin and getline was the problem. It was in a document where... (by Cortega)
Data delete - fstream
Hi. this is part of my code where i would like to have some help. this code should contain part where you can delete entry in file but it works something like t...
Feb 5, 2016 at 3:55pm
[3 replies] Last: std::ofstream fails2("foo.txt"); //open once, at construction time. A... (by ne555)
loop breaks
Write your question here. so this code is doing something quite complicated..there is a global variable multiarray LN ; vector<int> hold contains certain valu...
Feb 5, 2016 at 2:49pm
[2 replies] Last: damn it! thanks man..the lil lil things are the one to get us ... (by donvigor)
Why my program breaks when I run it ?
Hello guys, I have a problem with my code. When I try to run it (I am using Visual studio 2015) the program brеaks. Can anyone explain to me what am I doing w...
Feb 5, 2016 at 2:42pm
[5 replies] Last: Since you only dynamically allocated one element of z you can only del... (by jlb)
by souria
random numbers, min and max
Hey everyone, I want to add a range for my random distribution but I did'nt succeed, need some help. I want to put a range max value and min value for the rando...
Feb 5, 2016 at 2:15pm
[9 replies] Last: This expression doesn't do what I suggested: va_unif1 = (max-min)*(r... (by Chervil)
Linked List Traversal
Hi! I'm writing a code for a function of a sorted linked list in which I have to insert an item at its correct position. However, during the traversal, I'm goin...
Feb 5, 2016 at 2:05pm
[1 reply] : Are we suppose to read your mind and access your code through black ma... (by TarikNeaj)
storing variables in files
Hello I have a quite newbie question that I cannot figure out the answer. Let's say that I this code: #include <iostream> #include<fstream> using n...
Feb 5, 2016 at 12:54pm
[10 replies] Last: Im not sure exactly how the program would react, but it would for sure... (by TarikNeaj)
runtime error in the program, but the code is ok
can not understand what is the error in the code. when i compile it and run it ti runs well until it reaches the second iteration of the loop then the program j...
Feb 5, 2016 at 12:17pm
[3 replies] Last: The reason is that line 4 says that array is an array of pointers to... (by dhayden)
Operator overloads problems
Why are all my test failing for my operator overloads //Tests.cpp Sequence s1; s1.append('c'); Sequence s2; s2.append('t'); s2.append('a'...
Feb 5, 2016 at 12:13pm
[2 replies] Last: The code you've shown for operators ==, !=, + and += don't do anything... (by dhayden)
Initializing base class in unusual way
Hi, I know that we can initialize base class like this Derived::Derived(int x) : Base(x){} but what if my constructor of derived class takes std::istream& a...
Feb 5, 2016 at 11:03am
[2 replies] Last: This is so cool man, I'm actually feeling bad that I didn't figure thi... (by etrusks)
February 2016 Pages: 1... 3839404142... 46
  Archived months: [jan2016] [mar2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.