Beginners - November 2016 (Page 10)

Program error
 
A blank line is inserted after every 5 data displayed. Can tell me the error ? and how to fix it ..Thanks #include<iostream> #include<iomanip> #includ...
[3 replies] Last: Hi Andy. Thank for the reply @Andy #include<iostream> #include<ioma... (by DesmondLee)
How do I make this program in polymorphic form?
 
This is the code I'm working on #include <iostream> using namespace std; class store { protected: int x; public: char shelf() { char x; c...
[1 reply] : Sorry, who is a mother? Who is a daughter? (by Bdanielz)
Assigning Random Number Generator
 
Hello I am trying to make a program that takes the first and last names of people and makes a username for each person, the username is the first letter of the ...
[4 replies] Last: You need to read the user names and passwords into the arrays declared... (by JLBorges)
Linked List Dynamic Array?
 
I'm trying to make a dynamic array, I have a linked list of structs getting data from a csv file, but the values don't seem to be saved in it, so I continuously...
[1 reply] : @Shikana You are lucky. I have the same assignment and luckily I ha... (by MaxwellD65)
Checking not a number value
 
Hi I have a variable X, this variable sometimes returns not a number (nan). I want to check this variable if it is a not number or a number and make this v...
[4 replies] Last: Okay. Thanks it is working now. (by ajlahmed)
function help answering questions
 
I'm confused by the following three problems. The only thing that throws me off is how similar the questions are, I feel like they are asking the same thing. Ca...
[2 replies] Last: Let's start with question# 4 - CalculateArea , like the name suggests... (by xismn)
by Loq14
Text to morse code with Beep() function C++
 
Hello guys! I have a problem with my homework. I need to make program without touch main.cpp file. I should add just morse.h and morse.cpp. Could you help me? I...
[11 replies] Last: Take a look here. I've created this skeleton Morse class for you. Some... (by xismn)
Caesar shift problem
 
I have a code written to compile for a caesar shift. I need this code to be able to shift "n" spaces, determined through input by the user. I tried to put a c...
[1 reply] : You can collect an integer from the user. Update the function to take ... (by wildblue)
If statements
 
Hello I am new to programming and having trouble with a function using a class with if statements to check for a correct character value. The user inputs the si...
[7 replies] Last: Thanks so much! Got it! (by bmakloski)
Functions with Parameters
 
I'm a beginner, and i've been trying to make a program that outputs someone's age in years and months, and so far i have this. However, i have no idea why it do...
[4 replies] Last: Maybe think about changing the text output to remove the repeated "old... (by wildblue)
tree
 
Create a simple console which visualizes the process tree of the operating system Anybody can help me? What I will read?
[no replies]
tree AVL
 
how to optimize the algorithm? #include <iostream> #include <vector> #include <cstdlib> using namespace std; // An AVL tree node // tao cay avl st...
[no replies]
Sort Char Array Alphabetically
 
I want to sort the records by alphabetical order in the index to make the output look like this: Record Anderson, Paul 30 20.00 Record Barbieri, Jesse 20 1...
[no replies]
LINK 1109 error?
 
So Ive been dealing with some errors, and I finally got rid of one but the moment I did I got two errors. Managed to fix one, but I'm stuck with a link 1109 err...
[3 replies] Last: Since you did not provide your header files, I can't compile your prog... (by AbstractionAnon)
Error using Constructor
 
Why do I keep getting this error? In function 'int main()': invalid use of 'Dictionary::Dictionary' class Dictionary { private: list<string> dictio...
[6 replies] Last: Line 11: Needs a ; Line 13: The comment is incorrect. No exception... (by AbstractionAnon)
What are the pros and cons of each approach?
 
Excuse me,my English is poor. Compare two kinds of class design. 1. class A { public: //Ingnore other member and implement vector<A*> m_vSubA; }; ...
[1 reply] : It's a question of using the right design for the right problem. Does... (by MikeyBoy)
by gl3nnn
cin.clear and cin.ignore
 
When inputting 123.456 in 3 separate lines. Shouldn't the output be 1#123.456#123 instead of 1#23.456#123? How does the the cin.clear and ignore affect the digi...
[5 replies] Last: cin to getline is a particular case and the rule of thumb above is gen... (by closed account 48T7M4Gy)
Need help with rearrangement
 
I was going to create a program that rearrange numbers from smallest to biggest. But it doesn't work can anybody help me on this? I'm still a beginner and hav...
[3 replies] Last: Thanks Guys. (by jacktheripper)
Warning Passing Argument
 
Sorry to keep asking questions and this is probably a really simple problem but I'm just not seeing it, every time I try to compile I get error: "warning pas...
[2 replies] Last: Perfect! Had a feeling it was something like that. Thanks Andy! (by umbranival)
Store code help (parse error[i think])
 
I've been working with this code for an assignment and the first time I tried to compile it my computer got stuck in a loop where the log would just jump from o...
[2 replies] Last: Thanks for you help! I really do appreciate it! And PLU is product lab... (by umbranival)
November 2016 Pages: 1... 89101112... 44
  Archived months: [oct2016] [dec2016]

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