Beginners - October 2018 (Page 8)

Nested loops, column overwrites row?
 
I know the answer for this doesn't change anything, I just want to know how it works... I'm just starting with c++ and looking at basic nested loops at ...
[6 replies] Last: so the couts mirror the for statements I think Nothing "mirrors" any... (by MikeyBoy)
Segmentation fault error
 
hello all! so glad to find this nice place and become part of it! i've a trouble with implementing a function that takes a string input from the user, and ret...
[10 replies] Last: thank you very much for your help! (by cppnoobie)
fixing segmentation fault
 
Hello all, in previous thread i've supplied the last 2 functions of what i built, but it turned out that those 2 functions were correct. however, i don't kn...
[3 replies] Last: thank you very much! applying the suggestions. will post if i have an... (by cppnoobie)
by AL88
How would I make cin.ignore all the spaces in the file?
 
What is the correct sytax for cin.ignore to make it ignore all the spaces in the file? Thanks. #include <fstream> #include <iostream> int main()...
[10 replies] Last: #include <iostream> #include <fstream> #include <sstream> #include <s... (by lastchance)
Array help
 
I have a program that asks a user to input the sales of 4 divisions (Northwest, Southwest, southeast, northeast) and it outputs which is the largest. We did the...
[4 replies] Last: Might be easier to initialize the variable on line 79. Otherwise look... (by TheIdeasMan)
read from file
 
Hi, i have a file txt with strings and i want to make a string matrix with text values. I wrote this code but it didn't work, some advices? #include "pc...
[6 replies] Last: Thanks for advices guys. (by bogdyby)
by WoAiXD
Some help needed
 
Write your question here. #include <iostream> #include <iomanip> #include <ctime> using namespace std; int main() { const int rows = 10;...
[3 replies] Last: First bool land(int location); , this one is a prototype that you use... (by LajosOnly)
by CPLNet
Mouse delay
 
Hi I'm noob programing I need delay before clicking left button like 1 ms or below thx to help me
[1 reply] : Hello CPLNet, You could try this std::this_thread::sleep_for(std::ch... (by Handy Andy)
by Tduck
What does return *this; do, exactly?
 
What happens when I return *this? Does it set the values of the object which used the ++ operator to themself + 1 or am I mistaking something? rectangleT...
[1 reply] : The this is a pointer to the object that the member function was cal... (by keskiverto)
by Tduck
How to utilize a class object in parameters of an overloaded operator?
 
I've posted a sample of my code, in which I want to add the length of the rectangle passed in parameters to the current object's length, and width respectively....
[1 reply] : Something like this: rectangleType &rectangleType::operator+=(rectan... (by mbozzi)
Multiple Functions with Array's
 
Ok, so I need to write a program that will take 2 quiz grades, a midterm grade, and a final exam grade, along with the name of the student and their final perce...
[2 replies] Last: Hello Lightfox, Post what code you have written so everyone will know... (by Handy Andy)
what is 'class'?
 
when I watch c++ tutorials. The presenter likes to say this a lot: 'For (example: sound effects) I like to make a whole new class'. 'class'es sound import...
[4 replies] Last: I like the analogy of it just being a custom type (that's basically ho... (by Ganado)
by Tduck
Why do we need a post and pre operator overload?
 
Why do we need a post increment and pre increment operator overload? In the following code, written by the designers of the course, there are four operator...
[2 replies] Last: Followup, how would I actually do that? #include<iostream> using n... (by Tduck)
Unicode (Arabic) Charecters
 
Hello Everyone!! I want to print Arabic Characters, But DevC++ Does not Support Them, so please help that how to print Arabic Characters in C++?
[11 replies] Last: The thing is that for GUI development you really want reflection for s... (by helios)
Input Validation Question
 
Hi everyone! I'm working on a program and have mostly all the input validation correct, the only problem I'm having is when you input 'ye' or 'yes' when asking ...
[4 replies] Last: Thanks Andy. (by ccarmines)
'string does not name a type'
 
Hello. Whenever I declare a string in a class it compiles an error stating 'string does not name a type' please help #ifndef LIBRARY #define LIBRARY clas...
[5 replies] Last: Hello TheDomesticUser2, Just because your error appears to be in the ... (by Handy Andy)
by Blake7
string to const string
 
I'm trying to ask the user for their name, but once I have that information how do I convert it into a constant string?
[8 replies] Last: Note that delete doesn't actually delete the pointer variable. What... (by MikeyBoy)
Line Justification (1,2)
 
Hello, So i am working on an assignment for Line justification for any string that is input. The line has to be 75 characters long and the code has to include a...
[22 replies] Last: Thank you! (by urawrath)
absolute value for complex matrix
 
Hi everyone. What is the best way to find absolute value of each of the elements of a complex matrix in c++? In this case, I generate my complex matrix (real...
[6 replies] Last: But in the first place, may I know how to define real and imaginary pa... (by nurulhudaismail)
THANKS!!
 
!!!
[6 replies] Last: Aw man why did you remove your post? (by Satan)
October 2018 Pages: 1... 678910... 28
  Archived months: [sep2018] [nov2018]

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