General C++ Programming - April 2015 (Page 6)

does not continue reading input from the user !!?
 
When i run this program by input 50000, the output stops at 633 instead of 50000, Why and How to fix it !?? int main() { long int n; cin>>n; ...
[4 replies] Last: Is the program terminated when the output stops? I have noticed that s... (by Peter87)
General mathematic calculation and number comparison
 
Write a complete C++ program that prompts the user to enter a series of integers terminated by a 0. The program should then print: • The number of integers...
[1 reply] : if ( input == 0 ) break; // break the loop before it stores the 0 in ... (by xenovia12)
by Kyi
Digit to numbers using vectors and strings
 
I like to convert digit to number and number to digit only using vectors and strings. And when I run this code on Dev c++, an error message "Vector was not decl...
[2 replies] Last: Thanks a million :3 :3 #Peter87 (by Kyi)
Multiple compile option g++ an example
 
A programmer wishes to build a C++ program called videostore from a source file called videostore.cpp. The source file depends on the header file videostore.h, ...
[1 reply] : looks good to me ;) (by Gamer2015)
problem solving techniques using the concepts of linked list.
 
help me i want to implement this ..... Polynomial may be represented as a linked list as follows: for every term in the polynomial there is one entry in th...
[8 replies] Last: check out this That is awful to read as is. Please add code tags a... (by keskiverto)
Operator assignment function help!
 
Is it possible to create a function outside of the main, that is not part of a class, just as a solo helper function that can overload operators? I know that...
[2 replies] Last: Ah ok that was what I was asking for, cheers for clarifying! (by alex067)
Help with Stacks!
 
I have to create a function which takes a string of a postfix equation, convert it into an int and push it in a stack. Then, if the string contains any operatio...
[no replies]
Help resolve the question in C ++ (Calculator)
 
hey may I have some help to get solve for my problem, that you can find it in the web down? http://cdn.top4top.net/i_49766a2a9f1.jpg Please
[5 replies] Last: it is working thank you dhayden (by Majid1989)
How to write and then read structure from file?
 
Hey guys, I have a structure like this, but I cant find out how to write this structure record to file, and then read it from that file? Can you help me out? :/...
[5 replies] Last: #include <iostream> #include <fstream> #include <string> using name... (by BlatantlyX)
Double Linked List - Removing Node
 
Okay, So I'm having a few issues here with deleting a node in a doubly linked list. The structures and every thing have really confused me at this point. I feel...
[7 replies] Last: Then I don't see what your problem is. Peter87 already pointed out ... (by fg109)
please post the programfor the following output , its urgent i need to submit assignment please
 
Sample output: suppose input is: This class will be fun! Original Unsorted Data: This class will be fun! Sorted List: !Tabcefhiilllnsssuw (ascending) ...
[1 reply] : Please note, that this is not a homework site. We won't do your homew... (by keskiverto)
PLEASE HELP::COPY SPECIFIC ELEMENTS FROM A VECTOR (OF STRUCTS)
 
So I have a struct called CompanyInfo. struct companyInfo{ string companyName; // Name of the Company string products; // Company's produc...
[5 replies] Last: in C++98 mode It sounds like your compiler knows about new standard,... (by keskiverto)
Confused with adding scoring system
 
Hi, I'm a beginner with C++ and I was making a guess the number program, I wanted to add a score system but the way I went about doing it wouldn't work. I feel ...
[1 reply] : Score = Score-10; (by ne555)
Complaint: Disappointed (1,2)
 
This is ridiculous, I've ask one question and you guys refuse to reply? How does that help?
[22 replies] Last: > while(Inventory .stock!=0) ¿did you initialise your variables cor... (by ne555)
i want to evaluate polynomial using linked list
 
int polynomial:: evaluate_polynomial() { int input=0; temp = NULL; newnode = NULL; //int newcoeff=0, newexpo = 0; int evaluation_result = 0; temp =...
[1 reply] : in while statement there are two formula that click in my mind but bot... (by saad abbasi)
insert link in avl tree
 
Hey guys, i need some help with avl trees... how can i insert a link x y in these trees ?? I already have code for inserting a node but i can't find something a...
[no replies]
Cant understand the assignment!
 
Hello everyone, Not trying to get you to do my homework for me, But can someone explain to me what is this assignment is about? can you simplify it for me, b...
[3 replies] Last: Your program should allow the user to repeat this calculation as ofte... (by fg109)
Mixed double linked list?
 
So i have an assignment in which I have to code a list consisting of 5 nodes. First three are double linked and when the 4th starts, it doesnt have a ->previou...
[no replies]
Temperature conversion program
 
Good day to all, I need to get this temperature conversion program working, but when I run it I get this: 0 0 0 0 0 0 0 0 ..... ...
[6 replies] Last: This is a C++ site, so examples in C++ are not totally unexpected. I ... (by keskiverto)
Why is this so slow? Is it because of virtual functions?
 
void Render(const Renderable& obj) // An instance of Sprite gets passed in, which is derived from Renderable { sprite->Draw(tcr.GetDX9Texture(2)); sp...
[14 replies] Last: Doesn't seem to make much of a difference if it's virtual or not. I'm ... (by Horscht)
April 2015 Pages: 1... 45678... 28
  Archived months: [mar2015] [may2015]

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