Beginners - March 2015 (Page 46)

inputed by user string in dynamic array
 
Hello, I want to write a program that takes inserted by user string (any characters plus spaces) in new dynamic multi-dimensional array (any row is word). In o...
[9 replies] Last: Maybe there is way to count entered by user characters? (by alexgit)
Error undeclared identifier - classes
 
I've recently decided to make the move from Java to C++ I thought I would make a simple text-based game to get used to the language. Now I have declared my vari...
[2 replies] Last: Thanks For your help! (by aaronhance)
Simple Ambiguity problem
 
Hi guys.I have a problem about ambiguous grammer.I am working with my book myself.I saw an example grammer like this <assign>-><id>=<expr> <id>->A|B|C...
[3 replies] Last: The first grammar is not ambiguous. An expr starts with an id or a "("... (by dhayden)
Call by reference, functions
 
I am having trouble validating the operator. The user has to input the operator they want to use and if they don't input any of the four, I want to print out th...
[1 reply] : http://www.cplusplus.com/forum/beginner/158191/ (by Townsheriff)
by Jhax
Input skipping in simple program!
 
Hey guys so I'm just going through my programming book and I'm doing some exercises on functions. I have a function here that asks for the input of a character ...
[1 reply] : program outputs: "The value of z currently is: " You enter: 5 <ENTER... (by MiiNiPaa)
Loops
 
Iv'e managed to complete part of the code I need. int main() { int n, digit; printf("Number? "); scanf("%d", &n); while(n > 0) { digit...
[4 replies] Last: Ive thought that but exactly how to do it is completely eluding me >.<... (by Vasukki)
by zamar
Project till array...
 
hi guys i'm new to programming. we have studied if/else, loops and arrays so far and our teacher asked us to make a project... plzzz anyone give me some ideas...
[2 replies] Last: i m new here.. i'll keep that in mind next time.. thanx (by zamar)
Help displaying the numbers in the vector
 
Hi! I have an assignment I have to do that is described as follows: "Write a C++ program to input integer numbers into a vector named fmax and determine the ...
[no replies]
5 decimal places in code
 
Trying to get decimal places in grades, along with regular grades, not sure how to do it. Please help. Here is my code so far. #include <iostream> #include...
[no replies]
Debugging with a program
 
My frequencies in the end show up more then once. How do I fix my program so that cout << "Numeric Value " << foo << " was entered " << tempcounter << " times....
[no replies]
How to avoid this memory leak?
 
Hello Forum! I have a class SceneNode that uses a vector of std::unique_ptr<SceneNode>'s to store it's children and a SceneNode* to it's parent. #ifndef SCEN...
[2 replies] Last: The implementation of attachChild(...): void SceneNode::attachChild(... (by stulleman)
Money Dispenser print out least amount of bills possible
 
I need some help. I'm supposed to create a code of an atm machine that dispenses the least amount of bills. I'm running into the problem where program not pri...
[1 reply] : Think of your dispense problem a little differently. Take out the bigg... (by booradley60)
Change from using STL to not using stl
 
i wrote a palindrome checker using a stack and a queue but i have to change it to where its using Non-Stl code. My issues are where i am removing punctuation an...
[2 replies] Last: i was able to fix it by adding this code so it only pushes the non spa... (by Inthemountainair)
Passing a enum value to a function
 
Hey guys, I'm just curious how would I code a function header and parameters to except a enum value I created. enum fields{word, hint, num_fields}; ...
[2 replies] Last: ok thanks man (by sourcedesigns)
please help me :(..
 
So I'm trying to write this simple program. What its supposed to do ask the user for input, the calculations of finding price of square foot, and then output to...
[4 replies] Last: You should not use return 0; statements in each if block, as the else ... (by ashleybrown2)
function calling
 
I'm super new to C++ and clearly very bad at it so sorry for the horrible code below.
[3 replies] Last: Hi, I have also just started learning C++ and have picked out a few th... (by ashleybrown2)
Random Numbers Multi-Dimensional Arrays
 
I want the user to input 2 rows and 2 columns. Then the program will generate a random number in that certain place and if both of the are equal, you win and i...
[4 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> using namespa... (by Vandalism)
Question about learning from books.
 
This is more of a general question, but I have recently started reading the book programming Principles and Practices by Bjarne Stroustrup and there's something...
[4 replies] Last: The drills on that book is advance I disagree. They do not ask anythi... (by MiiNiPaa)
assistance with functions and function calling
 
In this program the user is supposed to choose a menu item, then the program is supposed to run a specific function based on their choice. Problem is I can't ge...
[12 replies] Last: So I got points docked off for using the wrong boolean loop terminatio... (by closed account zT4NhbRD)
issues with my pass by reference lab
 
Hey! So my program below is used to find the highest and lowest gross of employees, print out both the high and low gross, those 2 employees names and then fin...
[1 reply] : The problem is on line 90: On line 11 you try to set lowestGross = hi... (by coder777)
March 2015 Pages: 1... 4445464748... 51
  Archived months: [feb2015] [apr2015]

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