General C++ Programming (Page 2)

request for member of non class type?
When I run my code I get this error and I don't know how to fix it. error: request for member 'push...
[6 replies] Last: Thanks coder that makes more sense. I still don't understand my error... (by coder777)
by frisk
Problem in a function when i pass THE string
HELLOOOO i have a stange problem.. hoping you can help me. this is the main int main(int argc, ch...
[6 replies] Last: Well.. gode point (about argv), my is a stupid move. thanks for advic... (by frisk)
by Ozzy69
Why appear the string yeahh twice?
Hi, why appear the string "yeahh" twice in the code: #include <iostream> #include <fstream> u...
[1 reply] : Becaue you are looping on eof which is incorrect. You should loop on i... (by MiiNiPaa)
Forward-declarations and inheritance
Hi, I have a type called "Watchable", which can be pointed at by a "WatchPtr" (a template which acc...
[4 replies] Last: I suggest /** This is a pointer that let's you observe the lifetime ... (by helios)
Card game - help
Hello! I made a simulation of the card game War, but I'm having some trouble with the randomization ...
[2 replies] Last: @Bdanielz (by naraku9333)
Tax program issue (not sure what to do :L
Hello! This is my first time posting as I'm pretty stubborn when it comes to getting help with anyth...
[1 reply] : Quick google search (by Bdanielz)
Memory access problem with pointer
I'm having a run-time error with memory access. I tried to shorten my code below to highlight what's...
[3 replies] Last: You were right that wasn't it. It was because of my destructor and I ... (by BarelyOtaku)
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)
Pages: 1234... 18
  Archived months: [may2015]

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