General C++ Programming (Page 31)

What am I doing wrong here? (Pointers and references)
I'm not sure how to correctly do this. This is just for practice and serves no real purpose. That's ...
[4 replies] Last: Thank you shadow. That helped a lot. (by cppnoob25)
Help with pointers
#include <iostream> #include <string> using namespace std; void getSize (int *numStrings); v...
[2 replies] Last: Sorry for not putting the code within code tags but thank you so much ... (by ankitdua)
Having trouble opening a text file
Hello! Good morning! I'm trying to do some math with a text file that looks like: Mary Baggins...
[1 reply] : textfile >> data.A reads Mary . >> data.B tries to read Baggins... (by MiiNiPaa)
Forgot binary file read :(
Hi I have a file users.txt in server and client send a user name and server checks it, but I can onl...
[3 replies] Last: You need to send the file name to the server. (by helios)
improving my string implementation (1,2)
So I wrote the code for the string class but I know it can be improved. Especially for the += operat...
[28 replies] Last: If the order of declaration of non-static member objects of a class is... (by JLBorges)
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)
Pages: 1... 29303132
  Archived months: [jun2015]

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