# Beginners (Page 6)

 by MaxGreen STL vectors I am trying to write 3 different types of algorithms which create arrays using vectors STL( 1-st les... Mar 31, 2021 at 4:43pm UTC [13 replies] Last: I guess the issue occurs because I was trying to use specifically res... (by MikeyBoy)
 by PK Dey const string& str Could someone please explain "const string& str"? #include #include using n... Mar 31, 2021 at 4:21pm UTC [1 reply] : It passes the string by const reference . This means that the str in ... (by Ganado)
 by qtngmin Doubly Linked List iterator Hi everyone, so today I have to deal with doubly linked list and using Iterator in it. I still don't... Mar 31, 2021 at 3:19pm UTC [3 replies] Last: It's hard to tell without seeing the declaration of DLinkedList<>, but... (by dhayden)
 how to get specific text from string? I want to get player name from Chat log. Now I just need to find it from this line (param 1: `5<`2pl... Mar 31, 2021 at 12:43pm UTC [5 replies] Last: @seeplus, I noticed that, but I have had trouble with the (`) in the ... (by Handy Andy)
 by BradyS Value return function trouble I have an assignment here for a value returning function that uses another function to obtain the va... Mar 31, 2021 at 11:39am UTC [2 replies] Last: [quote=salem c]C++ doesn't allow functions to be declared inside other... (by MikeyBoy)
 by PK Dey c = a % b; Shouldn't c be zero when a = 6 and b=9? #include #include using namespace ... Mar 31, 2021 at 8:52am UTC [2 replies] Last: Don't confuse division remainder (modulo division) (%) with integer di... (by seeplus)
 by ccorkran Sum of Range Hello everyone, I am writing a function to find a sum of a range. I have a function that works in ... Mar 30, 2021 at 9:38pm UTC [13 replies] Last: Yep. As from first principles: S = m + (m + 1) + (m + 2) + ... + (n... (by seeplus)
 Random number seems to get stuck in a loop? So, I'm working on a number guessing game in command console. Right now, the player enters a number... Mar 30, 2021 at 1:50pm UTC [7 replies] Last: If this is for an assignment, you might be doing it wrong. Normally wh... (by dhayden)
 by NiceS Writing to text file Im trying to add in another extra row of data to the checkout txt file whenever a tool is checked ou... Mar 30, 2021 at 8:54am UTC [4 replies] Last: Im trying to add in another extra row of data to the checkout txt fil... (by seeplus)
 by Brian845 map, unordered_map...Nope, Vector Of Pairs!! This personal experiment is something new to me. I have a 2d vector of maintenance codes. I wanted... Mar 30, 2021 at 8:14am UTC [11 replies] Last: That makes sense. Me personally, I like the unordered same frequenc... (by Brian845)
 by medosz find the largest integer in the array with recursion This program finds the largest interger in the array. I am trying to understand it but I am struggl... Mar 30, 2021 at 6:14am UTC [8 replies] Last: Thank you for your help. It helped a lot. (by medosz)
 by ok304 2 matrices, one with string other with int im trying to make a simple program to practice 2d arrays in c++. the string array is simple name & ... Mar 29, 2021 at 9:41pm UTC [7 replies] Last: thanks! works great and it looks way easier than the version i thought... (by ok304)
 Stack in CodeBlocks can somoene explain how this compiles nothing in CodeBlocks. thanks beforehand #include
 Overloading unary operators Hello! I was trying to overload unary operatirs ++ and --. You can see the code below. And this is t... Mar 29, 2021 at 11:29am UTC [2 replies] Last: Keskiverto, I'm really grateful to you! It was a very primitive mistak... (by crueltyfree)
 Function problems So I have a project where I have to do the following: The program calls the following functions, ... Mar 29, 2021 at 11:26am UTC [17 replies] Last: @seeplus, I missed the lack of the space in line 2, but I agree it is... (by Handy Andy)
 by Growthra Help finding duplicates within an array Please help don't know how to do it. I'm done with what I'm supposed to do in my class assignment bu... Mar 29, 2021 at 10:38am UTC [10 replies] Last: Thank you help for the help, I really neeeded it. (by Growthra)
 by Pepito cannot be used as a function Good day, I keep getting this error whenever I want to call the function list(c) it says cannot be u... Mar 29, 2021 at 10:33am UTC [2 replies] Last: My bad, sorry I'm just new here, I didn't know threads aren't deleted ... (by Pepito)
 Explain me output of the below program (1,2) Explain me output of the below program int main() { static int arr1 ={0,1,2,3,4}; int ... Mar 29, 2021 at 9:58am UTC [20 replies] Last: >>I suggest you start analysing I have analyzed the code "pointers... (by sunil kumar g)
 by Spodacus Loop not continuing in stack program Hey guys my code is working just fine for a postfix calculator but for some reason, the code provide... Mar 29, 2021 at 9:17am UTC [3 replies] Last: cout << "Enter another equation?(y or n)"; cin>> tmp; if(tm... (by seeplus)
 by bassel27 How to calculate time complexity of this code? What is the time complexity for my code with showing your steps? I tried to figure it out by doing O... Mar 29, 2021 at 6:45am UTC [1 reply] : Don't double-post. http://www.cplusplus.com/forum/general/277131/#msg1... (by lastchance)
Pages: 1... 45678... 18
Archived months: [feb2021]

Cannot post in this page. To post a new message, go to the first page.