Beginners - February 2021 (Page 8)

hot to solve error (0xc00000fd)
 
Hello, I'm trying to split my main.cpp into several.cpp files. I'm using a single header file to co...
[3 replies] Last: is it a wrong way to use structs with a header file? No, it is not w... (by dutch)
I keep getting an " error: expected primary-expression before 'char' "
 
I've isolated my code and I've found this is where the problem is coming from - my clear function. I...
[2 replies] Last: Yes. Thank you very much! (by KittyIchigo1)
by kmce
How to handle template arrays being passed to functions
 
I have a template of an array class. I want to overload the << operator to print out the array, so i...
[3 replies] Last: See 'Why do I get linker errors when I use template friends?' https://... (by JLBorges)
by PK Dey
tack around the variable 'a' was corrupted
 
Error>> Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted. Could someone plea...
[2 replies] Last: Thanks dutch! I have learned a lot of key points of C++ language from ... (by PK Dey)
by amr200
incorrect sort and search output
 
my sort and search code looks correct but when it runs it acts all weird, it sorts in a wrong way wh...
[4 replies] Last: Is this supposed to be a queue using a circular buffer? Right now it ... (by dhayden)
by ErikDz
Need help importing httplib (1,2)
 
Hi, so I want to #include "./httplib.h", but it always tells me that 'openssl/err.h': No such file ...
[20 replies] Last: Have you tried compiling in "release" mode? (by dutch)
Bubble sort algorithm
 
So output should be numbers from 1-100. I gett error at line 23. - 'printf' was not declared in thi...
[6 replies] Last: if using c++, #include <cstdio> or better use iostream (by ne555)
by whaley
GIT CONFUSION
 
I need help using GitHub! So we were told to work in pairs, and each pair has a leader and a team me...
[2 replies] Last: ... (by ne555)
The Shapes Program
 
I currently writing a C++ program that calculates area, perimeter, surface area, and volume of commo...
[8 replies] Last: Here's another version. This one uses virtual methods to print so main... (by dhayden)
by mxkxx
cant open the sent exe file
 
my teacher cannot open the exe file of my project. It says System error and " The code execution can...
[16 replies] Last: it worked now. thankyou very much for saving me hahahaha <3 (by mxkxx)
While loop with if else
 
Hi, so I believe I did my coding right so far? I could be wrong, I'm completely new to this. Assignm...
[7 replies] Last: Based upon code from previous post here http://www.cplusplus.com/forum... (by seeplus)
by mxkxx
dynamic to static
 
how can i change my settings from dynamic to static linking?? iam using code blocks.
[1 reply] : I've never used an IDE for c++ but the manual for Codeblocks is here: ... (by lastchance)
Wont print 100
 
Write your queThe book says to print 100 3 times by inputting 42 42 42 42 42 55 55 62 100 100 100 bu...
[13 replies] Last: > The 100 part is missing when I go to press ctrl + F5 The last numbe... (by JLBorges)
Please help.
 
Can someone please help me with this code? I am fairly new to programming and don't want this code t...
[2 replies] Last: Thanks for the info "buddy!" (by Dawson82)
Gray block
 
Hey guys, Today i installed c++ on my macbook(mac os high sierra, early 2015) and when i declare a...
[2 replies] Last: Thanks a lot, helped me ! (by biscuitedelicios)
by int321
confusion with if else statement
 
If I enter one number < 60 and one > 60 why is it still printing student failed? and If I enter two...
[4 replies] Last: Yeah Andy. That was actually my previous lab with time. That’s why I... (by int321)
For Loop inside A While loop
 
Hi im suppose to write a for loop inside a while loop where i ask the user to input a number between...
[5 replies] Last: Consider: #include <iostream> #include <limits> using namespace std... (by seeplus)
Undefined reference to parent class constructor
 
There are two programs below. When I run the first program, I encounter an error stating undefined r...
[9 replies] Last: Thank you gentlement, I think I finally understand it. (by megamonium)
Control LED
 
I have code like this. #pragma endregion int counter = 0; int dec_value = 0; private: Syste...
[1 reply] : On line 29 of the arduino program you read an int using parseInt(). Wh... (by coder777)
Wrong result using unsigned long long int
 
I'm playing with a simple program to learn about recursion. I've tried to calculate the Fibonacci nu...
[16 replies] Last: > Optimized tail recursion only uses one stack frame. It's equivalent ... (by JLBorges)
February 2021 Pages: 1... 678910... 12
  Archived months: [jan2021] [mar2021]

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