Beginners - August 2013 (Page 23)

by Soth
Operator Overloading
 
Hello everyone, This was my homework so it is not anymore I'm just curious to solve it. Here is what this program was suppose to do. Main program was given to ...
[16 replies] Last: unforunately you need a bunch of parenthenses Thanks for your repl... (by Soth)
ordering Character array
 
Write your question here. for(int i=0;i<NoCand;i++) {for(int j=i+1;j<NoCand;j++) { if(NumVotes >NumVotes ) { ch...
[4 replies] Last: You have to use standard function std::strcpy declared in header <cstr... (by vlad from moscow)
sizeof string
 
What is the size of string here when i store a very longer string b is able to store complete string but when i cout its size it shows it size 8 bytes whats...
[4 replies] Last: okay gotcha! (by hellcoder)
ofstream & Array& Function
 
When I attempt to output the array in the second function using ofstream I get nothing. I feel the character getline is not written correctly buy I'm unable to ...
[7 replies] Last: cire, Thanks for the information regarding my int x;. I was using thi... (by masschamber)
How to remove an element form a linked list
 
Hi, I am trying to learn c++ by my own using the Jumping into c++ book. So, im at the linked list part and I am trying to write a program which add and remove e...
[3 replies] Last: In the same way that addNewEnemyToList can result in a new list "hea... (by cire)
cin.ignore();
 
i want to take rest of string from input buffer to b after using cin.ignore(); whats wrong in that? eg: say first i entered the string "hello how are you"; ...
[4 replies] Last: okay got it! thanks (by hellcoder)
C++ HELP!! On what code to write for addToDLLHead and deleteFromDLLHead
 
I am trying to finish a addDLLto head and delete DLL from head project ive got most of it i just need to know the code because im not sure what i did but everyt...
[2 replies] Last: I copy pasted the code from addToDLLTail into addToDLLHead. Then, I j... (by kevinkjt2000)
by BToven
How To turn around a character sequence;
 
How to turn around a character sequence? I tried using for but failed..
[3 replies] Last: http://stackoverflow.com/a/198210/1959975 (by LB)
The Walkies Trick
 
/* THIS IS A TURBO C++ CODE*/ /*the question is that their are some walkie talkies in their early development stages a person buys some. these walkies talkies...
[1 reply] : @Katyayn: hmm, interesting question. I am currently short of time, bu... (by Himansh)
C++ editor
 
Hello guys I m new to this forum and I have learned C++ last 10 years ago. Now I want to learn again. But the problem is I don't have the editor. The last t...
[4 replies] Last: As I'm waiting for Visual Studio 2013 RTM to be released, my current s... (by Catfish4)
Common error message
 
I'm almost always getting this error message which is preventing me from running my program, the following is the full message i receive. If anyone has a soluti...
[4 replies] Last: :-) This multiple defintion error can occur for cases other than mult... (by andywestken)
function without a body!
 
We probably all know that sqrt() returns the square root of its argument,I found its prototype within math.h header but does anyone knows where is the body(or i...
[10 replies] Last: Thank for the great explanation @andywestken (by closed account 28poGNh0)
inserting to a linked list?
 
So I'm trying out this code that was given to me by a friend, and I can't seem to get the data to be inserted to my linked list. retrieveData() was able to retr...
[4 replies] Last: To be honest, I looked up some sample code and it seems to be much mor... (by riechan)
Error Message
 
Good morning. I have written a homework solution that seems to be what is required however, I am getting an error message that states, "Vector subscript is out...
[1 reply] : Being out of range, in your case, means that at some point j has a h... (by Catfish4)
A qustion about regex search?
 
hi,i am new here,i have a problem with imitating a behaviour of flex that is returning a token after each call of yylex. i use the following solution. ...
[6 replies] Last: @JLBorges i appreciate your help,it's so nice of you! (by immm008)
Pass 2d array to function?
 
Hello, As far as I understand, this is correct/fine code, aside from the "8" being hard-coded (it normally should not be) void ShowArray(int* a) { for(...
[11 replies] Last: could I still get "ShowArray" to work as discussed? I assume you me... (by andywestken)
Program Title
 
Hello, I just wanna ask how to change the name of your program. It's default name is the location of your file.
[4 replies] Last: @Disch Noted, thanks. (by Chervil)
How would you write 2M using escape sequence?
 
Hi there i just wanted to ask how would you write 2M using escape sequence? its an exercise in my book A 'M' is \x4d Edit: Something i need to make clear.sry ...
[8 replies] Last: thanks EssGeEich. Thanks (by closed account EwCjE3v7)
arrays and command lines....again
 
I posted earlier today with my code dilemma, but was completely confused about what was supposed to be the resulting output and how the user was to enter the in...
[1 reply] : Just trying to do the error check for negative numbers for n. Added an... (by afleury1)
Template method implementation
 
Hi guys, There's 2 classes: #include <iostream> #include <string> #include <list> class Something{ private: string word; int number; public: string getW...
[4 replies] Last: If you're unsure about templating, write it first first your specific ... (by andywestken)
August 2013 Pages: 1... 2122232425... 51
  Archived months: [jul2013] [sep2013]

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