General C++ Programming

by admin
news Welcome to this board! closed
 
Welcome to the general programming forum in C++.com! In this forum, users can to talk about any t...
[no replies]
post Bitwise shifting
 
I thought I had understood this :l I'm trying to shift a hex number to get the first and last bit...
[13 replies] Last: 0xABCDEFG What the hell? G? This is hexa decimal, ... (by helios)
question Void Functions
 
Hello Everybody.I need to write a C++ program(block letters via functions) Firstly, write a funct...
[12 replies] Last: No. Pass meaningful variables as arguments ( streams as references ) (by Bazzy)
solved Arrow operator
 
I'm playing around with SDL in C and for some reason; I'm getting a segfault using the pointer-to-me...
[7 replies] Last: Hmmm... I'm getting a segfault with something different now; whenever ... (by chrisname)
solved class inside class (1,2)
 
how to declare in main a object of class that has within other class with variable member that point...
[28 replies] Last: thanks a lot guys (by olove05)
post c++ array question
 
This is homework but im somewhat confused, i dont want the answer but maybe you could point me in th...
[1 reply] : Think on how you would make two related arrays I think this is relate... (by Bazzy)
post Cross-Platform C++ GUI Library
 
Hi. I want to know what GUI library is the best for C++. FLTK, GTK, Qt or wxWidgets. And why, please...
[1 reply] : hi, i cannot talk to much about FLTK, Qt or wxWidget, however i've ... (by martinpjvr)
post c++ parralell array program
 
Im trying to write a program from this programming book i just bought and am having some difficulty....
[no replies]
post catching template errors
 
Now I have made a template to slurp a file into an STL list container perl style templ...
[7 replies] Last: I don't think you can do it automatically. But there are softwares for... (by R0mai)
solved Lack of clarity on teacher's assignment (function pointers)
 
As it is the weekend, sending an e-mail to the teacher would be redundant, but I'm lacking clarity o...
[1 reply] : It sounds pretty clear to me. 1. Select a function. 2. Input two i... (by helios)
post Problem defining variable in value returning function
 
Hello, I'm working on a program with value returning functions and I just can't seem to be able to...
[no replies]
post Cross-Platform C++ Network Library
 
Hello there, I would really like for somewone to point me out a good (or excellent) C++ cross-platfo...
[2 replies] Last: thanks for the reply :D (by kibestar)
post generic stack with a static array (1,2)
 
Im trying to get a stack with a static array. Most of it works except for when im trying to output. ...
[23 replies] Last: Im getting no more compling errors,but now im having linking errors. ... (by kakashi316)
post string method clear
 
void main() { int i; DWORD count,stop; wstring str; count=GetTickCount(); fo...
[2 replies] Last: Running your code gives me this results: for = 1061 for clear() 41... (by Cojones)
post hi everyone
 
if you need any help with oop ,I can help you just give me your quastion and i will do my best th...
[no replies]
question functions.....so confused
 
Okay, so I'm writing this program that asks for 6 grades and calculates averages and stuff. I need t...
[2 replies] Last: Also, using cin to read std::strings is generally not a good idea; use... (by Zhuge)
post Store 2d array information in an integer?
 
I want to make an integer store the location of my array, something like this: string colle...
[2 replies] Last: Thank you, I probably should have learned this a while ago ... (by DrChill)
by bob10
question ostringstream doesn't work with string and integer
 
Hi there, i'm trying to use a ostringstream to insert two integers in a string. This is my code at...
[5 replies] Last: The problem is that I use Xcode as IDE. When compiling in bash with g... (by bob10)
by vvarma
post const declaration problem
 
I have a piece of code whose skeleton is as follows: //all necessary includes size_t fact(int ...
[no replies]
by kamebr
post How to sort a list of Strings.
 
Hello guys, im new to file manipulation and i just create a file with a list of strings, ie: AAAAAA...
[1 reply] : If you load them in a container you can use standard algorithms: http... (by Bazzy)
by kenr
post rules of inheritance when passinf by reference
 
void SomeFunc(ClassA **inst) { ... } Class ClassA { ... } Class ClassB: public Class...
[3 replies] Last: Implict conversion from ClassB** to ClassA** is inhibited because it i... (by Abramus)
post vectors in a class within a class not working.
 
Im using a STD::VECTOR referenced in a class. I have a class CCSToBOM_AttribObj with some data in it...
[3 replies] Last: FIXED IT MYSELF:- It was due to the use of const_iterator instead o... (by leeainscough)
post Read from textfile and store in multidimensional vectors
 
I am attempting to use multidimensional vectors to store the following dataset which is stored in a ...
[1 reply] : I am thinking about structuring my multi-dimensional vectors using the... (by garrett)
solved Storing a String of Data into Vectors
 
I have a string str="L1 L2 C1 P2 P1 S1 S2" and I would like to store each value in...
[4 replies] Last: You should avoid strtok () -- it modifies the argument string. ... (by Duoas)
post From Assembly to C++?
 
I know this question doesn't have something related directly to c++, but, how was the Assembly langu...
[8 replies] Last: What? He said something that he recanted. Punch-cards ... (by Duoas)
by aas029
question Friendship is not inherited
 
Hello, The common/classical explanation for the statement "c++ friendship is not inherited" is t...
[4 replies] Last: I thought I could shed some light -- I'm doing similar experiments wit... (by Beta)
by giro82
question [Linker Warning] Public symbol defined in both module
 
Hi! I have following problem: Namely,when I use keyword " extern " to get the value of st...
[8 replies] Last: Now it works, ;-) Thanks a lot guys! (by giro82)
post Strings, extracting elements, and recombining to form new string!
 
I am working on a Lab for my computer science class and these are the topics that I need help with a...
[1 reply] : 1.) Use std::getline(). 2.) Use the .find() and .substr() members of ... (by firedraco)
post VDM*.tmp
 
hello all, i'm now developing a program to read text file and send all the value from text file via...
[1 reply] : Hello! Isn't problem that you used slash symbol instead backslash i... (by screw)
post mutiple math operations in a single output
 
im trying to do a math calculation that involves multiple math operation ex((a+b)*(sin(a)/sin(b)) so...
[5 replies] Last: if(ch == '=') { cin >> operand1; setValue(input[0... (by computerquip)
by mar11
questionsolved devision
 
Hi all, assuming this code: int a; a = 90 / 20; cout << "a"<<a<<endl; // o...
[3 replies] Last: Also, you need to change either 90 or 20 to a float/double (otherwise ... (by firedraco)
Pages: [1] [2] [3] ... [14]   Archived months: [sep2009]

Registered users can post in this forum.