Beginners - August 2021 (Page 3)

by Wenzi
Loops and arrays
 
Write a program that receives the number of students the users wants to enter as an input. Next, the...
[2 replies] Last: Hello Wenzi, PLEASE ALWAYS USE CODE TAGS (the <> formatting button)... (by Handy Andy)
Elements appearing in arrays that shouldn't exist
 
The problem I'm solving involves deleting an element of an array and making sure there are no empty ...
[10 replies] Last: @Handy Andy, @seeplus, I see. With a proper prompt it's much clearer. (by thmm)
confusion about the parameter of "emplace"
 
this is the declaration of "emplace": template <class... Args> iterator emplace (const_iterator posi...
[3 replies] Last: It emplaces one element, not elements. The "...args" is a parameter ... (by keskiverto)
by jonnin
Pointers in C
 
OK :) the concept: assuming you know about arrays (if not, draw back and punt, go study arrays!) th...
[14 replies] Last: For what it's worth, the original request was just "to explain the con... (by mbozzi)
Class - inheritance
 
Hi everyone. I'm dealing with classes. Here I'm doing a class "materialPoint" which inheritate the d...
[5 replies] Last: [quote=Zhylian]I thaught it would be nice to use my older classes and ... (by MikeyBoy)
Help code C not build
 
void LED_update() //cập nhật dữ liệu hiển thị ra bảng LED { for(int line_height=0;...
[3 replies] Last: Hello damtran2509, PLEASE ALWAYS USE CODE TAGS (the <> formatting b... (by Handy Andy)
switch statement
 
I am trying to create different data structures based on what the user inputs, I am wanting to use a...
[5 replies] Last: Hello DonnaPin, I managed this to get the code to work: int main() ... (by Handy Andy)
by bensan
Select, Copy & Paste in PHP & CodeIgniter
 
We are building a website with CodeIgniter & have created the facility where a user can create their...
[11 replies] Last: Thanks @Thomas1965 - Not on server, only localhost. I have the advert... (by bensan)
by vysero
Print std::string
 
Hey guys, I am trying to call a method which was declared like so: const std::string& getFir...
[6 replies] Last: As of C++20 <format> requires the programmer to pointlessly allocate... (by mbozzi)
by NowIC
printf() with %p
 
#include <stdio.h> typedef struct { int x; int y; } point_t; typedef struct { point...
[4 replies] Last: Parameters which match the variadic position (the ...) in any functio... (by mbozzi)
implement while and for loops in functions to return the first integer
 
i started to learn c++ with only tutorial from the internet and i have this problem when startin...
[1 reply] : There is a problem with function p(). If i is not 20, then the return ... (by seeplus)
Reading from file and inserting into existing linked list node
 
Hi, so I have a linked list with nodes storing student names, course, id, phone number and so on. In...
[9 replies] Last: the problem is the student name, course and phone number of my last n... (by dhayden)
by asees
problem with deletion of a map element and insertion of a new element in its place.
 
Hello everyone. This question is from the book "Jumping into C++", chapter 19. I have removed "<" f...
[7 replies] Last: @thmm Thank you for the response. @seeplus Thank you for another sol... (by asees)
C++ class static member variable definition
 
Hi, I am doing my book book problem right now, "C++ from control structures through objects". I am l...
[5 replies] Last: I think you can have your declaration in the header outside the class,... (by malibor)
Not c++ but hope someone can help with git
 
I am sorry that this is not a c++ question, but I hate to ask on stackoverflow, feels like everyones...
[12 replies] Last: @MyOnlinePersona You have read the man git-push ? https://git-scm.co... (by keskiverto)
by AkiraC
sum and mean of the number in loop
 
Hi there, so I made this program that ask users to enter a series of number and then the program wil...
[2 replies] Last: You need L15-16 within the body of the if statement. As it stands if n... (by seeplus)
Trying to understand what is bad about my code...
 
So my professor for a beginners c++ class docked me 2 points for a quiz to write a program based on ...
[8 replies] Last: #include <iostream> const int COLS{6}; int main() { int sales ... (by againtry)
system("TASKKILL") Processes With Spaces
 
I'm writing a program that kills a bunch of processes at once (Windows x64). The main question I hav...
[3 replies] Last: tasklist /svc gives you output like this: svchost.exe ... (by jonnin)
int_max , int_min, leetcode problem
 
Hello, I am trying some leetcode problems but couldnt solve it and had to look at the solution. But ...
[2 replies] Last: It's basically to detect numeric overflow and underflow. And because ... (by salem c)
How to make a function to determine whether a point is inside a polygon
 
Let us say we have a class that represents a point in the plane as two unsigned short integers. Now ...
[2 replies] Last: Thank you, I'll try that. (by bergjensen33)
August 2021 Pages: 1234
  Archived months: [jul2021] [sep2021]

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