General C++ Programming (Page 2)

by Cagdas
Stuck with the std:copy() function
 
hi all, could you describe how can i copy the elements with std::copy() function here is the code,...
[5 replies] Last: it's so ridiculous, but i hâve to find it. the the copy function in l... (by Cagdas)
by Snaksa
Sudoku Solving algorithm
 
Hi guys! I'm trying to make a Sudoku Solving program for a couple of days but I'm stuck with the ste...
[2 replies] Last: One thing to remember is that valid indices for arrays are 0 to size-1... (by cire)
problem with code
 
do { cin>>location2; } while(location2!=1 && location2!=2 && location2!=3 && location2!=4 &...
[9 replies] Last: [quote=TheIdeasMan] Just trying to show some better methods. IMO it is... (by thejman250)
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)
Want to access a method form .cpp file
 
Guys, Just want to know how to acess a method from a .h file in another .cpp file Correct my code b...
[1 reply] : The definition of School::AddTeacher should look like this: void S... (by Fransje)
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)
Why is Python becoming popular among C++ developers
 
Hi all, Lately, people from the "C++ world" are speaking a lot about the Python language. C++ aut...
[2 replies] Last: Python is written in C and can call C code directly. Being interprete... (by cnoeval)
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)
Question about destructors and objects
 
I am reading Herbert Schildt's c++ book.In the book,there is an example code: #include <iostream...
[2 replies] Last: that example? ... hmm, websearch: http://www.seebs.net/c/c_tcr.html ... (by keskiverto)
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)
Pages: 1234... 88
  Archived months: [mar2013]

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