General C++ Programming (Page 12)

Make Template Class Return Template Type?
 
Hello there! Sorry if the title doesn't explain this well. But the code should explain it. So I ha...
[2 replies] Last: Yeah, ha, I'm trying to break away from C functions, but they've gotte... (by Spirrwell)
toggle keypress not continual output
 
i need to create a toggle switch and detect a keypress but not continually output to the console Up...
[no replies]
Vector as a data member in Class???
 
Hi, I'm wondering how to put a vector in a class as like a data member so I can add my own function...
[1 reply] : Looks right to me. (by doug4)
by stav
casting something from 1 byte to 8
 
When i build and run this program i get no errors: #include <stdio.h> #include <stdlib.h> struc...
[1 reply] : You do write into (and read from) memory that you have not allocated. ... (by keskiverto)
Help me for duplicate random number.
 
Hi, I am new here and Im looking for some help. I am trying to make my array without any duplicate n...
[1 reply] : I don't see a question. To respond to your statement "I am trying to ... (by SamuelAdams)
by Shades
Adding libraries, header paths to G++
 
I am trying to add SFML to my C++ projects. I am running Mac OS, Emacs for my editor and G++ as my c...
[1 reply] : Assuming that the file /Users/Me/Documents/Project/SFML/Graphics.hpp ... (by Repeater)
by orphic
a c++ prog that emails you whats written in it
 
huy guys i need to write a program in c++ that takes what somebody writes in it (command prompt) and...
[1 reply] : Just use getline to read the user input and store it in a string. To s... (by Thomas1965)
Inheritance. Not really sure were to start on this. Please help!
 
must create a program that includes user interaction and employs, Object Oriented Programming and In...
[2 replies] Last: Using inheritance is important although it might produce high complexi... (by benhart)
makefile problem with 2 Dirs, 3 header Files
 
I have 2 Dirs and 3 header files stored in them, as follows: Dir A : contains Header files A and C ...
[no replies]
Using boost::filesystem
 
Hi, I am trying to use boost::filesystem libraries for operations like copy directory, copy file, e...
[6 replies] Last: Do other parts of boost work? Maybe this helps? https://stackoverflow... (by Ganado)
by Dani95
find prime numbers in 2d array
 
Hi... How to find a prime numbers in 2d array and put the results in new array
[1 reply] : https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes (by kbw)
Problem with Switch statement
 
Can someone explain to me what is wrong with this switch and how I can go about fixing it? class ...
[5 replies] Last: https://blogs.msdn.microsoft.com/oldnewthing/20140116-00/?p=2063 Appa... (by lastchance)
Binary Memory Stream?
 
Hello there! So basically I'm looking for functionality akin to std::ifstream and std::ofstream, bu...
[2 replies] Last: Someone on this forum (I don't remember who) provided a way to use str... (by doug4)
Can't make the object collide with the walls in my maze game.
 
Can anyone tell me how do I make my object stop as it approaches the wall. It goes through the wall ...
[3 replies] Last: I tried Ganado's code, it didn't work for me. I think something is mis... (by SamuelAdams)
code Blocks: C++ - how can i use the directX?
 
using Code Blocks on C\C++, how can i use the directx? i belive that i need install some libraries,...
[4 replies] Last: so by defauld i have the API. i did find some tutorials, but incomplet... (by Cambalinho)
by NBL
Functions C++ - Error in the output of my code
 
I was assigned this question: A Class of 40 students has received their grades for 5 exams (each ou...
[3 replies] Last: You need to seed the random number generator. Otherwise, random_shuff... (by doug4)
by oahz
What is a garbage value?
 
int a {0} ; a , a[-1], etc... will all produce "garbage values". Firstly, why does the "garbage ...
[6 replies] Last: > int a {0} ; > a , a[-1], etc... will all produce "garbage values". ... (by JLBorges)
by Quro
Initialize members
 
Hi, I'm trying to learn C++ but am stuck on understanding the concept of initializing members. I don...
[6 replies] Last: Thank you (by Quro)
by oahz
What is "Narrowing"
 
Or what is "Narrowing Conversion"?
[3 replies] Last: because narrowing conversions are permitted in copy-initialization and... (by Cubbi)
Buffer Overflow
 
Hi guys just to begin with this is not for malicious purposes but I just find the concept of buffer ...
[15 replies] Last: its like sql injection -- the program fires up and executes normally u... (by jonnin)
Pages: 1... 1011121314... 20
  Archived months: [nov2017]

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