General C++ Programming - August 2015 (Page 5)

Getting Data from Two Different Text Files and Storing into Structs
 
My C++ program won't get the data from the text file and store it into a struct. It compiles without any errors but it won't do what it's supposed to do. Als...
[5 replies] Last: Also there is a getline after formatted input problem. http://stackove... (by MiiNiPaa)
by Vv4H
Need help with random char generator with multiply ranges
 
Hi, im trying to create a 2d maze that changes every time you run it, but im having troubles generating random numbers between multiply ranges of numbers, like,...
[3 replies] Last: Thanks for the suggestion guys, ill try accordingly (by Vv4H)
by yj1214
Undercoated window or custom window?
 
Programs like iTunes, steam etc. seems to have their own style of window... How do these programs make their own window? do they just use undercoated window ...
[17 replies] Last: I think there is some confusion because of my usage of the word 'windo... (by LB)
by Vangy
What should i know
 
Hello What should I know to become good C++ programmer that can find job easily ? I gave yourself goal to master C++ no matter what. Already read PrimerP...
[1 reply] : http://www.cplusplus.com/forum/lounge/167619/#msg841272 (by helios)
c++11 pass by value vs reference
 
If I understand this correctly, in C++11 pass-by-value can be as or more efficient than pass-by-reference. However I was looking at some C++11 code and noticed ...
[6 replies] Last: > But if it is an rvalue that isn't a "prvalue" (if I understand this ... (by JLBorges)
need help with looping through array
 
Hey, I am having trouble with a part of a program. I am trying to read data from a file for airplane seats and then each set I read I want to run it through eac...
[3 replies] Last: Yea after a bit I noticed that I had c when I should have had c , not... (by footballfan123)
Character string
 
In the K & R book it states this: " Consider printing a number as a character string. As we mentioned before, the digits are generated in the wrong order: lo...
[1 reply] : As we mentioned before (by ne555)
Problems with binary predicates!
 
Please have a look at the following.
[7 replies] Last: > Are those two pairs of braces synonymous with the empty string ("") ... (by JLBorges)
c++ code help
 
Line 1 #include <iostream> Line 2 #include <string> Line 3 using namespace std; Line 4 int main(); Line 5 class Joust Line 6 { Line 7 string "yellowkni...
[5 replies] Last: lol, yeah I fixed it. (by Nybble)
by Sid123
Make A Sudoku Solver more interesting
 
Hi, so I am writing a sudoku solver where the user can enter their puzzle and the program will solve it. Code +algorithms for this are all over the internet, an...
[2 replies] Last: Anyone got any other potential interesting intermediate level projects... (by Sid123)
by homing
Vector of SharedPointers without C++11 move
 
Hey, As far as i know if I want to store a smart pointer(lets take shared pointer) i have to use std::move(..) , otherwise the vector will contain a copy of ...
[12 replies] Last: > so my example should be fine right? Yes. vec.push_back( std::sha... (by JLBorges)
by yj1214
Difference between GL and GLEW?
 
What's the difference between gl.h and glew.h? And which library is recommended?
[3 replies] Last: Restate: check out what the GLEW actually does. (by keskiverto)
Only I think that C++ popularity.. Has gone down? (1,2,3)
 
At the last month, I searched for resources for programming C++, but when I search it, I find old stuff. And why C# is more pupolar than C++? Looks like people...
[59 replies] Last: Read more carefully. Chapter 5 states that the actual release of 2.0 (... (by keskiverto)
shuffling array
 
I want to do the following: lets suppose we have array a ={1,2,3,4,0,0,0,0,0,0,0,0} here the number of zeros are double of non zeros so if a==1 then my arra...
[3 replies] Last: Scan the array once to figure out how many zeros are in it. Then work ... (by dhayden)
by kemide
linked list, class, pointer THIS
 
Help Guys, I am trying to solve C++ little problem. Write a program that uses the THIS keyword in the management of a linked list of 20 items of the same ki...
[1 reply] : That seems vague. Can you post more detail? Preferably the whole assig... (by dhayden)
by AldenB
Bulls and Cows game incrementing issue
 
I'm trying to program a text based guessing game called "Bulls and Cows". The rules are as follows: //----------------------------------------------------------...
[1 reply] : I have been able to account for bulls with ease It seems to me that... (by SamuelAdams)
Histogramm
 
hello guys, i tried several times to write a code for a histogramm. But it does not compile. I would be glad and very thanxful, if someone can help me out :)...
[1 reply] : Please, do not double post. It clutters forums and spreads attempts to... (by MiiNiPaa)
pointers in c++
 
hi, I have just started learning C++ and have a doubt on the use of pointers which may be really basic. My question is what is the real application of pointers?...
[7 replies] Last: thank you guys. It was really helpful (by niralivps)
Need urgent assistance with my code
 
When I try to debug my program I get this error Unhandled exception at 0x00F8D7C9 in MiniProject.exe: Stack cookie instrumentation code detected a stack-base...
[2 replies] Last: I also get a memset.asm not found error when jumping in the code when... (by Computergeek01)
C++ Hints
 
C++ Hints: http://cpphints.com/ Within the scope of this project, we publish 1 recommendation/tip on C and C++ programming every day, these tips containing c...
[1 reply] : The hints are quite good. (by kbw)
August 2015 Pages: 1... 34567... 17
  Archived months: [jul2015] [sep2015]

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