Beginners (Page 14)

Want to check if I understand this correctly.
I did a simple addition thing using classes. With some variables being in private. I managed to make...
[8 replies] Last: I am telling you to move your print (cout) statement in add out of the... (by jonnin)
Problem with matrix multiplication
I'm trying to create the multiplication of matrix A and matrix B. I almost done, i think, but the re...
[3 replies] Last: maybe, initialize c to zero? (by jonnin)
Problem with nested for loop
I am trying to create an array of twenty-six objects of the class Animal. I want to have a function ...
[11 replies] Last: Thank you all. (by BroBuilder)
substring counter not working
I've made a program that counts the number of times a substring appears within a string.It works jus...
[3 replies] Last: thanks a lot It's working now! (by caractaser)
I think there's something wrong with the cycle
I tried to add three drivers to each bus using a cycle. However, I doubt this cycle is correct, beca...
[1 reply] : First this code: while(!fbus.eof()){ cin_string(carnumber,fbus);... (by keskiverto)
A question about string::iterator
void Encode_Message(string User_Input, const string Legend){ string Encoded_Message; string::ite...
[4 replies] Last: About the range based loops... aren't I using range based loops? N... (by seeplus)
Read text file into a function.
I am having trouble with ifstream and reading from a file. Essentially, I would like to "open" the f...
[15 replies] Last: @Fayezilla. Based upon your code, perhaps: #include <iostream> #inc... (by seeplus)
Grades Program switch statements
I was wondering what I have wrong here, i need a grade entered then a switch statement to display th...
[6 replies] Last: You could also use an array to hold the mark/grade breaks. Something l... (by seeplus)
by berce
Recursive Function namely without using loop
Hi Friends, I have program the below code however I could not programming as recursive function and...
[1 reply] : For comparison: #include <iostream> using namespace std; void recur... (by salem c)
What happens when you press "enter" without providing the program input?
I tried googling this but found nothing but people wanting to gather input without the user pressing...
[3 replies] Last: You can read the entire line of input with std::getline then test wh... (by mbozzi)
by maso
Make Dijkstra take input from text file
Hello, I am trying to change the Dijkstra algorithm to take input from the text file. I found this e...
[1 reply] : If I read this correctly you are asking others to invest time in amend... (by lastchance)
by Mif
I get some errors.. if anyone could help me "C"
I have follow some videos on youtube like to make a game in C from scratch.. all fine until I get th...
[13 replies] Last: Hey I ain't mad at ya. Ask away no question is too simple if you're a... (by markyrocks)
Pointer length in C
Hello, Why output is 12? #include <stdio.h> int main() { int a = 5; int a2 = 6; ...
[16 replies] Last: VS only has the one compiler (cl). Whether it compiles as c or c++ dep... (by seeplus)
by eqis
Class fields
Hi, I'm trying to create a class with an object field. I want to create the object on the stack r...
[2 replies] Last: #include <iostream> using namespace std; class Test { private: ... (by Manga)
while loops, txt file and arrays
Hi I'm currently working on something for the future where I want to read through a comma separated ...
[11 replies] Last: Do you mean the: std::vector<double> row; for (double val; iss >> val... (by keskiverto)
Getting Results from the Set
Hi all, std::set<int> setx{ 100, 100 , 20}; for(auto &elem : setx) { cout<<"Print...
[3 replies] Last: @lastchance Thank you so much. It's working (by Shruthi LS)
no suitable conversion function from "std::basic_string <char, std::char_traits<char>,std::allocator<char>>"to "int" exists
My code is unfinished at the moment but the problem I'm having is the "name" of if(isspace(name .sub...
[3 replies] Last: Also note that passing vector<> by value (as here) causes an extra cop... (by seeplus)
Create an h file for binarySearch program
I've created a program that asked the user to enter a name if the name entered then computer says th...
[2 replies] Last: DON'T use include... in a header file. This WILL cause problems at som... (by seeplus)
I have some problem with my code about mode
This code supposed outputting the mode of the input, problem is, this code just outputting 0. Do you...
[2 replies] Last: if anyone want the answer, it's in line 13. I forgot to add a line. ... (by ChloroPhyte)
Need help creating a card game similar to Rock Paper Scissors but with different objectives
Hello, I seek assistance in creating this game it is similar to RPS(Rock,Paper,Scissors) but with di...
[4 replies] Last: I think Botched it up, didn't think this through. I was supposed to pr... (by Growthra)
Pages: 1... 12131415
  Archived months: [may2021]

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