Beginners - June 2018 (Page 2)

How to loop data into an array
 
When the user enters a number of iterations I want to generate that many random numbers between 0-40...
[2 replies] Last: I actually managed to figure everything out because of this. Thank yo... (by passiontrip)
Passing same type object by reference?
 
Why is Constructor 2 invoked in CAT func(CAT someCat) ? (After my knowledge) I am not passing any...
[10 replies] Last: In some ways this is like the Miranda law. My paraphrasing: You hav... (by icy1)
need help with unfamiliar syntax syntax
 
so I've been reading SFML blueprints and I've come across a syntax unfamiliar to me, I understand ...
[5 replies] Last: Curiouser and curiouser! Thanks guys. (by tpb)
Adding a new empty .cpp file to a code base
 
The compiled exec gets a new 30 odd k boost in size. I've enabled all newbie debugging code ans gcc...
[11 replies] Last: I think I've seen somewhere ... found: https://www.centos.org/forums/v... (by keskiverto)
My game made by boredom
 
What about my mini-game has a lot of potential if you ask i built it in 10-15 minutes , i really had...
[5 replies] Last: case 'b' is not correctly entered after 'a' has already been previousl... (by Ganado)
by ATh
Rookie
 
Need suggestions. Recently, i completed reading and practicing C++ programming book thorough...
[1 reply] : If you still consider yourself a beginner, then don't get a job with c... (by Manga)
SDL2 timers
 
Not sure if this belongs in this forum, I apologize if it doesn't. I'm working with SDL2 and have...
[5 replies] Last: If you decide to use SDL_AddTimer just be aware that the callback func... (by Peter87)
by jcarbo
simple g++ makefile on Windows.
 
HI folks, I'm trying to figure out why my makefile doesn't work. I'm using GNU on Windows 7. Th...
[1 reply] : Recipe lines must start with a tab. You're missing the initial tab on ... (by tpb)
by mnai
If this isn't a nested function then what is it?
 
So i know in c++ you cannot right nested functions. But in this code ive been following GetGuess() i...
[1 reply] : Correct. A function can even call itself. That is recursion. Note: ... (by keskiverto)
Calling a function that was stored in an array
 
I have stored the name of some functions in an array, but now I need to use those functions. When th...
[6 replies] Last: Similar idea of same-signature method map, but feels like cleaner synt... (by icy1)
Issue with user input
 
All variables are declared properly. For the input for the webpage name, I cannot enter anything wi...
[3 replies] Last: For some reason, when I try what mbozzi said, it skips over the line. ... (by User55009)
accessing a object array
 
Hi everyone, part of my assignment requires me to 'unfriend' my overload << >> operator and use set/...
[4 replies] Last: at these point everything seems to be alright to me (please point out... (by icy1)
by bkara
how to open file from user inputted directory location (1,2)
 
Hello I have posted this question before but I didn't get much help(i think the person got confused ...
[30 replies] Last: My pleasure! (by H00G0)
2D/3D point Distance to origin Problem
 
Hello, I am trying to write a program that calls methods from a base class 2D point and uses these m...
[8 replies] Last: Or something like: template <size_t N> class Point { double data {... (by keskiverto)
c - square roots with arrays
 
I know it's dumb of me to ask, but how do I make a program that calculates the square of the element...
[8 replies] Last: Then just do square root (raĆ­z cuadrada), sqrt(). Your variable name ... (by Ganado)
by ysf007
How to create many binary file within a loop ?
 
This code was written, which take a directory then look for the files inside. it aims to create bina...
[6 replies] Last: The task is to loop through files like images in the dir the names ch... (by mbozzi)
by JayGln
convert struct to class
 
Good afternoon, I'm trying to switch this code from a struct to a class to get some practice in, ...
[9 replies] Last: less Java and more C++ and you'll be fine ;D (by icy1)
how to use sscanf_s
 
In the code below you will see I am trying to run a sscanf_s to extract data from a string line. I a...
[7 replies] Last: THANK YOU:) since i needed the trailing commas I just added another ... (by akarbarz)
by gdz98
the use of string methods (1,2)
 
hi guy I m doin some exercises from the "jumping into C++" bool and this chapter is about strings. t...
[21 replies] Last: ok guys the the biggest issue was my 18th line of code... once put "i=... (by gdz98)
OSX: Can't compile anymore
 
For some reason I am now unable to compile even a simple hello world, in my mac, using g++ (or clang...
[2 replies] Last: Um... do you understand what the problem was? Do you understand why w... (by MikeyBoy)
June 2018 Pages: 1234... 19
  Archived months: [may2018] [jul2018]

This is an archived page. To post a new message, go to the current page.