Beginners - October 2015 (Page 53)

by Winsu
char and int
 
I have a basic questions about char and int...what happens when I assign an int to a char like this char ch = 1; do i get the character 1 or the equivalent to ...
[6 replies] Last: ok, cool!! (by Winsu)
Static Function
 
I can call static function by class object, why its valid? Static functions are class level, we call them with class name. class Test { private: ...
[1 reply] : Is there any difference in calling static function in above two ways?... (by MiiNiPaa)
Need help creating hollow triangle!! Please!!
 
I need to create a hollow triangle using nested loops where the user inputs the base size. I can create half but not the rest it should look for ex if base = 7 ...
[1 reply] : This is a bit of a start on the solution you're looking for. 1. You n... (by closed account 48T7M4Gy)
How to limit iteration
 
Well, OP deleted his post, but I took the time to make a reply, so here it is. There is, unfortunately, no past-the-end safety in iterators, just as with poi...
[4 replies] Last: thanx dat works (by rofhiwangae)
size function not working.
 
I'm using a code in which I have to access the size of an array and I'm using the format arrayName.size(), but the compiler is giving me an error whenever I try...
[17 replies] Last: Alright. Thank you so much! (by zaryabsaeed)
Function Returning Wrong Value
 
I was just testing out my lowest common multiple (LCM) and highest common factor (HCF) functions but it returns the wrong value when I add the else statement. ...
[4 replies] Last: Thanks. :) (by integralfx)
Need Help! Which loop?
 
Im not sure which loop would be best to used for this project Here are the guidelines Create a program to handle a college class grades: Capture t...
[2 replies] Last: for (by shamieh)
mortgage calculator
 
Please help me. I have to make a program that prints out the payment plan for a house. The program should look like this but not necessarily with those numbers:...
[10 replies] Last: Looks familiar ... http://www.cplusplus.com/forum/beginner/175118/ (by closed account 48T7M4Gy)
I need help making a mortgage calculator.
 
Please help me. I have to make a program that prints out the payment plan for a house. The program should look like this but not necessarily with those numbers:...
[2 replies] Last: Looks familiar ... http://www.cplusplus.com/forum/beginner/175039/ (by closed account 48T7M4Gy)
by JPoor
function to display dynamic array
 
Hello I have written this program #include <iostream> #include <array> using namespace std; double avg(const double *begin, const double * end) ...
[1 reply] : You already have the code for the 1st 3 positions, what's not working ... (by SamuelAdams)
Displaying Highest Input Value
 
I have this so far, I need to be able to display the name and grade of the student with the highest grade. We have not covered arrays (which is what I have been...
[5 replies] Last: That is what I thought. I have researched different approaches and the... (by jam2982)
checking if a text file exists and creating new text files
 
I've been stuck with this problem for a while now. I have a text file with the below information in my project folder:
[1 reply] : I think the problem may be the space in the name "General Chemistry". ... (by SamuelAdams)
by qmnty
get IP from another program
 
How to get IP from this application to my updater launcher, let's said this program 'A'. This application when i click 'Play' it will be showing the game. ...
[no replies]
by Winsu
get a string and put in a vector<int>
 
I want to do a program to sort integers in a vector...that part is done..my trouble is that I want to get that integers from a string and put them in a vector.....
[11 replies] Last: Yes, I misunderstood your post, sorry. You can use SFML with any compi... (by LB)
How Copy Constructor & Parametrized constructor executes twice
 
Write your question here. How Copy Constructor & Parametrized constructor executes twice? why object b value is different? # include<iostream.h> #include...
[no replies]
Y/N while loops not working
 
Why wont my code work? The program asks to start counting tickets then no matter what the input is, the program executes: There were 0 attendees. 0 had blue ...
[4 replies] Last: Thank you c: I got the program to work (by WallsofJericho)
Stack around the variable corrupted?! Help!
 
I'm getting an error where Stack around the variable 'dicerolls' was corrupted... Can anyone offer an insight as to why this is happening? Program executes perf...
[6 replies] Last: That can run because if the conditions in line 27 are met to start a ... (by chipp)
by pjalli
Cannot print out same name twice from an array
 
My project is like this: I decide a number n, and that's the number of names I have to put in an array. I have to write it with the first letter uppercase and t...
[4 replies] Last: Great man! Thanks :) (by pjalli)
by Winsu
upcast with protected base unaccessible (1,2)
 
I'm playing with dynamic_cast<>() to learn basically and I have been doing upcast that in fact are the same than an simple assignation...but the type of the...
[21 replies] Last: Thanks mate, I would invite you a beer if you were where I'm, you dese... (by Winsu)
by shahki
Memory Leak problem
 
I seem to have a memory leak that I have been trying to find but cannot locate in this templated linked list class. Am I missing something? I am fairly new to C...
[2 replies] Last: I noticed your push_back function updates size with s++ and your ... (by DyslexicChciken)
October 2015 Pages: 1... 5152535455... 57
  Archived months: [sep2015] [nov2015]

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