Beginners (Page 52)

Is variable declared inside loop a local variable?
I just wonder if I declared a variable inside loop like while and for, is this variable a local one ...
[3 replies] Last: yes a gets initialized to zero each time that loop runs. Whatever is d... (by novellof)
Newbie in C++ and OOP
Hi, I'm very new to C++ and OOP. I would like to know if there are any suitable books/websites/et...
[4 replies] Last: Hi all, Thank you for the suggestions. Please keep them coming in..=... (by missjune)
by BigPun
Multiple Definition of 'string variable' Compiling error
I've been writing code just in main.cpp, but I wish to clean everything up and separate files into h...
[2 replies] Last: Welp, I fixed this one too. Wow. I worked on this for like 3 hours, on... (by BigPun)
Erasing with Vectors
I'm getting an assertation error when I try to compile this code. It's coming from the erase functio...
[1 reply] : Found my error. Problem in the for loop regarding the parameters. (by masschamber)
by BigPun
Compiling Error Problem: Could not conver string to bool
Here is the exact compiler error: error: could not convert 'user_input.std::basic_string<_CharT, ...
[3 replies] Last: Ahhh. . . I see. Thank you so much! :) (by BigPun)
Result not as expected-- classes, getters, setters and switch.
Hi, I'm learning C++. I am trying to write a program to calculate the total surface area and volume ...
[4 replies] Last: Thanks for the advice everybody. Just to be clear, here is my interpre... (by ROCKRIDER50)
How can variables declared with enum be useful?
From my understanding, any variables that is declared inside the braces of enum has an internal inte...
[2 replies] Last: ah I understand now, thank you (by abel muro)
Username and password
I am not a programmer by any means, but for my class we havto do this: Write a program that asks ...
[1 reply] : bump? (by tonyd927)
by Kernul
Finding the max number
I'm doing the exercises in this topic: The one I'm t...
[8 replies] Last: Thank you! I'll exercise on those sorting methods. C: (by Kernul)
Hints with a code creation. (1,2)
Hey guys, I'm a young and upcoming potential programmer and while I am starting to understand the ba...
[20 replies] Last: A string is nothing more than an array of chars. Both of these are the... (by admkrk)
How do you convert input into an integer then display them as % (double ) ?
How do you convert input into an integer then display them as % (double ) ? For example, if user ...
[6 replies] Last: Hi, Thank you very much, I understand it now. (by Tom01810)
Help with homework For Loop
Hey guys my H.W. asks me to write some code that, given a number n stored in an integer variable n, ...
[5 replies] Last: Ok I closed Codeblocks and re-opened it and the program works fine now... (by Computernoobx)
What is the difference between a Union and a data structure in c++?
I honestly see little difference between the two. Data structures are types and variables grouped to...
[4 replies] Last: I see, so do you think data structures are more useful than unions? u... (by MiiNiPaa)
question about getline()
I have a string which include numbers only, but the type is string. example: string1="12 52 36 14 26...
[2 replies] Last: thank you so much! I have fixed that problem ,thank you for your code (by woaibeiqi)
by wolfv
compile error: invalid use of template-name 'Row' without an argument list
Hi, Can anyone help figure out this compile error? #include <iostream> template< int N > /...
[2 replies] Last: Well done MiiNiPaa! That took pulling together several concepts: polym... (by wolfv)
Need help working on Game of Life program
I have this template that the professor provided. But i am stuck at figuring out how to get the user...
[no replies]
Simple heritage output
Updated Oct 1 at 3:13PM I want to make a program that uses inheritance. I basically just want my...
[9 replies] Last: I don't mean to say my teacher doesn't just give me tips. I mean that... (by tamirat)
Program help, average of postive and negative numbers
I am writing a code and having some troubles with it, I got part of it down but I am not sure how to...
[1 reply] : #include <iostream> using namespace std; int main() { int ps=0, p... (by anup30)
Need help with a program
Write your question here. Hi everyone, I am very new to coding and i am in a c++ class that I ...
[2 replies] Last: If I wanted to create a player 1 and a player 2, how would i set playe... (by iman972)
"struct has no member named..." Linked List
Hi there Making a linked list, and having trouble inserting the first element. Here's the part of ...
[no replies]
Pages: 1... 5051525354... 104
  Archived months: [aug2014]

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