Beginners - April 2021 (Page 10)

Printing array and adding
 
Hello, I'm having trouble with my array assignment. The instructions are Create a integer type two-d...
[10 replies] Last: Sorry for the late reply but thank you for teaching me about uniform i... (by av16352)
Need help with a "general" if statement c++
 
okay, so basically i want to make something like this: Say i have an if statement with a string like...
[2 replies] Last: Prefix and suffix of string are relatively easy with substr(): http://... (by keskiverto)
Store backroom
 
Hello guys i am trying to build a "grocery backroom" here is where i want the user to enter an item ...
[5 replies] Last: Hello rezy3312, When I got the program to run I tried this: ------... (by Handy Andy)
list
 
help me understand how to add, multiply or make any other simple math. operations with lists STL. el...
[3 replies] Last: Or possibly like this: #include <list> #include <iostream> #include... (by seeplus)
Find data from file and assigning to struct members
 
Hi guys, I need some insight on my code here, So I have a file that have the following stored: ...
[12 replies] Last: That would be the easiest - assuming that mobile and ic also don't con... (by seeplus)
Header Files and Private Variable Usage
 
Hello! I'm trying to create a header file for my upcoming project. This is my first time actually us...
[8 replies] Last: R L86 L89 above, == is equality test, = is assignment. Also pass strin... (by seeplus)
operator overloading, and some other basic stuff
 
i am doing an exercise - a library software, which takes book names, ISBN in form n-n-n-x where n is...
[5 replies] Last: @AbstractionAnon thanks . I fixed the points u mentioned except line 1... (by Reddevil1003)
by Day532
Permutation in c++
 
Hello there all, I am new to c++. Be that as it may, chipped away at python. Need to change over t...
[1 reply] : http://www.cplusplus.com/reference/algorithm/next_permutation/ (by lastchance)
For loop prints 0, after i++ increment expression!
 
How come: it prints value 0 for i, if based on definition of for loop, i++ will increase i from 0 to...
[9 replies] Last: What do you mean, "outdated"? The explanation you pasted there is corr... (by helios)
Using C++, write a class BooksInfo
 
Using C++, write a class BooksInfo which has the following attributes: Book_Title, Book_author(s), B...
[14 replies] Last: Hello mar1972, Using C++, write a class BooksInfo which has the fol... (by Handy Andy)
Enum help
 
So I'm just doing a simple code to show use of enumerations in a code of our choice. I kind of under...
[2 replies] Last: #include <iostream> #include <string> #include <limits> enum weekDa... (by seeplus)
password hint
 
Hey guys im wrting a code but ran into a problem, i am asking the user to enter the password that is...
[5 replies] Last: yes but i wanted to compare 2 arrays with the same that way i just add... (by rezy3312)
Average array
 
Let me preface this, im a noob in an intro level c++ class. Here is the problem Create a 2...
[11 replies] Last: what I'm still not understanding is how to call the variables in the ... (by dhayden)
Small 'Matrix' Game
 
Appears that the original owner has done a bunk. If you don't supply runnable code then people ca...
[4 replies] Last: The code uses a variable called line - which isn't defined! eg if (li... (by seeplus)
How can i clean my messy code
 
Hi everyone. Im a newbie, because of that i apolige. I have a messy code. I want to clean it and wan...
[5 replies] Last: When one replies to a thread it appears at (is "bumped") to the top of... (by mbozzi)
Dynamic Array
 
Hello I'm getting an error in the implementation of my push back function to append values to a dyna...
[6 replies] Last: Makes sense! Thank you! (by panconcafe)
make member variable immutable after constractor
 
In other langs like Java there are keywords like 'final' where a member variable suffixed by 'final...
[9 replies] Last: No. A variable can only be set as const when it is defined. You can't... (by seeplus)
Array with copy
 
Hi guys happy easter, This is what I am trying to accomplish Create a 5-element array Initial...
[3 replies] Last: #include <iostream> #include <valarray> using namespace std; templat... (by lastchance)
Resize function in STL Vector
 
When I searching for resize function of the STL Vector, I find some of the words says that this func...
[4 replies] Last: Thanks for reply. (by VoidWalker)
if control statement
 
hey, I am working on project and I want to make the person choose and enter what he like to see and ...
[6 replies] Last: You don't need braces in case statements for most uses. Only when a v... (by deleted account xyzzy)
April 2021 Pages: 1... 89101112
  Archived months: [mar2021] [may2021]

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