General C++ Programming - March 2010 (Page 9)

Using string as part of a structure variable
 
I'm working on a project, and I need your help. I want to call the first part of a structure variable with a string. For example, I would like: struct...
[5 replies] Last: Thanks for the help with structures and pointers; I learned it from a ... (by mynameinc)
EOF marker and EOF signal
 
I'm about to have a quiz on this, but I'm still a little confused about what is EOF marker and what is EOF signal. So can anyone explain the difference betwe...
[2 replies] Last: EOF is a carry-over from C, equivalent to std::char_traits <char> :... (by Duthomhas)
by kiki89
Character in C++ with OpenGL
 
We need to do a character using Opengl in C++ but we don't really know how to program in C++ (only C# which i understand is similar). Do you know any tutorials ...
[2 replies] Last: Judging from the phrasing, I infer this is either for school or work. ... (by helios)
system("ping" ) fails!
 
Hi! I'm trying to ping a target , and i use string pingStr = "ping " + target ; system( pingStr.c_str()); but, this fails! Can anyone tell me why th...
[8 replies] Last: Never use the system function. It's bad practice and is a huuuge secur... (by Seraphimsan)
problems with std::vector
 
Hi: I have the following problem: im trying to use std:vector, but im having some troubles. I declare an estructure typedef struct{ float a; float b; ...
[8 replies] Last: yes yes dont worry. im aware of it. i think that by tomorrow ill post ... (by Meyer9000)
HOw will i make a 5 X 5 2D array w/ diagonal sum.
 
5 X 5 Two dimensional integer array in the main function and its diagonal sum.should i use 3 pre-defined functions? example like this : 1 2 3 ...
[4 replies] Last: 1) This is the General C++ Forum 2) Why don't you watch your mouth? ... (by psault)
Accessing file on another computer with Authentication
 
Hi All, I want to access a file on another computer using a UNC Path in a Win PE Task Sequence environment. The UNC path looks something like this : '\\<comp...
[1 reply] : Hi, I just found out the answer to my question. What I did was map ... (by waterborne)
by bymaks
External Applications Running Turbo C + +
 
Hello turbo c + + with a command that I compile a program how can I run extension xxx.exe.
[2 replies] Last: haha that's awesome! ~psault (by psault)
STRSTR searching
 
I'm writing a program that searches 5 words in 30 lines to text, but I need to start out small so i'm doing 3 words in 3 line of text first. Right now i'm gett...
[1 reply] : You've got some bugs to fix. But first off, what you're passing to st... (by psault)
by dkaip
An include problem
 
Hello all. I have a problem with a structs.h file. Compiler gcc say that `wstring' does not name a type ... I am working in XP and gcc CodeBlocks ...
[3 replies] Last: Compiler take both. Need using namespace std; Thank's Jim (by dkaip)
A Question of Template class
 
Hi all, there is link error confuse me, I have a rbtree.h file like this: template <class K, class V> class RbTree { public: RbTree(); RbTree(...
[1 reply] : You have to put the code for the template in the header file; it canno... (by jsmith)
by Vidus
Question about audio programming
 
Hello i was wondering what part of the audio file is used to make a spectrum, or the effect's in windows media player where the visual's pulsate to the music. I...
[7 replies] Last: I got an idea of how it works now. I started coding it earlier today, ... (by Vidus)
pointers and objects, another question.
 
Hi, I am confused with pointers to objects. Suppose I have a class by name "be_int". Now, when I create a pointer to the object and allocate memory this way...
[1 reply] : -> takes a pointer on the left side . takes an object on the left sid... (by Disch)
Find maximum number!
 
I am trying to find the maximum number from the numbers entered from a keyboard.Anyone with a short approach? Thats is my code // Code to find the maximum...
[11 replies] Last: This is the shortest and simplyest solution: #include <iostream... (by sprecho)
relating classes
 
Aloha... In my current program I have a few classes which need to call methods from other classes (there are no circular dependencies (like A calls B.Method ...
[1 reply] : hmmm... well... if anyone is interested... I add an wrapper-clas... (by Incubbus)
free a pointer object
 
Hi, Suppose I have a class as shown below (I know it is very basic, no constructor etc..). template <class T> class bigEndian { private: vector<T>...
[2 replies] Last: Great! thank you very much (by pozdrav)
by caldin
defining insertion operator (1,2)
 
hey guys, working on a project for school, and i'm getting 5 errors from one function definition. here's the code i have written for it: istream &operato...
[24 replies] Last: yes, because you still have to change the declaration in your class. I... (by maikel)
by sporx
Big O notation
 
how do you figure out the Big O notation order of magnitude for something? for example, whats the order of magnitude for each fundamental operation performed on...
[2 replies] Last: See also http://www.cplusplus.com/forum/beginner/15528/ (by jsmith)
by JRevor
Problem with STL
 
In this program, I'm doing some byte/bit level management ( Im working with bits instead of bytes). In order to work with bits, I'm extracting the j-th bit, and...
[5 replies] Last: Thanks a lot for the answers. There's a lot to be learnt from you, guy... (by JRevor)
by Mee
A better way?
 
Hello, I was recently given a task in which I had a file which followed the format: Clause sourceline sourceline sourceline Clause sourceline With...
[4 replies] Last: That would be a neater looking way to store it, but would it speed it ... (by Mee)
March 2010 Pages: 1... 7891011... 23
  Archived months: [feb2010] [apr2010]

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