General C++ Programming - December 2016 (Page 10)

I am having problem compiling my project
 
What is wrong here? I get error on both "#include <iostream>" and "using namespace std;" // This program calculates the user's pay. #include <iostream> using n...
[1 reply] : mva variable is not declared (by Golden Lizard)
by nlstmn
how to find the largest element from the linked list of unknnown numbers?
 
how to find the largest element from the linked list of unknnown numbers?
[1 reply] : Simple. Traverse though a linked list via a for-loop and search for th... (by Kotori)
by nlstmn
from txt file to linked list
 
how to store the elements from txt file to linked list?
[1 reply] : std::fstream file; file.open("text.txt",std::ios::in | std::ios::ap... (by Golden Lizard)
problem answer please
 
When you borrow money to buy a house or a car, or for some other purpose, you repay the loan by making periodic payments over a certain time. Of course the lend...
[3 replies] Last: Please use code tags when posting code. Code tags make it easer to re... (by doug4)
anyone help me with this
 
When you borrow money to BUY A HOUSE or a car, or for some other purpose, you repay the loan by making periodic payments over a certain time. Of course the lend...
[4 replies] Last: thank you ! (by Marwan Mo7amed)
'vector name' does not name a type?????
 
Hi, I've this problem. The builder say me "'dati' does not name a type". Why? Ok, it doesn't name a type, but I don't want 'dati' as a type name. dati is variab...
[2 replies] Last: thank you, now it works (by ice berg)
by nlstmn
copy from 1st array to second and sort
 
I have 1st array which contains a unknown number of unsorted integers in txt file. I have to: 1. Find 50 largest elements. 2. Copy these elements to the NEW ...
[2 replies] Last: Kotori, nope (by nlstmn)
I need help on moving one element of an array to the beginning
 
Hello! I need assistance on moving one element of an array of strings to the beginning, and keeping the order. For example, let's say I had string array = ...
[12 replies] Last: And if infinite loops are OK: #include <iostream> #include <string> ... (by closed account 48T7M4Gy)
BAKERY ORDERING SYSTEM
 
guys this is my project and i need your guidance based on c++ because i don't have basics in c++...i have no idea how to continue program this codes...anyone ca...
[7 replies] Last: It would be good practice to use Your code here[./code] (without the... (by Hengry)
Another way to write (numeric_limits<streamsize>::max(), '\n');?
 
Hello. I'm writing a program currently and when the user is going to input an integer i need to make sure the user enters an integer. I ran acroess a few numeri...
[15 replies] Last: OP: as you mentioned previously, if you can indeed swing stringstream ... (by gunnerfunner)
Adding numbers in an int
 
Hello If I have a number in an int. Let's say the number is 104. I wanna know how to add these numbers like this 1 + 0 + 4 without human interference. In or...
[3 replies] Last: Sure. Assuming number2 is positive: Step 1: You can extract the lea... (by mbozzi)
Grading System program
 
i needed to create a program that will view student information, choose grades, input grades, calculate grades, check for weighted average, add remarks and gen...
[1 reply] : It should be in your calculateGrades() function (by Hengry)
My Console is Messed up
 
I really need help, I need to finish this assignment before tomorrow. My code is too long so i will post what is the problem EDIT The problem is when I am wai...
[8 replies] Last: It's a program to print some values into a sin function and show it on... (by ruipascoal20)
by naf999
C++ Create a program
 
Requirements Create a modular(functions) program with the brief algorithm as below: 1) Prompt the user to request the number (n) of voltage inputs. 2) Create...
[3 replies] Last: Thanks for reply guys. i was helping my friend and he was able to do i... (by naf999)
help needed
 
(Write a program that will get two numbers from the user and then ask them if they would like to add, subtract, multiply, or divide the two numbers. The progra...
[3 replies] Last: Above is a source code I guess (by dukeq2011)
Exam Grader
 
Hello, I can't figure out one thing about this program! I need your help, please: One of your professors has asked you to write a program to grade her final...
[7 replies] Last: It is very clumsy with multiple students, I'm afraid. #include <iost... (by lastchance)
help - switch loop
 
IF I run it, it does not let me introduce any numbers. Why? I do not have any failures or something else. Everything is ok. #include <iostream> using namesp...
[6 replies] Last: Thank you , yeah I used an array to finish my code. The code above is ... (by bogdan97)
regedit rule c++
 
Hi i use my application a lot of time so i want to start when i start my window. But i have a problem, i'm trying a simple example to create a regedit rule. And...
[no replies]
Error from stl_vector.h
 
Hi, I'm trying to program an algorithm I found in an article from Guibas and Oudot. I've just learnt C++ for this special occasion... Here is my code : /...
[8 replies] Last: The code compiles cleanly with a few warnings, all of which, except on... (by JLBorges)
Memory Leak
 
Hey guys, so I've been working on my assignment and i'm pretty happy with it, but I've had a pretty massive problem with a memory leak (I had to limit a for loo...
[8 replies] Last: Your biggest problem is the way you're passing parameters to your func... (by Hydranix)
December 2016 Pages: 1... 89101112... 18
  Archived months: [nov2016] [jan2017]

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