Beginners (Page 85)

How to compare strings?
 
Hello, In short, I need to compare strings using the '<' operator. Ex: " if (foo< bar) std::cout...
[1 reply] : In my code, I have a string value that is already a const string&, an... (by keskiverto)
make a table
 
Hi, everyone. I just wanna know how to make all the variables output like a table. much appreciate
[1 reply] : If you're using 2D array, nested for might help (by LendraDwi)
Variablesand Constant
 
Hello guys! I am very new to C++ coding and I have a huge question. I believe you fellows can assist...
[1 reply] : #include <iostream> int main() { // use double as the default fl... (by JLBorges)
Function
 
What is the correct answer and How is it calculated?. #include <iostream> using namespace s...
[2 replies] Last: Thanks (by fazalhussainakbar)
What exactly is the use of tellp() tellg() and seekg() seekp()
 
I'm not exactly sure whether I have the concept of tellp() tellg() and seekg() seekp() right. I'm as...
[3 replies] Last: Thank you both for your responses. I understand the concept of these ... (by abel muro)
Is this solution cumbersome?
 
I have tiles that each four descriptions for leaving the room in that direction, for example if you ...
[8 replies] Last: C++11 is often not enabled by default, you need to enable it for your ... (by LB)
Take percentage of each input as it is being input 2
 
When I run my program, I get the result I am looking for, however, I get a warning from the compiler...
[1 reply] : http://www.cplusplus.com/articles/jEywvCM9/ (by Avilius)
Mathematical Function Help
 
I'm a beginner coder (it's been a few months since I've written any however). I'm studying number...
[6 replies] Last: Thank you all for the replies, especially Yay295... I can't believe a ... (by t3hPoundcake)
Polymorphism \ Overloading
 
So I've been reading and watching a bit of videos about polymorphism but, would like to know how ...
[2 replies] Last: Lines 32 and 33 are not overloaded. They are calls to int numberint(i... (by Yay295)
by gduong
dynamic memory
 
I am getting an error or uninitialized local variable 'size' used and i don't know why. Can someone ...
[4 replies] Last: Thank you. I got it. (by gduong)
Extracting digits
 
I have a homework assignment where I have to read an integer below 1000 and output the integer in te...
[4 replies] Last: Yes I can, that seems like such an easy solution, thank you keskiverto... (by alex067)
by BB2921
If and Else troubles
 
I have to write a code to calculate a final grade for our class and it asks a few questions about yo...
[6 replies] Last: thanks, that's what was wrong. (by BB2921)
Program won't display content of the file specified
 
Hello, every time i try to open a text file to display the content, it will create another blank fil...
[4 replies] Last: when you open a new file to write you code, you save the file somewher... (by shadowCODE)
Question about forum
 
Hey guys, I would just like to know what I did wrong in this thread ( http://www.cplusplus.com/forum...
[4 replies] Last: Thanks, I was just unsure if I should add anything (hence the incessan... (by Cube777)
by stlund
Declare an object in another class. Bank system.
 
So Im trying to declare a object "Konto" on the Bank class, but the compiler complains:" Bank.h|11|e...
[2 replies] Last: Thanks alot Peter! That fixed it! All the hour's I spent on that simp... (by stlund)
Assistance with pop function and exception handling
 
Looking for guidance on how to properly solve his HW problem . I can't seem to correctly use th...
[2 replies] Last: You haven't provided hwstack.h, so can't comment on any issues in your... (by AbstractionAnon)
Wrong output for second cout statement
 
#include <iostream> #include <cmath> using namespace std; int main() { double tim...
[1 reply] : (1/2) is 0 (1.0/2.0) is 0.5 (by LB)
Access Violation - insertionSorting arrays
 
I'm working on a homework assignment, for which I must do an insertion sort on an array of terms (te...
[8 replies] Last: Hey that worked perfectly! That makes sense too, I always thought of t... (by Smallboy)
Boolean Variable array and Variable parsing.
 
Ok as far as variable arrays. I'm workign with Visual c++ and they have TextBox and Label as objects...
[15 replies] Last: bool Bool1 = false; bool Bool2 = false; bool * const foo = { &Bool1,... (by nick050183)
my code isn't formatting in my file correctly
 
i have a project due in a few hours. the project was to take a file that had roman numerals and numb...
[5 replies] Last: The problem is this line if (line.at(0) != 'M' || line.at(0) != 'D... (by Yanson)
Pages: 1... 8384858687... 100
  Archived months: [aug2014]

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