Beginners (Page 51)

Recursive return of a character
I am writing to display the number of a's in a user input. I am getting an out of range at memory l...
[10 replies] Last: Thank you! I totally forgot about the getline function. (by DEnumber50)
bool, output true for yes and false for no
Hi everyone, trying to figure out 2 things. -How can I get the bool function to read the yes or n...
[1 reply] : The problem with your code is that you are trying to input a float (wh... (by Tom56785)
Prime numbers
Hello, I wrote a program to print all the prime numbers between 1 and 100, see http://en.wikipedi...
[4 replies] Last: I tried something like #include<iostream> #include<vector> using ... (by pacman169)
by Jon15
'Ambiguos' error with global variables
What does it mean if you get an error calling something ambiguous? It is happening at my int mult ...
[4 replies] Last: Ok, thank you! that makes a lot of sense now. (by Jon15)
Error C2688 on Passby References
Hi, so this is my first post here, so I hope I'm formatting all this correctly. I'm currently writin...
[2 replies] Last: No errors now, but my code is not functioning the way it needs to. Aft... (by ddunn12)
Decompose int to powers of 3
[3 replies] Last: Your code doesn't work with negative values -- that's the problem. B... (by Duoas)
Menu Creation with diffferent files
I'm basically doing a kinda "large" project on c++, this one here:
[6 replies] Last: k, now it works! But my main question was how can I separate this into... (by erik341)
2 Dimensional Arrays HELP URGENT!!
See this program is used to enter 3 marks of 4 students and calculate their grade with their average...
[3 replies] Last: #include<iostream> int main() { using namespace std; int i,j,k,av,s=0... (by anup30)
How to reverse the letters of all the words only, not of the full string?
I want to reverse the letters of all the words only, not the full string. For example: Input: You...
[2 replies] Last: using stringstream, #include <iostream> #include <sstream> using na... (by anup30)
Make x value depending on the number of words
Alright, so I don't really know how to explain this, so I'll do my best; I want the user to write so...
[7 replies] Last: I just have. I hope :) (by mutexe)
Need help!
for this I need to it to also show the square inches. for both of the valid entries. ok I have it f...
[3 replies] Last: I tried that and it worked great. (by nichan79)
book for c++ modelling
Hi all, Have you ever seen a book that contains sample c++ codes by which a physical phenomena have...
[no replies]
by alkass
Call a constructor after created a copy of the Class
Hi I am a newbie, so I am trying to do something like MyDigi Digitizer;MyDigi.Reset(); The Rese...
[1 reply] : struct Digitiser { Digitiser( float var1_, float var2_ ) { /* ...... (by JLBorges)
Output Problem
I want to check if a char is one of the letters in a word(string), so I wrote like this: for (int...
[3 replies] Last: int b = 0; for (int i = 0; i < word.length(); i++) { if(letterFo... (by anup30)
Errors in code snippet
Hello, I have the following homework problem to answer. We have just started looking at classes. ...
[4 replies] Last: Thank you, these suggestions were helpful. (by maximus123)
Console I/O in C++
"C originally left I/O to compiler implementers. One reason for this was to give implementers the fr...
[2 replies] Last: It means what is says. In the early days of computers did not have a... (by YokoTsuno)
by bhalo
how to delete dynamic objects
// #include <iostream> using namespace std; class node { private: public: int data; node *next...
[1 reply] : The simplest way is to use C++'s own linked lists. Since you have null... (by Cubbi)
by amizam
im new in function, can u find my error?
Why is my input ask the user to enter the score twice? #include<iostream> using namespace std; ...
[3 replies] Last: You're welcome - glad it worked out :) (by MikeyBoy)
Problem about extract individual digits argolithm
I have an exercise which asks me to write a program that input an integer then output the individual...
[2 replies] Last: Wow, I got it. Finally, it works. Thank you so much. (by quan1506)
char selection = '0'; int player_hp = 100; int enemy_hp = 100; for ( ; player_hp <= 0 || enemy_hp <...
[2 replies] Last: Use a do{}while. That's executed at least once. (by YokoTsuno)
Pages: 1... 4950515253... 130
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.