Beginners (Page 7)

by RNBW
Row of Ascii Characters
 
I am trying to display a row of Ascii characters (ref 219). But all it displays is one character. W...
[2 replies] Last: Hi Thank you for the prompt response. I forgot about the braces. But... (by RNBW)
Math equation coding help!
 
For my programming class, I am required to loop prompts for user input for the following equation: ...
[6 replies] Last: ok sarah, apology accepted, we move on. come back if you need any more... (by kemort)
Math Equation coding help again!
 
For my programming class, I am required to loop prompts for user input for the following equation: ...
[6 replies] Last: Thank you to all who helped! My program is working how i want it to(wi... (by sea2017)
how do you check if T is a certain type ?
 
how do i insert certain values if my type T is a certain type , ie i want to insert the value 1 into...
[2 replies] Last: Use template specialization, or the typeid operator. https://en.wikip... (by goldenchicken)
Implementing c_str()
 
Hello, I try to write my own c_str() function of my own MyString Class. I wrote some code but not...
[2 replies] Last: what does the class itself use to store the chars? is it a c-string i... (by jonnin)
by ZhuZhu
Getting sizeof pointer to an array
 
I am playing around with pointer to array. Saw this tutorial's code as below. I understand that siz...
[13 replies] Last: Remember that sizeof is evaluated at compile time and the result is a ... (by helios)
template and inheritance
 
I'm playing around, learning my way through class, and template. See below for a piece of my code ...
[3 replies] Last: Alright thank you all (by Tontonbaboum)
try throw catch
 
I'm trying to write a program that prints the second smallest integer in a sequence and outputs an e...
[1 reply] : 1. Doesn't your compiler warn about the assignment on line 9? 2. Ev... (by keskiverto)
That's why i am still a beginner
 
i thought the console will solve "12"...but it solved "123"....can you explain why #include<i...
[2 replies] Last: i got it...thanks (by phongvants123)
Entry Form Validation
 
I am trying to write a code to determine the eligibility of entrants into a marathon. My parameters ...
[7 replies] Last: One way to do it const int MALE = 1; const int FEMALE = 2; st... (by Thomas1965)
error with delete[]
 
Hi, I'm not sure what's entirely wrong with my delete operator. The function i'm running works fine ...
[1 reply] : // char* pnew = new char[strlen(s + 1)]; should be char* pnew =... (by JLBorges)
please help with 1d array 1-9
 
Write a program that looks at a 1D array of 9 numbers and verifies that the array contains each of t...
[1 reply] : #include <iostream> using namespace std; int main () { int numb... (by kemort)
Assigning int values a name
 
In my source code, I have an int Gender written. I need to associate entering 1 as being a male and ...
[2 replies] Last: Use an enumerator. enum { MALE = 1, FEMALE }; if (iChoice == MAL... (by Uk Marine)
about max_size() function for vectors
 
What is the inner function for max_size() for vectors ? Here i have this code: size_t ma...
[1 reply] : > max_size() for vectors ? max_size() for a container returns the the... (by JLBorges)
about const iterators
 
can anyone tell me what the difference btw the iterator const_reverse_iterator rbegin() and c...
[1 reply] : const_reverse_iterator crbegin() const returns a const iterator even... (by JLBorges)
Accessing Functions from another file
 
Hello everyone. I am writing a program that requires pointers, constructors/deconstructors, function...
[9 replies] Last: Here is the actual assignment so you can see what I am up against: ... (by dub1987)
problems accessing a function within a class.
 
I am trying to figure out how I can get the area function to run within the TestCylinder class. I g...
[3 replies] Last: Kemort, Thank you for the feedback and tips. I now have it working, t... (by stang6469)
Constructor needs reviewing, not sure if I did this right.
 
Hello, I am very very very new to C++. I am trying to figure out if I am completing the Huge-integ...
[2 replies] Last: Your constructor is called when an object of your class is created, be... (by Nico)
Why is my call for a class function not recognised?
 
Hello, I have made a program to convert between rectangular and polar coordinates using classes ...
[3 replies] Last: You would be safer with atan2(val2,val1) (note the TWO arguments) th... (by lastchance)
Pages: 1... 56789... 35
  Archived months: [jul2017]

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