Beginners - November 2015 (Page 26)

invalid input
 
///
[2 replies] Last: I want the program to start again after the message prompts "Sorry, th... (by beesea309)
by beemo
calling a function
 
i am having issues with a question which requires the calling of a function but i don't see what I've done wrong in my code. #include <iostream> using name...
[6 replies] Last: am i supposed to define the string in the main function or in the seco... (by beemo)
little recursion question
 
I am a beginner. I have given myself a little recursion exercise. I have a binary search tree. I want to write a function that tells me if a particular value...
[4 replies] Last: OK, that was a good suggestion and the warning is now gone. Can we loo... (by dschwart)
by TPL
[C++]
 
Okay, so. My program averages numbers entered by the user, it also counts how many numbers the user entered, that were valued over 100. However, the counter ...
[2 replies] Last: So, what exactly do I need to do to make it check the last number? (by TPL)
<< and >> not working
 
I don't really know how to explain it, but the compiler somehow don't like it when I use a variable or function with << or >>; #include "FileManager.h" ...
[4 replies] Last: Thanks for the replies! I just had to restart visual studio and then i... (by AmazingBKaiser)
For loop condition statement
 
This is a bit of a silly question, but why does the following not execute the body for(int i = 0; i ; i++) cout << "print " << endl; i is supp...
[3 replies] Last: Thanks for the answering the question Kevin C, makes sense now actuall... (by Student555)
Vowel or consonant what if user inputs a number?
 
i cannot understand else if logic how to do it why it shows the message of consonant? Because you check only for two possibilities. If it is not a vowel ...
[1 reply] : Your if statement syntax is not correct. You neglected to close the q... (by JayBari)
How to return to int main() from other functions pressing the key ESC?
 
Hello there. I want to do something very simple but probably the solution is very tricky since I am still very new to programming, I have a main menu void func...
[3 replies] Last: Escape is a key with the numerical value of 27 - if I remember correct... (by Thomas1965)
by rtang
Function Calls
 
I'm new to this and cannot get the program to execute... Any help would be appreciated. Trying to write a program that will use functions to calculate and ...
[2 replies] Last: Your code doesn't execute because you have compile errors. Line 10: ... (by AbstractionAnon)
Make table of values
 
Decimal Binary Hexadecimal Char 33 00100001 0x21 ! 34 00100010 0x22 " 35 00100011 0x23 # ...
[1 reply] : F.e. use a for-loop. for (unsigned int i = 0; i <= 127; i++) { /... (by tcs)
Vowel or consonant what if user inputs a number?
 
In a vowel check program whether user inputs a vowel or consonant what if a user inputs a number and why it shows the message of consonant?how can i show the me...
[4 replies] Last: i have tried this when i enter 1 it shows consonant i dont know why t... (by Thomas1965)
Binary Trees Question
 
Hello everyone, I am learning about Binary Trees and I got stuck. I am trying to create a tree, insert the nodes and then I am planning to implement a bunch of...
[4 replies] Last: bstree is a pointer so access its value using operator->() . retu... (by tcs)
Functions + arrays ( maybe pointers are needed not sure )
 
K so my prof gave us this question : 1. In the main function (Provide the source code and captured output screen) a. Declare and initialize a two-D...
[1 reply] : You used function printArray as an array variable! int printCol(int ... (by tcs)
Function Call Help.
 
The average grade come out right, but the letter grade is not working right. Im guessing is the FUNCTION CALL, but im not having any luck trying to solve it. Ca...
[2 replies] Last: Thank you MrGoat (by nanopad)
Print out unlimited squares from ascii char.
 
Hi i want to make software that print out unlimited squares from * at sides and . in middle. I have code here to print only one square from input number that ...
[1 reply] : First I would put the code to print the square in a separate function ... (by Thomas1965)
Output screen problems
 
I am running a for loop for 50 cycles. I am printing nothing but 0s and blank spaces. When I don't include a sleep function, my output screen is normal. But whe...
[1 reply] : Can you show us the code? (by Thomas1965)
by mullax
Contolling the variable changed depending on the input.
 
I am making a tic tac toe game and need the players to enter an input to permanently change a certain variable. for e.g if I had a character variable called A ...
[1 reply] : I need this to happen for nine variable. How would I do this. Our ... (by closed account 48T7M4Gy)
Accepting more than one argument
 
I was really hoping someone could help me out here, as I am totally stuck. How do I accept an -f flag for file versus defining test.txt, with what I have alread...
[5 replies] Last: Have it working now. Thank you all for your help :-) Now I better und... (by cpq2g1zw2)
Nothing will print out.
 
As the title says, I can't seem to get anything to print out. The point of the code is to be able to take the alternating sums of two vectors and add them all t...
[1 reply] : while(x = 1) Should be while(x == 1) = is an assignment operator... (by TarikNeaj)
Default parameter constructor with Member intialization lists?
 
Is there a way in c++ to combine a default parameter constructor with member initialization list? So something like this: class Example{ private: int var1...
[4 replies] Last: Because im lazy :) But thank you JLBorges for your response, which i... (by Arslan7041)
November 2015 Pages: 1... 2425262728... 53
  Archived months: [oct2015] [dec2015]

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