General C++ Programming (Page 30)

Game adventure 2
1 #include<iostream> 2 #include<string> 3 #include<cstdlib> 4 using namespace std; 5 ...
[1 reply] : case 2 does not contain a statement (by Peter87)
by aeck
Hash Table String value
I am trying to make a hashstring function that: sum the ordinal values of the characters of the var...
[2 replies] Last: You might also need a second ( const int ) parameter in the hashString... (by kemort)
by kwnnyo
Saving a row of a 2D matrix in a cell of 1D matrix
Hello everyone! I have this problem here: Let's say that I have this matrix A : -3 0 1 1 2 ...
[1 reply] : it is possible only if you make them whole numbers like - 3 0 1 would ... (by leryss)
Adventure game
1 #include<iostream> 2 #include<string> 3 #include<cstdlib> 4 5 struct survivor 6 { ...
[2 replies] Last: Please use code tags to make it more readable. As for your problem, i... (by tallyman)
by mkb555
Can operator overloaders be member functions?
I'm overloading the << operator using the following prototype: friend ostream& operator<<(ostream&...
[1 reply] : Operator member functions take a reference to object as first argument... (by MiiNiPaa)
Console Play a sound - best method??
Hey all, For an assignment in a module of my degree, I need to write a console application MIDI s...
[1 reply] : The first link you provide is literally ten years old and the guy in t... (by Computergeek01)
Instances in vector(efficient way)
Hi, i am trying to make a vector that contains 5 instances(Bomba1, Bomba2, Bomba3, Bomba4, Bomba5)an...
[1 reply] : The feature you're looking for is called "List Initialization": http:/... (by Computergeek01)
COUT display a Forward Slash..
Hey everyone, hope you're all ok.. New to this site so hey :) Just a quick simple question for...
[5 replies] Last: at the top of ur post , there should be an option to mark as solved. (by SOURABH PRAKASH PATI)
(Help)Counting numbers typed
Im making a program tha needs to type series of numbers until i enter any negative number or exeed 1...
[8 replies] Last: #include <iostream> using namespace std; int main() { const int li... (by kemort)
Put the whole value into char
I need to put the whole integral value into char from ifstream. (In this concrete meaning char is 1...
[1 reply] : You could override operator >>: std::ifstream& operator >> (std::ifst... (by fcantoro)
Lo Shu Magic Square C Programming.
'• The grid contains the numbers 1 through 9 exactly. • The sum of each row, each column, and e...
[3 replies] Last: Firstly, is there any reason you're making SUM a macro, rather than ... (by MikeyBoy)
Call by reference
This program is supposed to be scoring goals. The first two, eichel and kane are different from the ...
[3 replies] Last: I'm not sure you do understand what it means. If you did, you'd under... (by MikeyBoy)
by a7867
Programming help
I need to write a program that reads all the numbers:12 32 43 21 15 45 and displays them on screen a...
[4 replies] Last: You may find useful. I'm... (by MikeyBoy)
Recording specific data
I am running a continuous programme using an accelerometer and an mbed. So as not to overload the mb...
[no replies]
by Winsu
I have got this exercise to do...It's in a website that has a lot of exercises to do ,whoever want t...
[12 replies] Last: Hi, Sorry my idea wasn't of any help, I guess it all depended on the ... (by TheIdeasMan)
Calling functions assistance please:)
Calling functions in main are getting errors saying too few arguments in call please help. #incl...
[5 replies] Last: #include <iostream> using namespace std; const int CUPS_IN_A_PINT = ... (by kemort)
next step for C++
hi I can say that I have pretty learnt most essential concepts of C++. a) What should I learn ...
[no replies]
im having problems in arrays
lets say u have int x how to make all the 13 x equal to one value example x = 2 x ...
[3 replies] Last: do int x ={1}; Ah, no. That will only initialize x with 1, all oth... (by jlb)
by guru23
Printing 10 numbers per line
Hello everyone, I thought about something last night. I want to print 200 random odd integers wi...
[2 replies] Last: Great way to put it, I've never thought of it that way. Thanks a lot ... (by guru23)
How to test for new line when reading from file char by char
Exactly as the title states. I am trying to read in a file char by char but at the same time keep tr...
[1 reply] : if (ch == '\n') (by cire)
Pages: 1... 2829303132... 49
  Archived months: [sep2015]

Cannot post in this page. To post a new message, go to the first page.