Beginners - November 2015 (Page 9)

help me
 
i need a program to find out the product of given odd numbers using while loop....??
[1 reply] : Please don't double post. Looking at your other post, you need to sho... (by TheIdeasMan)
Is there a way to limit how many characters a user can input?
 
So I'm using a book to help me learn c++ and I'm very new to it. The exercise it's telling me to do is to write a program that lets the user select from a list ...
[7 replies] Last: Hi, I have a pathological hate for constructs like this: } w... (by TheIdeasMan)
by Dofzky
Help with magic squares assignment please
 
Hello, I am very new to C++ and I am having a heck of a time with one of my assignments. I have googled it extensively but it seems like every variation of ...
[1 reply] : The question says do it in stages. So your first job is 1(a) and the f... (by closed account 48T7M4Gy)
Need help with overloading question
 
Hi, please help withe the following the problem from a self test question, i have a mid term tomorrow and dont get it. Thanks. Following is the defintion of ...
[1 reply] : https://www3.ntu.edu.sg/home/ehchua/programming/cpp/cp7_OperatorOverlo... (by closed account 48T7M4Gy)
Problem With Arrays
 
Hey Guys! I'm trying to get this program to output the balance of an account, when an account number is input. It compiles fine, but doesn't run properly. Thoug...
[4 replies] Last: result = bal ; (by closed account 48T7M4Gy)
Arrays: Finding Balance Problem
 
Hey Guys! My goal is to use a function to output the balance of any given account, so that when an account number is input the balance of that account is given....
[1 reply] : http://www.cplusplus.com/forum/beginner/179556/ Multiple posts are ba... (by closed account 48T7M4Gy)
Need help with recursive problem
 
Hi, could someone please explain to me how the following code results in 24, i understood it in class but totally forgot now and i have a mid term tomorrow. Ple...
[1 reply] : rose(4) = rose(3)*4 = rose(2)*3*4 = rose(1)*2*3*4 = rose(0)*1*2*3*4 =... (by TwilightSpectre)
Breaking out of two loops.
 
Here, if it encounters a bad word, I want it to print [TOS violation] and NOT print the word. How do I do it? //bleeper #include "std_lib_facilities.h" ...
[2 replies] Last: Ah thanks a lot, Chervil! (by ephraimr)
Arrays
 
I have to write 8 different arrays (listed below). I have written codes for the first 2 and they work but I'm having trouble with the other 6 arrays. Can anyone...
[10 replies] Last: For whom? (by koothkeeper)
Creating new linked list
 
Hello, i am struggling with creating linked lists that are linked to the head list, I know how to create the head list but how can i link the others with it hel...
[1 reply] : What is tailPtr when the else branch is reached? If it's NULL, you're ... (by Ganado)
Search Array
 
Hello, I am still pretty new to C++ I don't have much class left but I am having a problem getting my program to work. The first program needs to take your na...
[11 replies] Last: I did run into the problem where it wouldn't find k so I changed this ... (by RedSox123)
missing type specifier error
 
There is an error in this part of code i cant figure out why and what is the fix for it and it says "missing type specifier - int assumed. Note: C++ does not su...
[3 replies] Last: Simply move lines 104-109 to before line 4. Lines 13,18,28,34: missi... (by AbstractionAnon)
Why doesn't rand() work properly?!
 
Hello, I'm trying to write a card game program and i'm really banking on rand() to work, and it's giving me the same value each time which is not good. Is there...
[5 replies] Last: rand() is sufficient for this kind of game. More on C-rand: http://www... (by Duthomhas)
never ending do loop
 
Hi i starting programming and im currently working through a book and one of the tasks asked me to make a program that has the computer guess my number heres my...
[3 replies] Last: What does "not recognised" mean? Show the modified code. (by coder777)
by Muney
Header Files Problem
 
I am working on this homework assignment which asks to put different items into classes and header files, which I am not sure how to do. You are to design a ...
[1 reply] : I'd start by declaring the class as described in your instructions. ... (by jlb)
Columns from CSV to vectors
 
Hello, I am attempting to read a CSV file containing three columns of the format string, string, double. First of all I cannot get the file to load properly ...
[4 replies] Last: Thank you Chervil, that was precisely what my problem was, I kept on g... (by Muffin89)
by Jesper
Print sorted vector, line break new number
 
Hi! I'm trying to print a sorted vector. I want to print all ones on one row, all twos on one row, all threes on one row, and so on. The problem is that I get ...
[2 replies] Last: Thank you very much! It solved my problem! (by Jesper)
Deep copy of my graph implementation
 
Hi guys.. I trying to debug my graph implementation, and have come to the conclusion that my copy of my graph isn't done properly .. So how do i do it? The co...
[no replies]
by KMagic
How to know the next object to be read is of which class?
 
I have 3 classes A, B and C (B and C are derived from A). Objects of these 3 classes have different sizes. I have written many objects of these classes into a b...
[5 replies] Last: Thank you very much. I understood now. Maybe I will use Zhuge's approa... (by KMagic)
Interchanging letters of 2 strings. PLS HELP!
 
Hello, Ive been struggling with this question & I'd really appreciate it if someone helped me out. Thanks in advance! Question: Mix characters of two string...
[6 replies] Last: It's simpler to just depend on encountering the nul terminator. Yo... (by Thomas1965)
November 2015 Pages: 1... 7891011... 53
  Archived months: [oct2015] [dec2015]

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