General C++ Programming - June 2014 (Page 12)

quick 2 dimensional array help
 
the file looks like this, the first column is the first element the columns after are scores 1h 0.7 0.4 0.2 0.4 -0.1 -0.2 -0.3 1as 0.7 0.4 0.2 0.4 -0.1 -...
[1 reply] : What exactly are you having trouble with? Your code looks like you are... (by Zhuge)
by fafner
Unfamiliar syntax
 
I downloaded some code for triangle-box intersection, and it contains a way of defining functions I haven't really seen used before. Here's an example: #d...
[4 replies] Last: vector will point in the opposite Yep cw vs ccw (by vaportrack)
need help for a game
 
I made a cricket game. It doesn't have graphics involved coz I suck at it. The program generates a target and the user has to reach that score in 3o balls. Bt t...
[2 replies] Last: It's pretty long. Can't I just explain it. The program calls rand() an... (by aviskar)
Easy explanation for a pipeline?
 
I've heard this term frequently, and even googled it... although it doesn't make much sense to me. I understand its kind of like a set of processes in order, bu...
[2 replies] Last: Ohhhh.... I thought it was the other way around. Well, anyway, just a ... (by AceDawg45)
by Kubani
A complete step-by-step reference for qt beginners
 
Although I have the book C++-gui-programming-with-qt-4-2nd edition but I think starting Qt (Open Source) in the website ( http://qt-project.org/ ) can be si...
[7 replies] Last: Thanks again guys. (by Kubani)
IBM 5170 bios bigger than 8k?
 
If an IBM 5170 wants to use a BIOS bigger than 8k (which is located at the final segment 0xF000:0000 afaik), how does it use bigger ROMS? Is some I/O operation ...
[no replies]
by Kubani
Problem with creating first project and the book “C++-gui-programming-with-qt-4-2ndedition”
 
Hi all, I installed “qt-opensource-windows-x86-mingw482_opengl-5.3.0” on my Windows 7 machine. For learning Qt I chose that book (on the title) and start...
[11 replies] Last: It is buried inside a couple folders. Try Qt 5.3.0 > 5.3.0 > MinGW**. (by admkrk)
using rand function in while loop using switch statement
 
Basically I'm supposed to use a while loop to generate a random number and use a switch statement to output the appropriate information.I feel like I'm missing ...
[2 replies] Last: Maybe change your line 12, since you're using a variable (randomNumber... (by tipaye)
Algorithm to get the decimal part of a number
 
Hello, cplusplus.com I'm writting an algorithm which equals to std::to_string. The inttostring part is fine, and the decimal_part too. But when the number digi...
[6 replies] Last: > I don't know how many digits will the user enter and I need to use a... (by JLBorges)
help with templates
 
I am dealing with a code with templates, and it gave me this error: " In member function `no<I>* Abmais<S, I>::deletarValor(int, int, no<I>*, no<I>*, I,...
[6 replies] Last: > I still cant run my code , why is that? Not exhaustive: - Your progr... (by ne555)
Down casting -- memory issues
 
Hi All Class B {}; Class Derived : Public B {int a ; }; int main() { Base b; Derived*Dptr=static_cast<Derived*>(&b) .... ...some code .......
[3 replies] Last: @Thanks all. Peter87 (5388),coder777 (3857) This info is very helpful.... (by venkatacplpl)
by send
Swarm of inswects with different velocities according to its colour
 
I need to realize such algorith in practice. Can anybody refere to any worksble example as its difficult to find acceptable code despite a lot of swarm intellig...
[7 replies] Last: I ahve a very bad conncetion so i have no such possibility to correct ... (by send)
Palindrome: string subscript out of range
 
Hi Guys, I am trying to create a simple palindrome program. I get the error string subscript out of range. I am learning c++ on my own and have spent many ho...
[2 replies] Last: In cleanToLower() , you have: [code firstline=50] string::size_type... (by MikeyBoy)
Libraries
 
I'm trying to modify a library of a code and do not know exactly how to do it. I'm modifying the .cpp file and I know (as I have read on the internet) that I s...
[3 replies] Last: http://stackoverflow.com/questions/5947067/how-to-create-a-static-libr... (by naraku9333)
by twesna
Need help with issue
 
kk
[6 replies] Last: @twensa Are you brazillian? (by iQChange)
I made this text game in C++ and I want to know what you guys think of the code
 
Please see most recent code posted below, code in this thread is old! https://drive.google.com/file/d/0B02jbZGT_60nRFJiSndidmc3Szg/edit?usp=sharing This is ...
[8 replies] Last: Input validation function: string prompt(const string arry , int n) {... (by closed account j3Rz8vqX)
Potential Interview question
 
So if you are having a online chat with someone.. write a program that will look at all your words and pick out the most used 5 words.
[14 replies] Last: I never seen an init list like that either. cool. (by Cody0023)
by Manga
Well now what!
 
I have gone and done it this time. I spent the past few weeks working on this game and now I don't know how to finish it. The game has these tanks that drive...
[7 replies] Last: hmmm... thanks everyone. (by Manga)
number munchers
 
Anyone who is familiar with the classic game number munchers: Depending on the game mode, I'm trying to generate factors or multiples of a target number and pu...
[2 replies] Last: Its ugly, but I think I got it. void NumberMunchers::fillGrid() { ... (by Aaron Vienneau)
number munchers
 
Anyone who is familiar with the classic game number munchers: Depending on the game mode, I'm trying to generate factors or multiples of a target number and pu...
[2 replies] Last: #include <iostream> #include <iomanip> #include <vector> #include <ra... (by cire)
June 2014 Pages: 1... 1011121314... 21
  Archived months: [may2014] [jul2014]

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