Beginners (Page 6)

Class constructor question.
If I use an initializer list to initialize most of my member variables, but I have one data member t...
[4 replies] Last: Furthermore, Foo::Foo( Bar x ) : foo( x ), // foo has now been comple... (by keskiverto)
by Garm
Calling function in switch case help
My program: It is a very basic calculator. you have to enter 2 numbers and then either type "a" for ...
[17 replies] Last: Oh I get it, it is a good way to make code more simple. (by Garm)
Need help exiting a while loop
Hello everyone, I am currently writing a code that is supposed to take the users miles driven and ga...
[2 replies] Last: I see, thank you so much! (by Ceadric)
Ascending Descending order from a file using stack
Hello everyone! I'm new here with the programming and I can't find a solution here. I need to read t...
[8 replies] Last: @icy1, Thanks for the tip. Not something I have used very often. @el... (by Handy Andy)
code doesn't execute correctly
Hi, everyone, I wrote a program for my intro C++ class question, but my code doesn't executing corre...
[5 replies] Last: keep at it; this is an excellent exercise! Strange that such limits h... (by icy1)
Code isn't executing correctly
I am writing a program that sells tickets for a theatre. I need to have the user enter the price for...
[6 replies] Last: Alright got it! Thanks for all your help and suggestions! (by Jorge626)
common paths in DAG
Hello everyone, my question is how to detect reconvergent paths in graph, i searched everywhere ...
[7 replies] Last: 1) i know its a silly question but how to print out all the paths sta... (by icy1)
by Thesar
Writing and Reading from file Templated List
I have a templated class with a list in it which the user will fill with either ints or doubles. The...
[3 replies] Last: Why not do this explicitly? Something like: template<typename T> vo... (by dhayden)
How could I improve this code?
(Editing in progress)
[6 replies] Last: Thank you, thank you everyone! :) (by caesarra2)
Weird error - What does it mean / how to fix?
I'm working on a lab for an introductory C++ course (we've learned strings, chars, cmath, if and if-...
[6 replies] Last: reseeding isnt always a mistake, sometimes you want to regenerate the... (by jonnin)
by AL88
Tic tac toe BOOL wrap around
Hi Im writing a tic tac toe board game for my programing book challenge but I cant get the bool to a...
[2 replies] Last: I had an enum Move in mine. The first player to go would be 'X', whet... (by icy1)
Dynamic memory tutorial does not work expected
The following code is pasted from the dynamic memory tutorial into a Win 10 Visual Studio 2017 Comm...
[2 replies] Last: Hello jecalderon, You should check into what the size is of the varia... (by Handy Andy)
C++ server based applications
I have just finished a C++ training course. I am not new to programming; however, C++ has taken me t...
[8 replies] Last: There's now Boost.Beast: See, for instance, the examples on this page:... (by mbozzi)
Tips on bringing down runtime for HashTable
Hello recently in my first OOP c++ class we learned about unordered sets / hashing and created a pro...
[2 replies] Last: The number one tip to optimise your code; measure it to see what's tak... (by Repeater)
Convert C source code into 16-bit 8086 assembly source code (for use with EMU8086)
Hi all Does anyone know if it is possible to convert C source code into 16-bit 8086 assembly code...
[3 replies] Last: Google sez try commandline option -a=filename I haven't used that com... (by jonnin)
getting a segmentation fault
The code compiles properly though when I run it it causes a segmentation fault. I don't know what I ...
[16 replies] Last: Hello alfie nsugh, My bad, I was thinking to far ahead of where I was... (by Handy Andy)
by Xorace
I seem to be getting errors..
I've been trying to understand what's wrong here, I've ever looked up examples of while loops, the s...
[3 replies] Last: however I still get the same errors. Could be an encoding error with... (by FurryGuy)
Measure the input time
Hey, Could you help me about that, how can I measure and write the time to the console, that the use...
[1 reply] : You can include ctime library and use the difftime() function by provi... (by shadabrana)
Retrieving data from another running application?
Let's say for example there's a game running on my PC; How could I access data from it, for exampe i...
[1 reply] : I'm not sure but it is possible if your game code sends a command line... (by shadabrana)
Something is wrong with code. cant seem to figue out please help.
Write your question here. so i wrote this code. you time amount of testcases and then the testcas...
[3 replies] Last: thanks both replies helped a lot. (by mishosaama)
Pages: 1... 45678... 41
  Archived months: [mar2018]

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