General C++ Programming - February 2011 (Page 7)

by ruda
int inside char*
 
I guess this is a simple question. Look this piece of code: mysql_query(connection, "SELECT `id`...
[1 reply] : You could use a stringstream. std::stringstream query; query<<"SELE... (by Zhuge)
Sum
 
Hello everybody! I have a problem : I don't know how to create an algorithm that takes n numbers of...
[5 replies] Last: Ok. Let me apologize again for misleading you. This is much harder pro... (by simeonz)
sort a dynamic array
 
Hello Guys, Before you read the next line know that I do have code :D instead of explaining wha...
[3 replies] Last: I'm just having problems accessing the ints from the array (by tkauffman2)
Hooking standard input and output
 
I've written a shell, and instead of adding useful features like a scripting language I've decided t...
[6 replies] Last: I think it's cool that it works but I don't think it works very well. ... (by chrisname)
Filling in a Dynamic Array dynamically
 
What's wrong with this code? It only executes the for loop once for index=0. #include <iostream>...
[2 replies] Last: Many things are wrong with this code. Line 6: You're allocating a raw... (by Athar)
by aps83
Stuck in Memory Allocation
 
Hi, This problem has been bugging me all day. It seems that when the size of the memory allocatio...
[3 replies] Last: Actually, I don't think there is something wrong with your code. I thi... (by simeonz)
Where is a good template/metatemplate/advanced C++ exercises bank?
 
I'm trying to expand my knowledge of C++ to truly understand the "++" aspect of C++. I was hoping th...
[2 replies] Last: Thanks - a colleague at work actually recommended that book, as well a... (by Darkenor)
Pointer/Template Exercise - Not Out Putting Anything
 
Hi, I have this piece of code, #include <iostream> #include <cstdlib> using namespace std; ...
[5 replies] Last: Hi, Thank you everyone for the help. Robertlzw, Disch, you are r... (by pcannons)
by chess
c++ string checking
 
Hi here is my program, my question is about firtname and lastname part, the question wants to check...
[1 reply] : After you read in the input, you can use the string method find_first_... (by Zhuge)
call function between classes
 
hello I have 3 classes class A, B, and C class A is the main class and content the main functio...
[1 reply] : That's really hard to follow. Can you post example code? (by Disch)
Vector problem
 
I'm writing a program for a competition which uses input from a file and creates output statistics a...
[2 replies] Last: I solved the problem, but it was by removing a line completely unrelat... (by tbear2500)
Game crashes! no error message, just stops
 
I am programming a game that has bots. Everything worked fine until I tried to make the bots respawn...
[5 replies] Last: Solved it! I don't know what happened with the original code, but I ma... (by ModShop)
Inheritance, polymorphism, and comparison operators in a binary search tree
 
I have a binary search tree that the nodes point to object "A". "A" is pure virtual and is the paren...
[4 replies] Last: The best way to bind the implementation of some function (predicate in... (by simeonz)
by Bezi
LAPACK/BLAS versus simple "for" loops
 
I want to migrate a piece of code that involves a number of vector and matrix calculations to C or C...
[3 replies] Last: What OS are you doing these operations on? I might have a way for you... (by Bezi)
Question About Code::Blocks
 
Hi Everyone, I'm trying to change over from wxDev-C++ to Code::Blocks but one thing is drivi...
[7 replies] Last: @ Luc Lieber: I'll check that out thanks. Boost has always been a head... (by Computergeek01)
[Making My Game] Save and Load
 
Hello guys, its my first topic here because im trying a new thing in my c++ knowledge. Im making ...
[13 replies] Last: The Property Tree library from Boost would also be a viable choice. Y... (by closed account 3hM2Nwbp)
please could you change this code from C to C++?
 
Hi please could you change this code from C to C++? thank you #include <stdio.h> #in...
[4 replies] Last: Dear BushraSQU Nonsense. You don't understand that piece of c... (by Duthomhas)
stl pairs question
 
I know that unless you change the default allocator, STL containers generally store their elements o...
[2 replies] Last: if T is a pointer type, std::pair<> will NOT call delete on the pointe... (by jsmith)
My friend with my father !!
 
Hi All, I have a class A. I inherit it to form a class B. Now if I delcare B as a friend of an...
[1 reply] : Compile and find out! class C{ int c; public: void func(); ... (by hamsterman)
by onako
Compile time
 
Supposing I have multiple very long (large number of code lines) cpp file (one major including the o...
[1 reply] : Why you should not include cpp http://www.cplusplus.com/forum/begin... (by ne555)
February 2011 Pages: 1... 56789... 25
  Archived months: [jan2011] [mar2011]

This is an archived page. To post a new message, go to the current page.