Beginners - August 2020 (Page 2)

2d arrays
 
Hey lads, let me ask you a really good question, Is there a possibility to write for 2d array synta...
[5 replies] Last: MaxGreen, be aware that you must not collapse 2-d to 1-d if the 2-d i... (by jonnin)
How to allow multiple struct definitions in single argument ?
 
I want my void to allow multiple struct definitions from a single argument lets say thats "myStructA...
[11 replies] Last: void Render(int aArg,int bArg, myStructAny struct){ if(typeid(struct... (by dhayden)
external or internal linkage/ is my book wrong?
 
I'm reading Stephen Prata's C++ primer plus, and he mentions that by default that const variables ha...
[2 replies] Last: `myName' is not constant, it points to const char myName = 'A'; *myN... (by ne555)
Are there any programs that help draw .c and .h file relations?
 
I’m looking for a way to visualize how my .c and .h files interact and interface with each other. ...
[4 replies] Last: understand for c++ if it is still around lists the caller of every fu... (by jonnin)
Unhandled exception
 
Hi I wrote this program but it throws this exception: Unhandled exception at 0x008938D9 in treta_za...
[2 replies] Last: Okay I think I found whats it wrong, the recursion has to be in the if... (by closed account 23q2T05o)
by jax16
Loan calc
 
Need some help with this code. It is pretty much a loan repayment calculator. The company only offer...
[3 replies] Last: Lines 14-16, I wouldn't use ONE or HUNDRED. 1 and 100 are clearer... (by dhayden)
by Mif
How to save text to a file extension.txt?
 
I wrote this code and it works, the problem comes when I insert other data in txt file the first thi...
[2 replies] Last: Ohh thanks you soo much. I think I need to learn more about these mode... (by Mif)
enums
 
Hi, I am currently learning about enumerations, and I believe I am understanding the basics, but the...
[2 replies] Last: Hello DonnaPin, To go with jonnin's explanation this may help: ... (by Handy Andy)
for loop not working as expected
 
This needs to print two columns of numbers, but it just prints the number 11. I'm sure I'm missing s...
[3 replies] Last: nevermind...i figured it out (by raefnal)
Question about list initialization
 
Hi, I'm learning about design patterns, specifically about the decorator pattern. I don't really und...
[5 replies] Last: Glad it helped :) (by zapshe)
Question about "new" keyword
 
I'm learning about design patterns, specifically about the decorator pattern. There's a bit of code ...
[2 replies] Last: Thanks a lot for the info :) (by brianbathorycpp)
some help please
 
Write a program that displays the contents of a file in four columns titled “Item Name”, “Num ...
[7 replies] Last: thank you i got the idea (by shokoro10)
split vector
 
Hi everyone. I need some advice. How can i split the following vector. For example, row 1 until 10 w...
[8 replies] Last: Hi jonnin , simpler than what I gave?! ... its two lines.. Sorry. I... (by sarah1993)
What is a module?
 
Hi, I am reading about storage class specifiers, and extern says "allows a variable to be made known...
[1 reply] : The terminology used in textbooks, especially really old ones, doesn't... (by Ganado)
CLASS MEMBER VARIABLES
 
You'va already asked this question once, and received answers. Why are you spamming the forum with ...
[no replies]
Comparing UTF-8 with a substring
 
I'm trying to print out all the letters in a string until a curly quote is found. However I can't co...
[1 reply] : ... (by andywestken)
UTF-8 encoding
 
How do I write UTF-8 encoding as a string or char. I want to use curly quotes: “ ” with encodin...
[1 reply] : Next time, read the manual first. http://eel.is/c++draft/lex.charset#2... (by mbozzi)
static member
 
https://www.learncpp.com/cpp-tutorial/811-static-member-variables/
[1 reply] : https://www.tutorialspoint.com/cplusplus/cpp_static_members.htm See a... (by deleted account xyzzy)
No Appropriate Default Constructor
 
Hi, I am working on converting a regular class into a templated class but I keep running into this e...
[1 reply] : You defined a constructor with arguments so the "default" no argument ... (by jlb)
August 2020 Pages: 1234... 8
  Archived months: [jul2020] [sep2020]

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