Beginners - February 2022 (Page 5)

Inventory management file processing question problem
 
I have successfully worked on the file tool management for the functions but dunno how to do with fi...
[6 replies] Last: OK, As a 2nd refactor, this will first read the data from hardware.txt... (by seeplus)
Unable to print array
 
Can someone help why my array is showing junk values on print int main() { int arr = ...
[12 replies] Last: Atom using GPP invokes MinGW. Chances are when you compile you are no... (by deleted account xyzzy)
by Hcarr2
if else statment outputting 2 outputs
 
im making an if else statement program determining the eligibility of an applying student. my output...
[3 replies] Last: #include <iostream> using namespace std; int main() { int stude... (by againtry)
Infinite Loop
 
I have an infinite loop and I'm trying to figure out where's the error //Include the following #...
[1 reply] : The only thing that could cause an infinite loop in your code is bad d... (by DizzyDon)
help with my code
 
I have been working with this code for at least two weeks for a class. I am wondering if anyone can ...
[3 replies] Last: yes thanks for this guys much appreciated. (by Paul50002)
c - seg fault?
 
My program parses the string 'Ge34eks-f10or-Gee59ks' and splits them into tokens of three Ge34eks, f...
[4 replies] Last: Thanks for all the suggestions! The problem indeed was with the index.... (by Volapiik)
take input from user
 
I just made a small program to take input the stations for one road need some help to complete the ...
[4 replies] Last: Not which function - which function requirement ? You've listed seve... (by MikeyBoy)
by guack
I cant get last position
 
#include <SFML/Graphics.hpp> #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <i...
[10 replies] Last: when i try your code the snake rotates faster than it moves (it is act... (by guack)
by mikef
Loop prints only the first vector element
 
I'm generating random numbers and adding them into a vector then printing the numbers in the vector ...
[11 replies] Last: I was going to add an additional comment that mentioned using reserve ... (by deleted account xyzzy)
Struggling with a beginners homework assignment if anyone can help!
 
I am working on homework and have spent a few hours but can't figure out what is missing from this c...
[6 replies] Last: Another way is to write the program only after considering the problem... (by againtry)
c - my program doesn't print array?
 
My program has the goal of parsing the string "Ge34eks-f10or-Gee59ks". It does this by using strtok ...
[1 reply] : [Continued here http://www.cplusplus.com/forum/beginner/282144/ ] (by seeplus)
Trying to get a led to blink slower and slower
 
I got a kit offline from freenove trying to learn. Im so new it hurts I just want to get my led to b...
[5 replies] Last: https://docs.arduino.cc/learn/programming/functions https://www.arduin... (by againtry)
Help Needed With Loops
 
So I'm about one month into my C++ class and we just started learning about loops but for the life o...
[4 replies] Last: The requirement for 1) is to use a while. Also the logic isn't what wa... (by seeplus)
by emcp
cannot access derived class from base class when using factory
 
I've got the following code, trying to access functions that go beyond my base class.. When I do t...
[3 replies] Last: According to the documentation I think it's supposed to be this: c... (by coder777)
Index of the first character of the last name
 
Hi, im new here, and im struggling with a hw assignment that asks me for: a. The index of the fir...
[1 reply] : For the lastname: the first index is the length of the firstname + 1,... (by thmm)
Stack around array was corrupted
 
I've nearly finished with my classes knight tour program but I keep getting an odd error saying the ...
[6 replies] Last: It looks like the test for bestHorizontal == 10 needs to be moved back... (by DizzyDon)
Need help with code/cin please
 
I'm working on a project for school. It's supposed to work for male and female, but I am running in...
[2 replies] Last: You also have a semicolon at the end of line 26 that shouldn't be ther... (by DizzyDon)
Explain about a piece of C code
 
Hello, Could you please explain the below code? Why do we have these results? #include <stdio...
[2 replies] Last: Get out your textbook and/or course notes and read about the operators... (by Duthomhas)
OpenCV C++ issues
 
Hello good fellas! I have two questions: 1. How to output all contours contains? If i set loop con...
[1 reply] : Does this even compile? std::vector<std::vector<Point> >contours; .... (by salem c)
c++ read string
 
assume we have this struct and we need to take data from user , the type of the car and the car numb...
[9 replies] Last: #include <iostream> #include <string> #include <vector> struct Car... (by againtry)
February 2022 Pages: 1... 34567
  Archived months: [jan2022] [mar2022]

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