Beginners (Page 2)

by yup2
Vector issues
 
I am having trouble doing the following: 1. Outputting information that has just been entered using ...
[3 replies] Last: Hello yup2, What I see is that the first three items use "Vec", you s... (by Handy Andy)
by Grime
Why doesn't class obj(); work?
 
Say you have a structure like so: struct bob { int var; bob() { cout << "You've been in...
[7 replies] Last: Well you have some nerve to tell me to be more specific. I provided a... (by Grime)
by jb03
I Need Help with the Display Function!
 
I am trying to read files then display them on the Display function. Can anyone please tell me what ...
[3 replies] Last: Ah thanks a lot mbozzi. (by Grime)
assignment grading project problem
 
This is what it's asking: Write a program that calculates and prints the total grade for n assig...
[18 replies] Last: I'm stubborn if I ask you to reason your "suggestion"? And stop using... (by Grime)
BG / FG Color
 
What is the color scheme for coding in C++? Like if I want a black background with green text, like ...
[1 reply] : https://stackoverflow.com/questions/9965710/how-to-change-text-and-bac... (by ArnoldLai)
Minimax algorithm: tic tac toe
 
I am trying to write an unbeatable ai for tic tac toe game. Everything else is fine but the ai is no...
[2 replies] Last: Ya i got the issues. the whole code was wrong. converting single playe... (by suyashsing234)
Quickly way to push_back 1 to n to std::vector
 
I want to push back 1 to n numbers to a single int vector. Could that be done in one line without lo...
[16 replies] Last: You're right Peter i didn't realise iota would be considered as vector... (by Grime)
Need Help
 
There are M students sitting in a circle and there ID is 1 to M.they started to play a game.Game goe...
[1 reply] : Well, a first possible step can be to try to write some pseudo-code to... (by Too Explosive)
Why does a pointer variable to a const char not store address ?
 
Why is the output "12345" and not the address at p since p is a pointer and by definition, pointer i...
[3 replies] Last: Thank you, @Ganado and @lastchance . (by Khateip)
Assigning pointers
 
Thanks
[3 replies] Last: No, you didn't set your pointers correctly. See my example. If you ar... (by dutch)
Setprecision is not working right ?
 
I hope I don't need to translate the whole code but the thing is for the first meters even tho I use...
[3 replies] Last: It needs to be done before you print the floating point number col, bu... (by dutch)
For loops are looping me.
 
If anyone remembers, I am the same person who said the way of teaching C++ in my country is outdated...
[1 reply] : #include <iostream> #include <iomanip> using namespace std; int mai... (by dutch)
by AL88
why doesn't my setw setfill bar graph work
 
why doesn't my setw setfill bar graph work on line 71-74 #include <iostream> #include <string...
[2 replies] Last: You only have to set the fill character once, and you probably want to... (by dutch)
Need help with this code.
 
Write a program that asks the user for a positive integer no greater than 15. The program should the...
[7 replies] Last: The only problem with your original program is that the cout << endl ... (by dhayden)
Sudoku square problem
 
Hello, i`ve made sudoku project. Problem is in the square. There have been two or three same numbers...
[4 replies] Last: You should always post your code in code tags: http://www.cplusplus.co... (by dutch)
by yup2
Vector using structure datatype
 
Im having an extremely hard time finding a solution to this, I've looked on youtube and google but h...
[3 replies] Last: My pleasure! glad to have helped! (by hoogo)
by opisop
Best way to retrieve multiple variables from nested objects for other object?
 
I want to reach into an object, which is nested in other objects, and retrieve data to easily pass t...
[7 replies] Last: > Here is a more detailed example, but it can only retrieve one house ... (by JLBorges)
Need help reversing a number (Can't get the right answer)
 
I don't get the right answer. I hope I don't need to translate the whole code in English. All I need...
[4 replies] Last: In your code, what is the starting value of Apverstas ? Is it meant ... (by Repeater)
Weird Symbols when outputting a char array
 
First off I know there are better ways to deal with strings but in my C++ class the professor wants ...
[9 replies] Last: to print reverse it, you might find strlen() useful. eg for(i = str... (by jonnin)
multiple errors of invalid conversion and previous declaration
 
In this there are conflicting declaration(declared more than once), cannot convert(int* to int)(doub...
[4 replies] Last: The biggest problem with your code is that your function prototypes do... (by AbstractionAnon)
Pages: 1234... 32
  Archived months: [nov2018]

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