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)
"String subscript out of range."
 
Hello all, I am working on an assignment for my intro to programming class. The program is suppos...
[3 replies] Last: Perhaps this is nearer to giving the required output? #include <ios... (by seeplus)
by vboro
Vector same element problem?
 
Hi! My current task is to make a list of ingredients for a cocktail, stored in a vector. If the ing...
[2 replies] Last: Consider as C++17: #include <iostream> #include <vector> #include <... (by seeplus)
Is there a way to use multiple objects from one class within another class?
 
I'm trying to refactor a function as a class so I can use multiple instances. The function current...
[7 replies] Last: The proper way to objectify a function like that would be class Foo{... (by helios)
How to make sure that different dynamic memory is allocated to the same pointer when using while loop?
 
Here is my question: How to use a while loop to allocate different dynamic memory address to the sa...
[14 replies] Last: Either way, something handles the allocation and that detail is not ... (by keskiverto)
Sorting Linked List Nodes in order
 
Write your question here. I'm trying to sort these nodes in order, but the code below seems to be r...
[11 replies] Last: The implicit conversion to pointer ( null pointer conversion ) applies... (by JLBorges)
by chipp
size of array of char*'s value
 
i wanna ask if, for example, i made a variable like this: const char * p_char = {"asd", "cvbz"...
[3 replies] Last: Additional note: the string literal itself is an array and has not y... (by Ganado)
by AkiraC
How to print out something according to the input?
 
Hi, I actually wanted to print out something according to the character that I typed but it doesn't ...
[8 replies] Last: Ok. perhaps: #include <stdio.h> #include <stdlib.h> #include <ctype... (by seeplus)
Address of struct and address of first member variable
 
The address of a struct is the same as the address of its first member variable. struct mySt...
[4 replies] Last: > Given that both the struct and the first member have the same addres... (by JLBorges)
.
 
here is the code on how to mergesort a 2 equal sorted runs #include <bits/stdc++.h> using nam...
[7 replies] Last: Why did you erase the title text of the thread? Don't. (by keskiverto)
HELP keep getting error C2182 and few others
 
i have tried everything, cant figure out whats wrong .. here is the code with errors as comments: ...
[4 replies] Last: thanks helios , it worked all i had to do was remove drawing.h and mac... (by Reddevil1003)
Accessing struct member within node of linked list concept
 
I have created a linked list with a struct Student within a single node of said linked list. Within ...
[7 replies] Last: Ok. You already got that: using type = Student; struct Node { type ... (by keskiverto)
How to calculate the time complexity and space complexity
 
Hi, may i know how to calculate the time complexity and space complexity of this code #includ...
[3 replies] Last: yes, N*N and N^2 are the same thing :) remember this stuff can get w... (by jonnin)
what do have to do?
 
Hellofire1234, Since there is not enough code to compile and test I would have to guess that "main"...
[1 reply] : fire1234 Op Original post. int whatsx(int x) { std::cin >> x;... (by Handy Andy)
by AkiraC
How to sum up the numbers in loop?
 
Hi, I'm new here, may I know how to sum up numbers in loop? Example, for quantity of product A, I i...
[8 replies] Last: @Handy @seeplus I had change the code according to your codes, and it... (by AkiraC)
Domino max number of tiles
 
An integer N is given, followed by N number of pairs of integers - the pairs represent domino tiles....
[6 replies] Last: I needed special servers to store such arrays of data. And also do not... (by Hison)
Trying to implement HWID Checker
 
I want to check if hwid serial code (HWID) is valid from std::vector<std::string> list but I can't g...
[1 reply] : The string returned by GetCurrentHwProfile encloses the GUID in curly... (by mbozzi)
Static member that contains unique_ptr
 
Hello everyone, I wrote the following code to regenerate the problem I met: I'm trying to have a ...
[4 replies] Last: It's not entirely clear on what you're trying to do. However, I'll ju... (by kbw)
Please Describe the Below function
 
Anyone please describe the following C++ code,i.e What is it doing class LightingManager { pr...
[4 replies] Last: That's naming the object explicitly. In your code, you need it becaus... (by kbw)
Pages: 123... 7
  Archived months: [jun2021]