Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
by anup30
print the content of your program's source file to console, without user inputting the file name or giving it in source.
 
print the content of your program's source file to console, without user inputting the file name or ...
[11 replies] Last: If it had ^^ instead of ^^^ teeth I would a vampire but I hope JLBorge... (by malibor)
Why is cin not working after loop?
 
Hi everyone! so I have an issue I cannot figure out, basically when I simulate eof using ctrl + d th...
[3 replies] Last: Thanks seeplus for the help with this! I really like the idea of using... (by Dakiller)
Reading unkown number of bytes from a non-blocking socket
 
Hi, I am trying to learn C++ and my first project is to convert a Basex Client I wrote in R to a ...
[12 replies] Last: Of course it's allowed. They're the same thing. (Or at least, it's... (by MikeyBoy)
Be careful when storing the result of std::clamp as a reference
 
Earlier, someone posted a question about std::clamp but the thread was removed before I had a chance...
[12 replies] Last: Some structs are PODs. (by Peter87)
Stack frame error
 
Hi. I ask couple of days ago about unexplained code behavior. It hasn't been solved completely. I ...
[15 replies] Last: Hi folks. I have an update about the issue. in sitalDevice_Initialize... (by Jonathan100)
Was std::set suppose to model mathematical sets?
 
I apologize in advance. This reads like a half-rant/half-question trying to understand why C++ was d...
[5 replies] Last: It depends on your perspective, I suppose. in short to the above, no... (by jonnin)
Looking for guidance on writing desktop apps
 
Hi People, I want to write some desktop apps. I have some good ideas. However, I have become very ag...
[11 replies] Last: > I also do not have a problem with learning C# and .net. >> I would ... (by JLBorges)
Finding Vector(includes objects) Element's Index by Element
 
I'm trying to find the index of a vector element. Vector includes class objects. But I can't find a ...
[2 replies] Last: Perhaps this: #include <vector> #include <algorithm> #include <iost... (by seeplus)
Size of Union and Struct
 
Hello, I want to calculate the size of struct and union. Is the below true? In the union, the ou...
[14 replies] Last: Worth noting that standard C++ has alignas for controlling alignment... (by mbozzi)
Inheritance and virtual functions
 
Greetings! I try to understand the role of the virtual keyword when changing the signature of a mem...
[9 replies] Last: Thank you guys! (by PhysicsIsFun)
Returning wrong value
 
Write your question here. In function Sum why is program returning an 8 in sizeof(A) instead of 4...
[8 replies] Last: For typical values, std::ptrdiff_t can be used as signed std::size_... (by JLBorges)
by Ch1156
How to output a map from a class with operator overloading (1,2,3,4)
 
So im trying to output the contents of a map from the class and i obviously have to overload the << ...
[77 replies] Last: Yow, that there is one mouthful. (by George P)
How Can I Initialize this Dynamic array?
 
Hello, How Can I Initialize this Dynamic array? I'd like to have pointer to an array with size...
[3 replies] Last: If you are wanting to have a dynamic array why bother with pointers, e... (by George P)
can i declare an iterator outside of the container class?
 
Hi I have created a container class for which I need to create a bespoke iterator (not merely exp...
[1 reply] : > I find the container class becomes somewhat cluttered > as the decl... (by JLBorges)
by StMick
Cannot access vector[0] index
 
Hello! Any advice on the code below would be appreciated. I keep getting a segmentation faul...
[5 replies] Last: Consider (when v is sorted ascending): #include <vector> #include <... (by seeplus)
code unexplained behavior (1,2)
 
Hi guys. I work with some exotic hw design [microblaze + ddr], which upon I build sw which consists...
[23 replies] Last: [quote=Peter87]Well, we do see that there are sitalMaximum_DEVICES num... (by lastchance)
Problem byte in program.
 
I will try to explain how my program works and what the issue is. I am loading tile data from a file...
[1 reply] : Re L3-10 - It's easier to use a look-up table. (by seeplus)
LodePNG error
 
Hi, I want to create a png file using raw pixel data using LodePNG. However the sample will not com...
[17 replies] Last: Thanks for the tips. I got the image to show up correctly now. Turns ... (by Cyclone)
Pages: 1234
  Archived months: [nov2022]