Beginners - March 2015 (Page 16)

Help with simple code pls!
 
Hi guys! Whats wrong with my code? I got this 2 lines at same time and not 1 at a time. Sorry for my english. Digite uma operacao: Digite outro numero: Th...
[1 reply] : The answer to your question depends on what is the code supposed to ... (by kevinkjt2000)
C++ text Adventure Game
 
Hello guys, I have working on a text based adventure game for 4 hours now and i can not seem to use the get my program to compile. #include <iostream>...
[2 replies] Last: I don't know what language you're coming from, but you need to spend s... (by AbstractionAnon)
Find max number from a set of n numbers !!!
 
Hello, I am trying to solve the Stanford course materials at home Chapter1 ex 5 course cs106bx. I am a Beginner , new to programming. The question is: cout the...
[9 replies] Last: Worked like a charm !!! Thanks... (by manishthatte)
Arrays and Pointers
 
Let's say I have const char * Snames = {"Spring", "Summer", "Fall", "Winter"}; How do I access each individual element? Because I couldn't do this: ...
[9 replies] Last: Oh nvm. Thank you for your help! (by Drakonaut)
by Fink
please help me
 
weqw
[10 replies] Last: you need to edit your post because some of my classmate haven't yet th... (by Fink)
Protected Data Members?
 
I'm a little confused about protected class members. I know that a protected member can only be accessed within the class it was declared and withing classes de...
[11 replies] Last: Thanks for the explanations. I think I've got it now. (by dominover)
by bean19
Asking the user if they would like to continue
 
Hi! I'm making a simple calculator, and was able to create the calculator itself by using a switch statement. So my question is, how exactly do i ask the use...
[1 reply] : char userChoice; do { ............. <All of your main function code ... (by JB252)
help with modulus operator
 
i have a program that i need to write that requires the following output: "the entered value is "23557" it has 5 digits with the digit sum of 22. the n...
[1 reply] : when you do the modulus %, it will give you remainder. using %: in reg... (by a3625799132)
by vtk
how to get the base class to access the appropriate derived class
 
I need help in being pointed in the right direction I am trying to get a base class to choose the Appropriate derived class so it can preform the Correct ma...
[no replies]
Install Stanford libraries...
 
Hello, I am trying to solve the Stanford course materials at home Course cs106bx. I am a Beginner , new to programming. Is there any way to use the Stanford li...
[2 replies] Last: OK. Done. (by manishthatte)
Array Problem with Changes
 
I'm not sure what to change for it to work for this problem. I'm suppose to make changes to my original code (at the bottom) and make it look like this: Here ...
[1 reply] : You can use 2D array ; it will give you a 3X3 square. wh... (by a3625799132)
by JB252
Getting incorrect values from grading program
 
Not sure what the problem is here, I have checked the arithmetic and can't find any reason why I'm getting incorrect values for the final grade percentage. Belo...
[2 replies] Last: Wow... Don't know how I missed that, it's working fine now. Thanks you... (by JB252)
Problem with function
 
x
[1 reply] : For starters, you aren't calling it, so the code inside your function ... (by Disch)
templating iterator syntax error
 
I cant seem to find the correct syntax to point the iterator to the linked list. The G vector holds a vertex and a vertex has a linked list of edges. this makes...
[no replies]
Overloading "less than" operator
 
Hi, I this problem i try to overload the "less than" operator in three ways : bool operator < (const Box& aBox) const; bool operator < (const d...
[no replies]
Problems with exercise using putback()
 
Hi, im trying to create program that gets text input and than transforms don't into do not. Later i will have to remove (' , . ? -) as well from text. So i t...
[6 replies] Last: #include <iostream> using namespace std; int main() { string s= "p... (by anup30)
string literals into a "dynamic array"
 
Write a program to concatenate two string literals, putting the result in a dynamically allocated array of char . char *name = new char ("Header " "Tes...
[2 replies] Last: Thank you mate, cheers! (by closed account EwCjE3v7)
by Jux
Error Initialization with {...}? Problem?
 
My program was working fine until i tried it today and this error came up. "Error Initialization with {...} is not allowed for object of type "std::vector<std:...
[8 replies] Last: lessons; Mistake was done when i was trying the examples wrote by oth... (by Jux)
HELP PLEASE! THANKS A LOT
 
Create a class Account with the following data members: ยท number - The account number. The valid values are any string that starts with 3 characters and ...
[4 replies] Last: masmis (by nffarah)
March 2015 Pages: 1... 1415161718... 51
  Archived months: [feb2015] [apr2015]

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