Beginners - August 2011 (Page 23)

by micha
compare char with hexadecimal
 
char c; c = 0xf0; if (c == 0xf0) { do something } The program not enter the if statement. It works when i use unsigned char instead of char....
[5 replies] Last: Maybe you could try char c = '\xf0'; if (c == '\xf0') { do someth... (by andywestken)
Where To Start Learning C++
 
I am in 8th grade and I really want to start programming C++ on Xcode (I have a Mac) so that I can make my very own iPhone apps. I have looked all over and I wa...
[4 replies] Last: Thanks! I'll try objective c then. Does anyone have any good ways to l... (by chiapuz)
Friend functions
 
I have been studying classes of late and came to know about friend functions which are a way to access private data members of a class..... My question is that...
[6 replies] Last: Disclaimer: novice here The book I'm working out of details situation... (by alhypo)
by zoe
Menu Problems
 
So this is my first time, and I need someone to please solve the problem for me. This is my program. When I ask it to enter on the home menu, it takes me back t...
[1 reply] : First please always surround your code in the tags -- you'll find ... (by kooth)
Prevent console from exiting
 
I am trying to do console application, that only exits, when user press 'x' ( close ) button, because I want it get working for all the time, until it closes :D...
[15 replies] Last: Thanks for the tip. I am a little new so I do not know much :) I will ... (by TheMassiveChipmunk)
what's wrong with this
 
Need to change the int to char? cpp file void Card::swap ( int &a, int &b ) { int temp = a; a = b; b = temp; } void Card::shuffle() { srand(time(...
[2 replies] Last: changed the int in swap function to CardType. compile success. Thanks ... (by kacaubird)
compile
 
I have some question , if i wish to complie example sin into my c++ file under include what is the code for sine? and where can i find them for the codding?
[5 replies] Last: hahas i still have no idea how to start the first line >.< (by Frozendog11)
Problem Compiling Multiple Files
 
I am trying to compile a .cpp file and a .h file in one project. Whenever I try to build the project in Code::Blocks, I get an error saying "invalid preprocessi...
[6 replies] Last: [code firstline=17] void draw_paddle(){ rectfill(bu... (by ne555)
Backpropagation c++ code
 
main() { OutputTrain = fopen("OUTTRAIN.txt", "w"); // buka paparan data output sasaran printtime (); // 30-08-2008 struct time t; gettime(...
[2 replies] Last: See http://stackoverflow.com/questions/275004/c-timer-function-to-prov... (by David Ruhmann)
by nidal
a way for socket programming in Windows
 
Hi, I began 1 week ago to learn programming with C++. I am writing my MasterThesis and should make a Socket-programm on windows. I am using the "VC++ 2005 Ex...
[2 replies] Last: http://www.madwizard.org/programming/tutorials/netcpp/1 This page I f... (by ModShop)
error LNK2019: unresolved external symbol
 
When i compile my code on visual studio using platform x64 i get the following output : which shows successful. But when i change the platform to win32 it giv...
[1 reply] : Make sure that the entire code is newly build (like deleting all *.obj... (by coder777)
by codrgi
where to download this library?
 
im looking to download the lzf_compress library from http://oldhome.schmorp.de/marc/liblzf.html i noticed it is only for c, where can i get this library for c++...
[1 reply] : If it's for C you can use it for C++ as well (by coder777)
by skn
I'd like to have this code criticized please (1,2)
 
This was a simple program I wrote to allow me to decide between multiple choices and also give it a personal touch. I'd like to know if I have some bad habit...
[21 replies] Last: Are you sure you didn't confuse this thread with some other ? OP didn... (by hamsterman)
need help with for loop problem
 
Hi Im trying to use a 'for loop' in order to create a program where the user inputs 'N' amount of gold coins e.g: 50 and that also becomes the amount of ite...
[5 replies] Last: Ah sorry forgot about the condition that there is a limit to how many ... (by drunken meerkat)
error in for loop..
 
I am getting the following error timeseries.cpp: In constructor ‘NEAT::Timeseries::Timeseries()’: timeseries.cpp:88:72: error: expected primary-expressio...
[2 replies] Last: makes sense. thanks :) (by ausairman)
C++ Beginner looking for some constructive criticism
 
Deleted code... please delete topic
[1 reply] : Deleted code.... (by Cuddlebuddie928)
Clear Input Stream
 
I know that this question has been asked and answered a million times, but I'm just not handling it correctly. I need to solicit a user response, execute a bun...
[4 replies] Last: That seems to work Thanks as always! (by joatmon)
Virtual problems
 
I'm having trouble with my virtual function, but I'm doing the same thing as my professor did in our video lecture. I get these errors: error C2352: 'Characte...
[8 replies] Last: I did change the 8s to something else, more for a different output tha... (by shiyongseng)
GUI programming
 
Hey all. I was wondering how much harder is GUI programming compared to console programming? Also, when is it a good time to make the jump to the GUI?
[4 replies] Last: For C++ GUI we need to pick a GUI library to use. But most of them has... (by sohguanh)
what is wrong with this code?
 
#include <iostream> using namespace std; int convert(int number); int main(int number) { convert(number); cout << "the number is "<< number; ...
[11 replies] Last: This is the simplest as it can be: #include <iostream> using namespa... (by happykiller)
August 2011 Pages: 1... 2122232425... 39
  Archived months: [jul2011] [sep2011]

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