Beginners (Page 24)

by ericM
can I assume a template filed implements certain methods?
I wrote a class template that take a single template parameter, something like template <typen...
[2 replies] Last: Does your compiler complain? template <typename T> class Foo { T _... (by keskiverto)
Run Time Error
This is my 1st time working with C++ and Visual Studio. I know the drivers are not found as well as ...
[5 replies] Last: Thanks everyone. Much appreciated. (by grider67)
How to handle C-style Strings
Hi all, I seem to run across this a lot where old C code uses this shorthand style to create an arra...
[4 replies] Last: Yes, this does look more thematic. I've never used char** , so now I ... (by mainecat)
How can I use and emtpy 2-D array as a function argument?
What's up!.. Say, for example, I want to fill a 2D array with dots '.' to later print it as a tabl...
[9 replies] Last: [quote=tpb]It would be possible to write just one operator<< template ... (by FurryGuy)
Repeate code a set number of times (Urgent)
Is there a way to make this look more neat and tidy, in place of this mess? //Tree short led bli...
[5 replies] Last: I think I may look at them all, and in the doing trying to understand ... (by Eddy1501)
How to convert string to char* and pass it without it getting deleted on the stack
This code gives me the output: taco  ╠╠╠╠╠╠╠╠ How can I make the second co...
[14 replies] Last: Without knowing anything about g2, it sounds as though there's some ki... (by MikeyBoy)
Pokemon game project
Write your question here.
[2 replies] Last: Use a game engine for this project. If you really insist on just codi... (by Manga)
Run-Time Check Failure #3 - The variable 'GsiReturnObj' is being used without being initialized.
Write your question here. Cant figure this one out. What am I missing? Run-Time Check Failure #3 - T...
[8 replies] Last: Thanks tpb, that is very helpful! (by RslWlsn3)
by Dani90
find all possible permutation using backtracking algorithm
Hi..How do I write backtracking algorithm to find all possible permutation of different integer?
[3 replies] Last: Are you wanting to print out all possible permutations? That quickly ... (by Manga)
Good day I have a challenge in making my program to repeat its process #include <iostream> #in...
[4 replies] Last: add a case for an exit code, and change the loop logic to end if the u... (by jonnin)
clothing size project
This program asks for a users height, weight, and age, and based off of that, it creates a clothing ...
[1 reply] : > however, I don't get the complete decimal don't understand your issu... (by ne555)
custom operator / in my string
Hi there! I have a question, how I can do operator / correctly. Operator / its like * but reversed. ...
[1 reply] : You need to use bool: } String operator/(String kek) { //Operator '... (by coder777)
minimum time after which line segment connecting points P and Q does not intersect the sphere
Hello, This is my first post here. I am trying to solve a question You are given two points P a...
[2 replies] Last: @vandita, The logic that you are trying to implement is fine: this is... (by lastchance)
by nearc
skip line
How to print specific txt file line? I want void function to print selected line using switch. sry f...
[7 replies] Last: [quote=nearc]I'm getting errors no matching function call to max() and... (by Peter87)
Reading and Writing to a file.
I want to modify my program so that the program asks me to input the name of the file for input and ...
[1 reply] : Using files. (by Thomas1965)
by jamos
2 Player Battleships Game
Ok I'm a total scrub at C++ and need all the direction I can get. I'm tasked with creating a 2-pl...
[17 replies] Last: int main(){} //While Loop Here void initBoard(char board ){... (by hoogo)
Wrong calculation
I am writing a program that asks for the user's height, weight, and age, and then computes clothing ...
[2 replies] Last: There are return statements, one in each function. For example: dou... (by JLBorges)
Loop with a Y/N (continue/end)
I need to write a program that will ask for a # associated with a day of the week. once they select...
[3 replies] Last: I figured it out.. "choice" needed to be a char not an int. A few bro... (by justStarting)
Taking values out of a function to use it in another?
Hello , I am new to programming and i'm really stuck! Our teacher gave us a problem , i'm so close t...
[8 replies] Last: the standard hand-rolled algorithm for highest is just this simple loo... (by jonnin)
Invalid use of non static data member : Working With 2-D Char Arrays
I have to create a program to store information for a book store using class. I need to store names ...
[3 replies] Last: @adam2016, It gives me a "invalid use of non-static data member" error... (by tpb)
Pages: 1... 2223242526... 28
  Archived months: [may2018]

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