General C++ Programming - November 2009 (Page 14)

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. I have another class (CCSToBOM_RefObj )with some data and...
[3 replies] Last: FIXED IT MYSELF:- It was due to the use of const_iterator instead o... (by leeainscough)
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 into vectors. The following code is what I have attempted to d...
[4 replies] Last: You should avoid strtok () -- it modifies the argument string. If ... (by Duthomhas)
From Assembly to C++?
 
I know this question doesn't have something related directly to c++, but, how was the Assembly language made? I mean, what "language" was used to make it's comp...
[8 replies] Last: What? He said something that he recanted. Punch-cards were in use a... (by Duthomhas)
by giro82
[Linker Warning] Public symbol defined in both module
 
Hi! I have following problem: Namely,when I use keyword " extern " to get the value of standard variable (e.g.float,int,..) or array located in one file a...
[8 replies] Last: Now it works, ;-) Thanks a lot guys! (by giro82)
VDM*.tmp
 
hello all, i'm now developing a program to read text file and send all the value from text file via serial communication. After i sent all the value from text ...
[1 reply] : Hello! Isn't problem that you used slash symbol instead backslash i... (by screw)
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)) something like this but whenever i execute the code its giving...
[5 replies] Last: if(ch == '=') { cin >> operand1; setValue(input , oper... (by closed account S6k9GNh0)
by mar11
devision
 
Hi all, assuming this code: int a; a = 90 / 20; cout << "a"<<a<<endl; // output is 4 How can i declare the variable if i want : 1...
[3 replies] Last: Also, you need to change either 90 or 20 to a float/double (otherwise ... (by firedraco)
Floating exception - can any one solve this problem please?
 
its a program for finding the prime numbers up to 100 can any one solve this problem..? #include <iostream> #include <string> using namespace std; ...
[3 replies] Last: Like jsmith said, your result array isn't ever initialized to anything... (by firedraco)
how to run template with Dev++
 
Hi someone can tell me how to run a template with Dev++
[no replies]
LNK2019: unresolved external symbol
 
hai..can anyone please tell me why am i getting this error?i really have no idea why i keep getting this errors? 1>3dWorldMain.obj : error LNK2019: unresolve...
[1 reply] : You're not linking with vector3D, Model ... You're either missing a... (by kbw)
extern'ing functions
 
Is using extern a valid and reliable way to have a function in one file access another? Or would I be much better off to make a header file which contains this?...
[3 replies] Last: Oh, I didn't think of that! Thanks :) (by chrisname)
by mar11
array
 
Hi, 1- Is there any data type through which i can store a large data(1000 Bytes). 2- how can i implement this arrays in smarter way: char array0 ...
[14 replies] Last: Of course! It's a pointer to a pointer, what am I thinking? char** p... (by chrisname)
Make a network library from scratch, how to?
 
Hello there, First of all, I'd like to say that I'm Brazilian, so sorry if my english is bad. To the case -> Is it possible to develop/make a network li...
[6 replies] Last: The relevant parts are written in assembly. Everything else is in C.... (by Duthomhas)
Pointer Question
 
I have the following review question. A list contains the values 30,40,60 in that order. p&q are iterators that point to integers on the list. What wi...
[3 replies] Last: Er...yeah >_> (by firedraco)
Program segments
 
I need help with the programming segments below...I showed my effort on trying to do them. However, I don't believe they are right. I am not using any queue cla...
[2 replies] Last: thank you for your reply, I will see if I can correct these problems a... (by NinjaLink)
CQ Transcoder
 
I'm making a cross-platform, GUI based audio transcoder. Anyone have any tips before I start? I plan on implementing as many libraries into it as possible and t...
[no replies]
Accessing Private Member
 
Hello people...I just want this program to print out a simple statement...but I'm having problems accessing the private member...help please... #include <...
[4 replies] Last: ^Lolz. You forgot: #define protected public (by firedraco)
by NGen
iostream - Where's the Stream?
 
Throughout the Standard Library, the term 'stream' is used multiple times. ifstream, stringstream, ostream, but what's the point of the 'stream' part of the nam...
[3 replies] Last: Basically, yes. It's an abstraction of that process. Think of an outp... (by helios)
Implement operator<< overloading outside class
 
Hi, I'm trying to overload the operator << for a class named "Point". The way I'm doing is this: I have three files, Point.cpp, Point.h and main.cpp. Point.h...
[2 replies] Last: Thank you jsmith! With your help I managed to solve the problem. I ... (by kunigami)
by levone
boost::bind problem
 
can someone explain this to me, the docs are completely useless. i have a server class that uses boost.bind like so: its_acceptor.async_accept(its_sock...
[2 replies] Last: oh yea. actually i think i thought that a while ago but forgot i thoug... (by levone)
November 2009 Pages: 1... 1213141516
  Archived months: [oct2009] [dec2009]

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