Beginners - November 2019 (Page 16)

Space between string on C++.
 
How do I put a space between each string? cout << "Print out your first name?" << endl; cin >> ...
[1 reply] : cout << firstName << ' ' << lastName; Single quotes denote a single... (by dhayden)
min_max function
 
How make a function that calculates the minimum and maximum of array and uses 2 reference type para...
[9 replies] Last: You need to pass n by reference to citire() so the value gets set in... (by dhayden)
cv2
 
I need the cv2 library on visual studio 2017 but it seems impossible to install. I keep getting er...
[4 replies] Last: cv2? is that OpenCV? If you still can't figure it out, link to us the ... (by Ganado)
Insert new user element into an array
 
So, I am writing a code to insert (not replace) a new number from the user into an array. I have see...
[4 replies] Last: If an array can take non positive integers, does it still have to be ... (by deleted account xyzzy)
Rocket Program: Need assistance on developing stages
 
My assignment requirements are here. [A "stage" in your rocket is one box] Your program will look ...
[4 replies] Last: Thank you Andy :). I've been struggling on that part for a while on ho... (by Depressed)
Looking for a proper function
 
Hi I'm looking for a function similar to std::string::compare() but outputs the position of the firs...
[3 replies] Last: In hindsight, of course there's an algorithm for it: #include <iostre... (by Ganado)
Help in C++ problem
 
That is not a C++ problem. That is a math puzzle. We could help with errors in your C++ code, if yo...
[1 reply] : #include <iostream> #include <cctype> #include <limits> int main() {... (by deleted account xyzzy)
Neat code
 
Hello, I wrote this code but it isn't neat in output. (unfortunately, we cannot upload a photo in t...
[1 reply] : Try this instead: #include <iostream> #include<vector> using namespac... (by Repeater)
by Ch1156
Storing function parameters for easy update
 
So I havent really been working on anything it's just a question I had. I was thinking that when you...
[10 replies] Last: Whoa lots of responses. I was following the documentation on here for ... (by Ch1156)
Not Reading a Random Number
 
Good evening, I am a beginner with C++ and having a bit of difficulty figuring out a small code ...
[2 replies] Last: Dutch, Thank you for your guidance. Your solution worked. I kept... (by john26999)
Colors messed up
 
Hi i was writing a graphics library but when i use it colors get mixed up This code needed to load ...
[12 replies] Last: I've tried rewrite code and i used an a for loop but whatever happened... (by ASingleGameEngineDevelop)
objects assignment
 
I am facing a problem with this code I don't know why the output is A's constructor called B's c...
[2 replies] Last: thank you (by ahmad alghadban)
How to find maximum value
 
If a user inputs five values... How to find maximum value between those 5? cin>>a>>b>>c>>d>>...
[5 replies] Last: I thought you wanted to use loops? (by lastchance)
Why this header file does not work for my .cpp?
 
The .cpp file below compiles successfully if I do not include the header file btree.h. However I wou...
[3 replies] Last: Thank you folks. It helpded. (by mrpear2020)
Issues with reading stuff into a linked list
 
So I am having issue when it comes to searching a linked list. I am supposed to a read file in that ...
[2 replies] Last: So the file is like "More than love" 12.99 1989 "Streets of London" 5... (by highwayman)
printing help
 
Hey guys, I am very new to c++ and needed some help with a problem I can't seem to get. I need to ge...
[1 reply] : perhaps something like this will get you started ... int main() { ... (by jonnin)
Linked list reversal
 
I've been trying to learn more about nodes and linked list and I'm not doing so hot. I've learned so...
[7 replies] Last: Thank you very much mate! My learning process isn't exactly by the boo... (by Deadweight77)
Copyright of tutorials of this site
 
Hello, I have a question about C++ tutorials from this site, I am beginner and I want to use it,...
[10 replies] Last: I am not the administrator, but I can tell you his opinion. (I have ex... (by Duthomhas)
self type objects
 
Why we can't create a self type object inside the class unless it was a pointer or a static one ?
[2 replies] Last: I got it .. Thank you very much (by ahmad alghadban)
How can I give this vector's members unique values each time?
 
I made a vector to store multiple values like so: for (int i = 0;i< 5;i++) { X= MenuIt...
[8 replies] Last: Solved. Sorry, the code is fine, It was an error within the code itsel... (by closed account E8A4Nwbp)
November 2019 Pages: 1... 14151617
  Archived months: [oct2019] [dec2019]

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