General C++ Programming (Page 4)

by tgckpg
How do I declare array of array but with different size? (1,2)
 
I am a beginner. I searched for hours an got confused about how declaring this: { {1, 2}, {1, 2, 3...
[20 replies] Last: Probably -- but I couldn't give you a clear answer without putting in ... (by andywestken)
Code cleanup
 
My primary function is about 1000 lines long. But I have to create two configurations : Debug & Rele...
[5 replies] Last: > My primary function is about 1000 lines long And who is going to de... (by JLBorges)
C++ String programming
 
Hello, I have come across this problem floating around the wonderful, amazing, and fantabulous inter...
[1 reply] : It looks like the algorithm just wants you to peel the next character(... (by Duoas)
by h0404
Difficulties to use boost
 
Hello, I am learning C++ at home with Visual Studio 2012, and need to do an assignment using boost ...
[3 replies] Last: You could use CMake - it will help create MSVC project simply with sup... (by Ivan Sidarau)
Command Line Parameters
 
Hi there, I googled for command line parameters in C++ and founnd out that I could use argc and arg...
[8 replies] Last: Wait, now I'm confused. First you convert to std::string , now you ar... (by Duoas)
by cCj
condition op. overload for class
 
hi can you overload class operators so that you can do this? if(Smartpointer) {} and this: ...
[5 replies] Last: that did the job! :) thanks (by cCj)
Why does this code run?
 
#include<cstdio> int main() {puts("abcde");} I haven't put std:: before puts and main d...
[8 replies] Last: MSVC++ 2008 gives compile error with this code: #include<iostream> ... (by eklavya sharma 2)
Use a class function in another function
 
Hello, I have a problem in using the nlopt optimization library. I have defined a class: c...
[no replies]
Smart Pointers in Vector
 
In this code: Person.h: // Person.h // A class defining people by their names #pragma once ...
[5 replies] Last: He also stated to always use std::string in any production program. (by Anmol444)
by Kronus
Adding values from an array
 
How would one add each value from an array? I'm working from a string but I was wondering if there w...
[3 replies] Last: #include <numeric> int sum = std::accumulate( numbers.begin(), numbe... (by vlad from moscow)
Add value to beginning (left hand side) of string (1,2)
 
This is probably a stupid question, but how do you add a value to the beginning of a string instead ...
[20 replies] Last: If it's a new problem, it should be a new forum thread. (by andywestken)
Pointers problem
 
Hi everyone! I am a little confused while comparing char pointers to integer pointers. Here is the...
[3 replies] Last: @kbw : ptr is pointer and cArr is pointer to the first element of the ... (by hamzaali906)
Pointers Concept Clarification
 
Hi everyone! I am a little confused while comparing char pointers to integer pointers. Here is the...
[2 replies] Last: The first statement you posted is incorrect. You must have a const cha... (by firedraco)
Text based v.g. save issue?
 
I would like to create a video game. It would be text based. How could I set up a save system? Also,...
[3 replies] Last: ...video game... ...text based... Wha? (by cire)
Undefined Reference when I include GL\glut.h
 
I have a h file with the following in it: #ifndef RESOURCEMANAGER_H #define RESOURCEMANAGER_H #in...
[1 reply] : So, I found out if I include both windows.h AND glut.h, it compiles fi... (by officialhopsof)
Changing variables in other classes Code::Blocks
 
I want to make a basic RPG text based games with multiple classes. but I wan to know how In one clas...
[1 reply] : http://www.cplusplus.com/doc/tutorial/classes/ (by Zaita)
by Tresky
Copy Constructor and Assignment Operator
 
Hey guys. I've been working on some project and I got to wondering when you know you need to use ...
[4 replies] Last: > when you know you need to use a copy constructor and an assignment o... (by ne555)
Formatting Output
 
How do I print this on the screen using #include<iomanip>: ************************************...
[1 reply] : And what is the problem? (by vlad from moscow)
pre-increment vs post-increment
 
it makes sense that at least with larger data structures or classes that overload these operators, c...
[1 reply] : [quote=caibbor]" However, references returned also have to be put into... (by Framework)
If Statement Within a Switch
 
Hello! I am having a bit of difficulty with this. I wish for the program to output "The number zero ...
[2 replies] Last: Ah. You are correct, Mister Vlad. I didn't realize that the '=' operat... (by Vauxhall)
Pages: 123456... 89
  Archived months: [mar2013]

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