General C++ Programming - January 2015 (Page 10)

by Kubani
Fl::add_idle function
 
Hello all, For some reason I need to use of Fl::add_idle function. This site introduces it but doesn't offer an example of how to use it. http://www.fltk.org/d...
[4 replies] Last: OK. Thanks again. (by Kubani)
c++ input edit task,help
 
Hi i need to make program but dont know how i am using wxDev-c++ and i need to make. Tasks would include: use a class or struct variable, and create a progr...
[5 replies] Last: if you have any problem in understanding class you can post. (by anup30)
My App doesnt reply anthing after input
 
#include <iostream> using namespace std; class minion { minion(); ~minion(); public: int monsterPosition = 50; int monsterMovement; void monster...
[8 replies] Last: Show all your code, and indicate which files it's in And please use... (by MikeyBoy)
cricket scorecard
 
why is the following code not showing results? #include<iostream> #include<string.h> using namespace std; class scorecard{ char batname ; int runs...
[1 reply] : Your indentation is non-existent, making this code really hard to read... (by mutexe)
Google Password Recover Program
 
Do you always have to use adfly to make money off of visits? There are plenty other programs that do the same thing, that we know for sure are safe to use, so w...
[no replies]
Multiplication Table in a Void Function
 
Good Day guys, I wanted to make a multiplication table but it seems not that easy for a newbie like me. Mind taking your time and see what I am missing in my co...
[3 replies] Last: Since you don't need to do anything with the results after you create ... (by dhayden)
C++ Regex - how?
 
Hey, I want to use C++ regex library, to use it in my lil' CLI game. The aim is to create the template(not C++ template :)) for command(like "go north"). Then...
[8 replies] Last: Didn't know about string literal. Thanks for info :) (by MatthewRock)
whats wrong with this + op overloading code?
 
#include <iostream.h> #include <conio.h> #include <string.h> class complex { private: char a , b ; public: comple...
[3 replies] Last: thank you code777 :) and thanx for your suggestion mutexe (by monicpp)
copying a buffer from a specific location
 
Hi. I already wrote: strncpy(buff2, buff1 , strlen(buff1)-i ); but this function seem to just copy from the beginning of a buffer to another, not from the ith ...
[4 replies] Last: The buff is same as writing *( buff + i ) , which is different fro... (by keskiverto)
by wrymn
SDL Input class
 
Hi, How could I do Input static class in my custom SDL C++ game engine that I can use from any other class? Simple Example: if(Input::GetButtonDown(SDLK_...
[2 replies] Last: How about this one? http://www.sdltutorials.com/sdl-events Wow than... (by wrymn)
Unknown return type from variadic template list
 
Menu<T, Rest...> has type T for its options, while its submenus will have type U, where U is the first type in the pack Rest... The specialization Menu<T> has ...
[5 replies] Last: Something like this, perhaps: #include <utility> #include <typeindex... (by JLBorges)
Non-Static Objects [In progress]
 
Hi guys This will be a small post since I only received on error message: ...\C++\RunningMan\CPlayer.cpp|208|error: 'class CCamera' has no member named 'S...
[no replies]
Static Objects
 
Hi guys I'm trying to use a static object for save the positions of an array. Sorry, tomorrow I edit with more info PLEASE WAIT,Tomorrow I edit with more in...
[no replies]
Bubble and Selection Sort - Number of Comparisons and Exchanges
 
My program performs a bubble sort and selection sort on the same data. I have 3 different arrays (each one has a duplicate, so a total of 6 arrays). I need to s...
[no replies]
Static Objects
 
Hi guys This will be a small post since I only received on error message: ...\C++\RunningMan\CPlayer.cpp|208|error: 'class CCamera' has no member named 'S...
[2 replies] Last: Wow Its fixed thanks :)) (by HalfNOoB)
Reading and writing data from usb
 
Hi i am trying to make a project using arduino to control several power surces by time, i don't want to have an lcd, that would be easyer but i don't have en...
[1 reply] : What library are you using to talk to the Arduino from the PC? That wo... (by Computergeek01)
by Tili
Change from C++ to C
 
hello there my friends, I would like to know what i have to change to make this code run for C and not C++ which runs perfectly fine. Here is the code. Thank...
[14 replies] Last: I didn't know that C doesn't support bool b= true; Of course it doe... (by Cubbi)
by I14R10
WAV file reading wrong data
 
Hello I'm new here. I have been experimenting with a program that loads WAV file and tries to read 1s and 0s from audio file (binary coded information). So f...
[2 replies] Last: Well you certainly are right! I forgot to load 2 bytes. I now get righ... (by I14R10)
Help with variables.
 
Need help with initialization of a variable. I tried to initialize the frames variable but when I go to debug it, it just gives me 30 errors compared to the one...
[4 replies] Last: You initialise it by assigning it a value. As I said: Without seein... (by MikeyBoy)
CallBack
 
Why do we say function as Callback? what does a call back mean? in simple word .....please explain
[2 replies] Last: Just because I don't like that explanation from Stack Overflow, I'm go... (by Computergeek01)
January 2015 Pages: 1... 89101112... 24
  Archived months: [dec2014] [feb2015]

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