Beginners - October 2014 (Page 7)

where is the C++ standard library located?
 
I am curious when I wrote some C++ code to using something inside C++ standard libraries, e.g.: I use io stream: include <iostream> I don't need to tell IDE ...
[7 replies] Last: Thanks very much for this great detailed answer! (by buddha87)
by Jon15
decreasing order function with array?
 
I am writing a program that will ask the user for integers and then put them into descending order. I a close, but i don't know which numbers to put into my nes...
[no replies]
Help how check uppercase ?
 
I have a homework that, the user input should be only lowercase. If the word has a uppercase i should give a error message and ask again in a loop. We only l...
[1 reply] : You may want to think about using find_first_of(). (by jlb)
Executing a for loop statement help!
 
Write your question here. I have to write a C++ program that picks a random number between 0 and 49. If the number is even lets say 30, then the computer will ...
[12 replies] Last: Line 21 My code: for( ; random_integer < 101; random_integer += 2)  ... (by MiiNiPaa)
by HG319
Multidimensional Array
 
Below is my first assignment with multidimensional arrays. I was able to create the 5x5 array with random numbers, I am just unsure to get the program to stop s...
[4 replies] Last: Thanks. Do you know how I can make another array but this time every... (by HG319)
Error: Missing ';' before '*'
 
Here is my code: class Book { public: ... (Nothing in here is missing a semicolon or has any errors) private: struct Node { Object *data; <-...
[10 replies] Last: struct Node { T *data; //instead of Object Nod... (by booradley60)
Help with arrays.
 
I'm trying to write a program that asks the user to input 10 numbers, and then print the largest number input. I'm having some trouble getting my for loop to wo...
[5 replies] Last: Is there a reason you need to retain all values that are input? If no... (by PCrumley48)
Critic my program -
 
I wrote a guess my number program but I was curious to if I did a good job organizing my program or not? I'm trying to improve my organization. #include <...
[5 replies] Last: One suggestion: separate your difficulty selection logic from your sec... (by booradley60)
by anely
Student Grades
 
Write your question here. Here is what I have , I need to get Students to input there Name And Score > and for me to output the grade. This works ...
[no replies]
Use of class template requires template argument list
 
I keep getting this error in my code, and searching online doesn't provide results because I have already done what they asked for in my code, but I still keep ...
[3 replies] Last: Oh Okay i see, silly error == Thanks. (by DreamTime)
by vxk
array in c vs c++
 
I have doubt regarding the following piece of code : int main() { int array1 = {1,2,3,4,5}; int array2 = {1,2,3,4,5}; int array3 = {1,...
[3 replies] Last: http://stackoverflow.com/questions/25004382/excess-elements-in-scalar-... (by keskiverto)
simple recursive statement, or is it? Can't grasp it
 
I'm using the jumping into c++ book by alex allain to learn c++ programming and I'm at recursive functions. First example shown and I'm lost.... So simple I can...
[6 replies] Last: everyone has his own "up to date" definition. what do you think when y... (by anup30)
by anely
Please Help
 
allow the user to run the program more than once if so desired. prompt the user to try again Y/N at the end, This program works fine below.but doesn't loop h...
[4 replies] Last: Hi, 2) why you need to do b = b/2; if after that you don't used.... ... (by PCrumley48)
how to declare a private static variable?
 
Hello guys. I am making a single linked list and I am stuck at a point where i have to declare a dummy head node as static. Problem is how can I initialize this...
[8 replies] Last: Mysteriously your code is working and mine is giving error.. Although ... (by DaniAlves)
Do while loop [help]
 
is my condition (the underlined) wrong? cause whether I press 'y' or 'n', the program will not run again. #include<iostream> #include<string> #include<cstd...
[1 reply] : while(a=='y'); is fine and sufficient. i.e. if a==y then its automat... (by anup30)
by Pg0715
4 digit pin
 
im wondering how I can ask the user to input a 4 digit pin and it can only be 4 numbers and if its not 4 numbers it it will give them an error and let them rety...
[12 replies] Last: as PCrumley48 noted, the input can be taken as a string, check it's le... (by anup30)
by Jon15
Passing an array as argument to function!
 
Hi, I am attempting to write a program that will ask the user to input 10 integers, and then send them to the function that will put them into descending order ...
[6 replies] Last: line 11: no 'w' in hi_2_lo undefined identifier, identifier not fo... (by Esslercuffi)
draw an array to screen
 
so i am using allegro 5 to make a game and have my maps layed out in 2d arrays. i was testing the transition between levels by manually changing the values. and...
[3 replies] Last: On lines 29 and 33 you are assigning the array and not comparing, shou... (by Jezze)
by nasser
Linux,Ubuntu
 
I have installed Eclips Luna for Linux but when I run a simple program a window is shown Launch failed .Binary not found I have tried two methods 1) Wind...
[no replies]
Clockwise turn gives weird numbers
 
So my program is supposed to turn the numbers put by the users in a clockwise fashion, but i receive lots of 2s and 1s as well as an impossible number. Any help...
[no replies]
October 2014 Pages: 1... 56789... 70
  Archived months: [sep2014] [nov2014]

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