Beginners (Page 13)

by seatea
Possible to merge strings in an order of your chosing?
 
Hi! Let's consider having two strings: string example1 = "A3B3C3DEF3G" string example2 =...
[1 reply] : loop over string calling a transform() that calls your lambda that may... (by jonnin)
SOS I couldn't stop the loop in TIC TAC TOE game
 
How to stop the loop? It keep repeating itself #include <stdio.h> #include <stdlib.h> int b ; /...
[3 replies] Last: change while (1) printf("%s", game(first = !first)); to char yn = 0; ... (by jonnin)
by blobbb
How do I get this to print only the integer solutions?
 
If I wanted to adjust my code so that only integer solutions of x and i are displayed, how would I d...
[2 replies] Last: as a side note, loops with a double loop variable have risks of not do... (by jonnin)
Pointer to array of character in C++
 
Hello, I want to declare a pointer to an array of characters in C++. How can I do it? #i...
[7 replies] Last: you don't need an explicit pointer to do C on it. sprintf(letter, "%s... (by jonnin)
Sequence of Chars in C
 
Hello, I want to allocate memory with pointer and get string from user. I don't want to use an...
[13 replies] Last: new/delete is c++ malloc/free is C you cannot delete where you used m... (by jonnin)
Detecting Enter and ESC in C++ with ASCII code
 
Hello, How can I detecting Enter and ESC in C++ with ASCII code? I put one breakpoint in the (...
[1 reply] : 'enter' varies by system, its a mix of 10 and 13 ascii codes (or both,... (by jonnin)
accessing an object from a vector
 
How would I be able to access x or y variables from the octagons vector after storing the object. I...
[6 replies] Last: Why do you want vector of pointers? with octagons.push_back(new Octa... (by keskiverto)
by liayag
How to index vectors with data stored in a text file.
 
I have a text file that has information about different cars. 1 2019 Honda Civic Sedan 23000 2 2019 ...
[7 replies] Last: This definitely helped a lot. Thank you so much!! (by liayag)
by iOsama
Calendar functions
 
i need someone to explain these functions to me, What do these functions do! void l...
[2 replies] Last: The best way to understand stuff like this is to write it yourself ... (by Duthomhas)
Stack + Template
 
I've been trying to create a system where you can enter in the student name(will do the name later)a...
[4 replies] Last: answer is spelled wrong consistently. As long as every instance of t... (by Furry Guy)
by asxxx
Sort matrix
 
Good morning, I trying to sort matrix but using for loops but I can't find errors. Thanks for tips. ...
[5 replies] Last: Thank you very much for help. (by asxxx)
The code outputs the value wrongly
 
I am trying to write a code that will print the number values and tat the number of the smallest num...
[9 replies] Last: Hello marialavr, One thing I forgot to mention. Be careful using the... (by Handy Andy)
Error: Expression does not have class type
 
In the row 67 there is an error: 'p.MESWERT::getEinheit' does not have class type. What am I doing w...
[8 replies] Last: It might compile, but it still doesn't make sense. Are you just copyin... (by Ganado)
Need help :(
 
Hi, I just started learning c++ not so long ago. I asked a friend to give me some c++ exercises so i...
[3 replies] Last: Thank you guys very much for the help. (by DarioHak)
reading random line in txt file
 
I want to create a function that it takes random line in txt file and declare it to Student object. ...
[3 replies] Last: A single pass through the file is sufficient. #include <iostream> #i... (by JLBorges)
How to use classes and virtual functions to make a player/enemy Class
 
Hello I am very new to programming and I am currently trying to torture myself to get better at codi...
[2 replies] Last: For the sake of accuracy: In Object Oriented Programming, a Class is... (by MikeyBoy)
c++ student automation
 
hi add students add classroom changing a student's class delete student delete class i am ...
[2 replies] Last: #include <iostream> #include <fstream> #include <string> using ... (by againtry)
by sedi
use of deleted function
 
Hi, I have defined two constructors, one default and one with init parameters: Complex(); ...
[2 replies] Last: The ambiguity exists because you've added a copy constructor accepting... (by mbozzi)
Console returning wrong char (tic tac toe)
 
Good evening. I decided to learn coding for the first time a week ago, but I'm already having some i...
[2 replies] Last: It seems, that you have mistakenly confound the assignment operator ( ... (by nuderobmonkey)
Errors in the code
 
Hi! There are some errors in my code that I don't know how to solve. The rows 73, 74, 99 and 103 gi...
[3 replies] Last: Apparently, shortly after C++14 was finalized, this error was addres... (by Ganado)
Pages: 1... 1112131415... 21
  Archived months: [nov2019]

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