General C++ Programming - March 2011 (Page 14)

by beakie
name/value function
 
can anyone please tell me if the following looks right? its supposed to be a function to add a name / value pair to two arrays. the arrays are defined as: i...
[15 replies] Last: Rewrote with your suggestions and it worked! void AddNameValue(ch... (by beakie)
by CRohit
Output string contains junk character
 
Dear Friends, I need help to understand why junk character are displayed. Read the following code. I have created a user defined datatype MyString. It has t...
[9 replies] Last: @filipe: Im sorry about the unindented code. im new to this. il rememb... (by CRohit)
by sara90
problem in linked list
 
hello every body i want to know how to save a linked list int a text file and how to load a file in a linked list ?? any one can help me and give me a simple...
[1 reply] : a silly recursive solution (it is generally better to use loops when y... (by hamsterman)
by iNgine
Help me with my C++ code
 
a program that would ask the user to enter positive float values from the keyboard when promted by the program. to signal end of input the user enter a negative...
[2 replies] Last: We'll happily help you after you post some code that indicates that yo... (by Albatross)
by ladman
excell documents imported into program
 
i have a question, i saw a game presentation the other day were the group used a excell document to hold all the charaters and there invintory, hitpoints and...
[2 replies] Last: Excel supports some easy to parse formats: csv and xml. (by hamsterman)
by itgirl
problem . in c++ code . insertion- search
 
hi .. i codded in c++ but i have many errors . i'am until now sudy c++ by myself . if you can help me to explain my errors in my code . i will be soo thank...
[1 reply] : i'am until now sudy c++ by myself Actually That statment is inco... (by king214)
WHAT'S WRONG WITH THIS?
 
Hello Everyone!! I just want to know the error in this piece of code (temperature function) that I suppose to call in my unit converter program. For instance,...
[2 replies] Last: hi, i've checked this and i get a value for 33.8F to C equals to 333.9... (by pgregor)
by aj3423
is it possible to write a container for different boost::signal
 
Hi, I'm trying to write a UI lib and got a problem when implementing the Observer model. I've read the tutorial about boost::signal, it's beautiful, but I need ...
[4 replies] Last: Actually, what the OP wants may be useful. I have no experience to say... (by simeonz)
Problem with a search
 
Hi, i am having problem with this program, i have to search in an array the name of the person that have a selected id from a cin, if anyone can help me, here i...
[no replies]
Frustrating problem with if statement using booleans
 
I cannot figure out why my program does not catch the last part! So the function asks for 2 inputs, and then after those it should ask for a bool answer (wheth...
[2 replies] Last: omg your a genius! thank you so much. its been a long day :( (by LiverpoolFTW)
Audio files programming
 
Hello programmers :-), I'm not so sure this is the right place to place this question, but I don't know where else to go. I would like to understand how a...
[4 replies] Last: Thanks :-) (by TheDestroyer)
removing leading+trailing dashes from strings (1,2)
 
Hello everyone in this great forum, which i finally joined! I parse wordlists: ifstream StmFI("wordlist"); string s; while (StmFI >> s) { // e.g. "...
[21 replies] Last: It seems to me that there're bugs in the last post: std::string rem... (by dutChBZ)
Need Anyone Who Create This.
 
Hi everyone should be a big help to me. I finished a program and i need better gui. The gui is simple same as now only need to add one logo. Here is the progra...
[no replies]
by bairyd
Reading/writting to/from IM chat client
 
Hi there I'm fairly new to c++ (only 1 year experience using Visual Studio) but I've done lots of work before. I've done plenty of searches through google wi...
[7 replies] Last: send me an email: ultifinitus@gmail.com (by ultifinitus)
operator+ ::a little problem
 
hi! i have created a simple class with operator+ to allow adding int to new objects. folder widmok.h: #ifndef _WIDMOK_H #define _WIDMOK_H const int ro...
[3 replies] Last: Thank you very much. @kbw: yes, of course, how could i forget! ; ) i... (by pgregor)
by Mathes
extending a class
 
Hello, i have a question about extending a class. class ExString : public std::string {...}; now i want to implement some constructors. i had this...
[2 replies] Last: thanks for your answer. (by Mathes)
Returning member vectors.
 
I have a couple classes that have member vectors, and I want to return these vectors (or a copy of them, I only need them for reading purposes) with a method ca...
[3 replies] Last: @Mathes: Note that subverting C++'s type system through const_cast is... (by jsmith)
Writing strings and shorts as bytes
 
I have some data that I'm trying to write to a certain file format. I have the description of the file format, but it's in bytes (I.E. the first 4 bytes have to...
[6 replies] Last: @Duoas I love you. (not really, but you are definitely awesome) (by ultifinitus)
system time using c++2010
 
hi friends, I use c + 2010, I want to know how to display time system in a textbox, I do: private: System::Void button1_Click(System::Object^ sender, Syste...
[1 reply] : this is the solution: private: System::Void button1_Click(System::Obje... (by mimou89)
C Function Attributes
 
Hey Guys, I was wondering if the Function Attributes for the C language have been depricated in the current standard for C++? My testing shows that they s...
[2 replies] Last: You know, I knew that at the time I wrote this and even now had betwee... (by Computergeek01)
March 2011 Pages: 1... 1213141516... 31
  Archived months: [feb2011] [apr2011]

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