General C++ Programming - October 2010 (Page 20)

GUI
 
Hello everyone I want to create a GUI for my program to run on windows this program recieves three numeric values and computes them So i want to develop an i...
[3 replies] Last: thanks coder777 i will see how to get my hands on it (by yuhobebbho)
by Kyon
OGL linking
 
Hey, I'm back with another simple question about linking; what do I need to link to when using OpenGL (on Linux)? (I'm using Code::Blocks, and yes, I searched t...
[4 replies] Last: Just one thing; do I have to include any libraries (if so, which)? (by Kyon)
Username as directory name
 
CreateDirectory("c:\\u", NULL); cout << "Enter Username : " << endl; cin >> username; CreateDirectory("c:\\u\\"username"", NULL); Clearly that code does n...
[3 replies] Last: If I change that I will have to change It's the same thing. Jus... (by Disch)
myfile issue
 
Ok so maybe some of you were wondering what I was working on here is all of my code, #include <iostream> #include <cstdlib> #include <time.h> #include <wind...
[4 replies] Last: That works PERFECTLY. Thank you. You're fixing a lot of problems that ... (by LittleQuick)
Random Number Generation (Clock?)
 
The following code did not seem to work for me in Visual Studios C++ 2008. #include <iostream> #include <cstdlib> #include <time.h> int main() { time_t...
[2 replies] Last: WOW. Thank you hahaha. Can't believe I missed THAT. I usually notice d... (by LittleQuick)
How to fwrite a char array pointer?
 
I have a char array called: char buffer made up of characters read from a txt file using fread. Then I used strtok and strncmp to bubble-sort all the el...
[no replies]
Struct member change without reason
 
Hello everybody. I am having this problem: (Code) cout<<"D)x is "<<x->key<<endl; y->parent=x->parent; cout<<"E)x is "<<x->key<<endl; (Output) D...
[3 replies] Last: the only way that would make any sense would be if 'x' somehow pointed... (by Disch)
Quicksort Troubles
 
I am trying to make a function that uses the quicksort method of sorting. The thing I am having trouble with is returning two separate vectors while recurring t...
[4 replies] Last: How would I edit my code to work properly? At least to return properly... (by MottMan)
by saik
User defined datatype in STL
 
Please provide an example and explain how does a User defined data type work in STL. Thanks
[1 reply] : That really made no sense to my eyes, could you explain what you mean ... (by Kyon)
Matrix Program
 
Working on a C++ program for a M*N dimension Matrix. The elements can't be more than three digits-I got that down-.I have most of the code done but, I'm having ...
[1 reply] : Hi I used floor(log10())+1 to get the number of digits in each fiel... (by sbk)
child + parent objects
 
OK i really stuck on this project, as i been developing an game engine, which is mmorpg based like worldofwarcraft but now i need to come up with an cross pl...
[3 replies] Last: Hi thanks for you feedback, we do currently use QT but originally we ... (by dazzlecms)
Class Memory Allocation Size
 
Hello Friends, I have a question for allocation of memory to classes in C++ Pls have a look at the code - #include<iostream> #include<conio.h> ...
[9 replies] Last: Your code doesn't compile. I change this: //void (Foo::*fn)() f = &F... (by ne555)
Texture binding in OpenGL acting like a filter for every other pixel's colors
 
Hi, I was wondering if somebody ever had the same problem that I have with a texture binding. I am loading and binding a BMP file in an OpenGL texture. It wo...
[1 reply] : No clue, anybody ? (by teupoui)
Interpreter Errors !!!!
 
In my interpreter member functions are not declared in a class. I tried declaring them in a class but I do not know which data type to use. I've tried using v...
[12 replies] Last: Thanks a lot. =) Now I only have 1 error left in the code and it has s... (by shadow29014)
how to use metaCommand for vectors
 
Hi all, To manage arguments (input, output, parameters) I want to use the library <metaCommand>. For scalars (dimension 1), I use the function GetValue...
[no replies]
size of static data member
 
Hi, When I I tried to determine the size of static data member and found the size of class was 1. Could anyone explain the reason?. #include<iostream> usin...
[2 replies] Last: sizeof(sample) operator returns the size that an object of type sam... (by Bazzy)
what is keyword in C++?
 
Can you explain me what is keyword in C++? Is it a function? When I write a program like that, it works normally! int main() { int *p=new int ; del...
[3 replies] Last: new and delete are functions ( operators ) defined in <new> but th... (by Bazzy)
Difference between C++ and C# ?
 
I was talking to a teacher friend of mine who said that at the University in Newcastle NSW they are going to start teaching C sharp instead of C++ next year. I ...
[13 replies] Last: How are patents related to being cross-platform? Probably most of thos... (by xorebxebx)
by Andysh
Offline C++ Reference
 
Hi, everyone! I'm compiled reference part of this site in windows CHM format: http://www.megaupload.com/?d=D2HZJSOK Hope, someone find it useful :)
[no replies]
by Citis
if (a=1) , what does it mean?
 
My compiler doesn't warn me if I write if (a=1) instead of if (a==1) . Why? What does if (a=1) mean? Is it usable?
[7 replies] Last: shouldnt this be in the beginner forum??.....i am a noob at C++ and i ... (by sloebereu)
October 2010 Pages: 1... 181920212223
  Archived months: [sep2010] [nov2010]

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