General C++ Programming (Page 4)

Program keeps crashing after i give 2 inputs!!!
 
Hi I need help on my program that keeps crashing exactly after two inputs.. ive been stuck on this f...
[4 replies] Last: Thank you so much for you help!! (by wildcharizard)
Snake Game Problem
 
Hey! So for an assignment I have I have to create a snake game along with adding a couple of my own ...
[1 reply] : Your problem is that you actually start a thread, but due to the joins... (by coder777)
by TChen
Workaround of insert different type object in one container?
 
#include <iostream> #include <vector> #include <map> #include <string> using namespace std; int ma...
[7 replies] Last: Store data in float is because these data come from GPU, and for GPU ... (by MiiNiPaa)
by kevo
Need some help with a prime number loop
 
#include <iostream> using namespace std; int main() { int k; int prime = 2; int count = ...
[4 replies] Last: your code, indented #include <iostream> using namespace std; int m... (by ne555)
Can someone help me understand the concept of the DXGI_FORMAT enumeration?
 
I am trying to make my first direct x game but I am having some difficulty trying to understand some...
[1 reply] : "Four-component" means that each pixel has four components, "component... (by helios)
int __cdecl main(int argc, char **argv)
 
This is the main function declaration for a Winsock Client Source Code. Can someone explain what th...
[3 replies] Last: I see. Crossed out the incorrect information. (by Zhuge)
compilation error
 
Hello! Can anyone explain me why if I make the function get_fName a const function, it returns _fNam...
[2 replies] Last: That question was not formulated as well. This is another question: ... (by leonid1990)
How do I work with pointers here?
 
I'm trying to change my pointer to point to the address of x. So that it would work like it would if...
[12 replies] Last: Alright, I understand it now. Thanks for the help. (by cppnoob25)
Tracing table question
 
Hello there. I am completely lost at what this question is asking. I appreciate any help hand tra...
[1 reply] : you should go step by step and get the output and the value of n 1. ... (by Gamer2015)
IRC Bot troubles
 
Ok, I have a new problem for you all. This time it has to do with IRC's and networking. I am trying ...
[1 reply] : Ok, I got it working. All commands needed \r\n in front of them. For e... (by Jacob16682)
by mliw
Jumping into C++ - 12 Days of Christmas problem
 
This is the question: Write a program that outputs the results of the 12 days of Christmas using s...
[2 replies] Last: hint: you might want to take advantage of fall-through cases I think... (by dhayden)
by jmlong
Why I can not get right number?
 
Hi, I have raw data in a binary file. I try to count how many Byte meets this condition: its value ...
[4 replies] Last: Thanks. I check other data file. It works. The previous one may be bro... (by jmlong)
need to solution of this two program
 
1) Write a C++ program that reads an integer N from the keyboard. Then declare two character arrays...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
SAT Collision Issue
 
Ok, I am kinda new here so hi guys!. I am having a bit of an issue with a collision detection system...
[10 replies] Last: Time to apply it to my awesome game now that I got it working. (by Jacob16682)
Code::Blocks problem with SDL
 
Ok so I have set up code blocks for SDL in my flash drive and it is working perfectly. Now i've crea...
[no replies]
by faazm
Key Press Event
 
I want key press event to be triggered when prompt to press any key in c++. I did not find any helpf...
[2 replies] Last: Thanks for reply! I have gone through ncurses but didn't found helpful... (by faazm)
weird class ctor
 
#include <bits/stdc++.h> using namespace std; class C { public: int ft, sd; C(int foo,int b...
[3 replies] Last: It is not a good idea for constructor to have side effects which can m... (by MiiNiPaa)
Problem with if statement.
 
hello friends... have a look of this code. fstream fout(file,ios::ate|ios::out|ios::in); cout<<"...
[16 replies] Last: Please post your current full code. Have you tried running it in a deb... (by dhayden)
Why is this number in my array?
 
#include <iostream> // Self explainatory prototypes void loadDeck(unsigned short card , const ...
[4 replies] Last: Ooooh, awesome. Thanks a ton! (by MJGilbert)
Pages: 123456... 19
  Archived months: [may2015]

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