Beginners - January 2022 (Page 4)

Not really a beginners question but..... (1,2)
So I'm working on a dll that is supposed to be like an addon to a scripting language. The scripting language (autoit) can be unbearably slow during certain ope...
Jan 15, 2022 at 1:29pm
[33 replies] Last: Yeah - I know that these solved problems and were needed, but BM life ... (by seeplus)
Checking for 2D Array Rotations + Reflections
(This is an unofficial USACO Bronze problem that I have been working on for a few days--it is not a homework problem.) I have created a code that will class...
Jan 14, 2022 at 2:54pm
[3 replies] Last: Your test for case 3 is wrong. Your test for case 5 is disastrous. Y... (by lastchance)
Debugger or IDE recommendation for macOS
Seeking recommendations for debugger or IDE for macOS i'v been compiling my codes using g++ on my mac terminal. going to start learning more about Debu...
Jan 14, 2022 at 12:18pm
[5 replies] Last: For a MacBook - XCode and/or Qt for C++ GUI/console applications - and... (by againtry)
project in console stopped working
I have a rather complex project. I was writing it on an old xp computer. Now I switched to a new Windows 10 computer. When I tried to boot it up, it said the ol...
Jan 14, 2022 at 10:40am
[1 reply] : Creating a new project helped. There was something wrong with the sett... (by czerwonymoskit)
adding space before and after a specific word using regex
how would I add space before and after a specific word in a string? eg user inputs 5s5s4>5 if I want to change the string into 5 s 5 s 4 > 5 how would I do ach...
Jan 14, 2022 at 6:09am
[2 replies] Last: @JLBorges surprisingly simple (by codinglexernewbie)
Is intensive single-core application bad for CPU?
Hi everyone, I'm making my own raycasting game and, since i'm a beginner and did it without planning ahead, i've made it straight forward, direct, no multithrea...
Jan 13, 2022 at 10:19pm
[12 replies] Last: That code, which is in loop, will will performe the same identical co... (by mbozzi)
Undefined reference to function
Hello ! I'm doing a project for my Bachelor's Degree (which is an implementation of a simple Entity Component System, but that's not the point of my topic :p),...
Jan 13, 2022 at 5:36pm
[3 replies] Last: It worked ! Thanks for the help ! ^^ (by EthanRDMdev)
"object"
Hi, glad I found this site. I have a question regarding the term "object". When you create an instance of a class, it is an object, but then the book says tha...
Jan 13, 2022 at 2:53am
[8 replies] Last: > "Fluffy" is a string literal. > Actually its a const char*, or a "C... (by JLBorges)
GUI guessing card game
I would like to try to make a guessing card game using GUI and c++ on visual studios. Here is the brief description of the guessing card game on the google docs...
Jan 12, 2022 at 5:39pm
[14 replies] Last: So what happens when someone does not have FLTK when I send the cpp ... (by jonnin)
by Amin96
can't solve this assignment
I know it's a c++ community but can't find help anywhere else its a java assignment please help me 1-An airline company allows travelers to carry a specif...
Jan 12, 2022 at 5:16pm
[4 replies] Last: yea you need something like this pseudo code: if weight <= 30 ticket... (by jonnin)
Best practice mutex in loop
Hello, I have written a program to analyze the href in html pages. But I don't know where to put the mutex to optimize my code. Wouldn't it be better to put i...
Jan 12, 2022 at 4:54pm
[7 replies] Last: You can start optimising by not passing objects by value. You appear ... (by kbw)
by j462
Need adivce on how to get the a number guess game to restart bump
I made a number guessing game where the computer has to guess what number your thinking of from 1 to 10. Part of my assignment is to make the game restart when ...
Jan 12, 2022 at 4:38pm
[2 replies] Last: c# code for a C/C++ forum? (by seeplus)
by LtL
About Windows.h
Hello. I'm new to all this forum and is still kinda new about the more complicated C++ programms. I hope you will understand some of my bad behaviours... (I lik...
Jan 12, 2022 at 12:59pm
[5 replies] Last: Thanks for all of you! I've been finding them on the internet but the ... (by LtL)
error: calling a private constructor of class
this is code from a youtube tutorial, i'v seen it compile properly in his video. i tried asking the author via comments but yet to get a reply. hence seeking ad...
Jan 12, 2022 at 9:34am
[6 replies] Last: I suspect that class was originally struct and that at some point it g... (by seeplus)
by j462
Need adivce on how to get the a number guess game to restart
I made a number guessing game where the computer has to guess what number your thinking of from 1 to 10. Part of my assignment is to make the game restart whe...
Jan 12, 2022 at 9:31am
[2 replies] Last: Is this c#? (by seeplus)
char array in C++ - expression must be a modifiable lvalue
Hello, Could you please explain why we have an erorr? #include <iostream> using namespace std; int main() { char s ; cin.getline(s, 80); ...
Jan 11, 2022 at 9:28pm
[5 replies] Last: ^good analogy, it's very much like avoiding "&array ", because just li... (by Ganado)
by tanvki
CLion and writing to file
When I try to write to file and from file in CLion, I can't get this to work properly: void wyswietl_bity (unsigned int bits) { const int Bits = 8 *...
Jan 11, 2022 at 12:50pm
[2 replies] Last: I pasted wrong code, sorry. But I got it to work anyway:) (by tanvki)
by realtd
address book using classes
Hi, the exercise is clear. Create a phone book with the name, last name and phone number. Please have a look on my script. I can't understand the view_friends...
Jan 11, 2022 at 10:09am
[4 replies] Last: it's still printing menu after every command: because of L42. If yo... (by seeplus)
unsure how to combine current working classes with date class, need to amend syntax
Unsure how to combine current working classes with date class, need to amend syntax #ifndef EMPLOYEE_H #define EMPLOYEE_H #include "Date.h" #include...
Jan 11, 2022 at 6:58am
[5 replies] Last: The first problem are the default paramters: SalariedEmployee( const... (by coder777)
how would i count the number of lines in a multiline string
how would I count the number of lines in a multiline string? example input: 4 4 4 4 4 4 4 4 4 5 5 7 ] (the ']' is the delimiter I'm using getline with a d...
Jan 10, 2022 at 2:45pm
[4 replies] Last: POSIX defines a line in a text file as: A sequence of zero or more no... (by JLBorges)
January 2022 Pages: 123456
  Archived months: [dec2021] [feb2022]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.