General C++ Programming (Page 6)

Assigning member values in destructors
Hey, I just stumbled over a piece of foreign code where they implemented an own ref counting syst...
[5 replies] Last: If it sets. If it does, then it hase own methods to catch invalidpoi... (by MiiNiPaa)
int vs. typecast
Code/IDE output below. The tutorial was extolling the virtues of using static_cast over integer assi...
[4 replies] Last: Textbook examples: const_cast : implementing non-const accessor in te... (by MiiNiPaa)
by mSkull
Subscript operator issues
Hi, I've made a class that inherits std::vector, to make it more like C#'s List. But the subscript...
[4 replies] Last: Thank you, that got it working (by mSkull)
I'm new to this website, so I'm not entirely sure if this is the right place to post this topic. ...
[4 replies] Last: Okay, Thank you, I will try that :) (by Boyancyoperated)
taking input from function argument and then console input
I observed an issue while setting a value into a char* through first as function argument and then f...
[3 replies] Last: If you place s1.setData("India") before getData, x will point to strin... (by MiiNiPaa)
wxWidgets: wxListCtrl column width
I'm learning the wxWidgets GUI library, and I'm having trouble getting the wxListCtrl column width a...
[3 replies] Last: You can do that after each request / for each column. The reason why i... (by coder777)
Priority queue
I was working through Dijkstra's Shortest Path algorithm in which priority queue is used. In that a ...
[2 replies] Last: Looks fine. Consider: template < bool MAXHEAP = false > struct edg... (by JLBorges)
by Dhust
Help me develop SysLibrary
Hello. I'm starting a small project for learning emulator programming and trying to dive deep in C++...
[no replies]
Can't find guide for OpenAL
Hello, Can anyone offer guidance on learning OpenAl? I've spent all day searching, and there real...
[1 reply] : Hi there, As far as I know, OpenAL is obsolete. The last stable versi... (by xismn)
keep newer copy MingGW
I need to know how to redirect my IDE (eclipse) to use a much more current version of MinGW. I also ...
[10 replies] Last: It does: I thought the "crazy" compiler was causing serious pc rot wit... (by technologist)
FMOD in Code::Blocks
hey i'm using Code::Blocks and i download FMOD library so i can play music and sound in my program. ...
[no replies]
by AldenB
How do I increment my Year type
I need to increment year in my add_day() function. Is there any way to do that without making a func...
[10 replies] Last: I see what you mean! I thought you meant write y++ into the add_day(),... (by AldenB)
Insert name into array
hello, i have A task which is following: Suppose NAME is an 8 elements array which stores five name...
[3 replies] Last: I would just make one array of 8 elements and fill it with all 6 names... (by AldenB)
by Nootor
string* Problem
I have a jar of biscuits and every biscuits are words. I have to put and take biscuits. The putting ...
[1 reply] : Where is Jar's constructor? What unknown value will be stored in the ... (by kevinkjt2000)
Read inside Network Card
Dear All, I would like to know if it's possible to read inside a Mac Card of a machine connecte...
[1 reply] : Please, do not double post. It clutters forums and spreads attempts to... (by MiiNiPaa)
by Winsu
I want to become a C++ developer;I need tips
I am an Industrial Electronic Engineer, I finished my degree doing a final proyect of a Algorithm to...
[10 replies] Last: I'm on that, I have three programms....what I'm wondering I fI would n... (by Winsu)
by AldenB
I need clarification on how class functions work
I'm getting this error when I compile this code. /*Error error C2440: 'initializing' : cannot conve...
[5 replies] Last: So if I changed add_day() to return a Date, it would compile? (by AldenB)
by aj3423
utf8mb4 encode/decode in c++
A third-part server echoes string to my client program, the string contains both utf8 data and unico...
[1 reply] : The reference you've read saying that UTF-8 sequences are 3 bytes or s... (by helios)
by yj1214
GUI/Multimedia library that supports flexible window set size function.
This is what normal set window size function looks like in most libraries... void setWindowSiz...
[3 replies] Last: Looking at the SFML source calling setPosition on your window goes dir... (by James2250)
Program to find GCD
Here's a program i wrote to find the greatest common divisor of two numbers. I was required by the t...
[4 replies] Last: #include <iostream> #include <vector> #include <algorithm> #include <... (by JLBorges)
Pages: 1... 45678... 31
  Archived months: [jun2015]

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