Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
72% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
~31.5K People Reached
Favorite Tags
c++ x 103
c x 2
Member Avatar for sillyboy

I usually listen to music while I'm browsing here, what are you listening to right now? EL-P - Fantastic Damage

Member Avatar for Helianthus
0
5K
Member Avatar for Kadence

How would one listen for keyboard input, without causing the program to pause waiting for the input? For instance say you have something like [CODE]float num = 0; bool runloop = true; for(int i=0; i<1000000 && runloop; i++{ n += some_time_consuming_transformation(i); // How to listen for input at this point? …

Member Avatar for mtbfreak
0
2K
Member Avatar for Dio1080

Binary Search tree help Can somebody explain to me what this code is doing step by step?, thanks [CODE=Java] TREE-SUCCESSOR(x) 1 if right[x] ≠ NIL 2 then return TREE-MINIMUM (right[x]) 3 y ← p[x] 4 while y ≠ NIL and x = right[y] 5 do x ← y 6 y …

Member Avatar for mailmarwa
0
255
Member Avatar for avi_2009

Hi Guys: I am trying to build a simple application to query a REST web service. I have developed a perl script and its working fine. I have also developed a java app which does the same thing. Just wondering if C++ can be used for it. I did not …

Member Avatar for mahatmagaga
0
170
Member Avatar for NordCoder

Hi Daniweb Community :), I'm working on an SDL/C++ project, using the VC++ IDE. There is too much code to put it on here, but I'll give you an outline: The program works, but there is one thing that doesn't. The resulting .exe file shuts down immediately when it is …

Member Avatar for NordCoder
-1
2K
Member Avatar for SeeTheLite

So basically I'm making a generic class for rational numbers, and I want to do automatic type conversions in comparisons and operations and constructors. How would I go about doing this? Google has only returned results for template functions rational.h [code=c++] #ifndef RATIONAL_H #define RATIONAL_H class rational { public: rational(); …

Member Avatar for SeeTheLite
0
83
Member Avatar for group256

Hi everyone, I'm trying to do my assignment, and in there, I'm supposed to use a nested class with which seems I'm facing a lot of difficulties. To make things easy to understand and debug, I made a small piece of code as follows: [CODE]class outter { public: int getID(); …

Member Avatar for Sky Diploma
0
142
Member Avatar for nova2177

i wrote a code which should accept only two values, but it seems to accept any values instead. can some show me where i went wrong. sorry about the long code, still a newbie at this. double hr::change_r(double sr) //implementation from class section { dr = sr; if(sr == 17) …

Member Avatar for nova2177
0
106
Member Avatar for SeeTheLite

The google references were a bit varied and ambiguos and my textbook ironically doesn't cover templates ._. if I were to make [code=c++]template <typename typ> class stk { public: stk(); ~stk(); private: struct STK { typ dat; STK *lnk; }; *chn; int ctr; }; [/code] do I have to do …

Member Avatar for SeeTheLite
0
95
Member Avatar for hardikvd

consider this: float a=3.145698,b; que: now how can I assign b=3.14 using 'a' instead of 3.145698. pls help me... thank you very much....

Member Avatar for mrnutty
0
87
Member Avatar for iamsmooth

Hey guys, I'm stuck on an assignment for school, was wondering if you could help me out. So I have a text file similar to this: [code] Joe Jim Hello Jim, Just wanted to say hello! -Jim EOF [/code] This is supposed to be like a message system. The first …

Member Avatar for iamsmooth
0
92
Member Avatar for xfreebornx

[code=cplusplus]#include <iostream> #include <cmath> using namespace std; int main() { int a, result, factorial(a); { cout << "please enter a number "; cin >> a; cout << factorial(a); } for(a=1; a>0; a--) { factorial *=a; } return 0; }[/code]

Member Avatar for mrnutty
0
111
Member Avatar for jarrax

My problem is this. I am making a script engine using lua 5.1.4 for a game engine. At some point I want my script to be able to create an event for example a InitializeEvent (there are other events) which will be done through calling this method: [code=cpp] int ParticleSubSystem::GetIniEvent(lua_State* …

Member Avatar for Lerner
0
87
Member Avatar for SeeTheLite

If I delete a pointer, does it delete the data in the current address or all of it? example: [code] bool *dat; dat=new bool; dat=true; ++dat; dat=false; delete dat; --dat; [/code] if I printed dat, would it return true or just a random address?

Member Avatar for kvprajapati
0
92
Member Avatar for yasaswyg
Re: HELP

Im stuck with my project. I have no idea how to begin this project. I need to write a function that shuffles say for example a deck of cards. which is represented by an array of 52 elements. Every element in the array is a structure for one card like …

Member Avatar for Hiroshe
0
179
Member Avatar for jake43

I don't understand why this program will not compile please help. This is what the program supposed to do. After the correct number is guessed or all five guesses are used and the correct number is not guessed, the user will see a message that shows the secret number and …

Member Avatar for SeeTheLite
0
96
Member Avatar for kz07

how can i modify my code so it can handle upper and lower case characters.. for this: cout << "(B)uy, (S)ell, (H)old or (Q)uit: "; cin >> ans; what should i add to the code? i added #include <cctype>.

Member Avatar for SeeTheLite
0
107
Member Avatar for spursfc

Hi, I wrote a program to read from one file and then process data and out put to another file, it all works okay but what I am wondering is that my source file will have a different name all the time, but it will always be the same file …

Member Avatar for SeeTheLite
0
88
Member Avatar for SeeTheLite

Alright so I have a header file that includes another class with a pointer to a structure as a private variable. Does my second header have to be a pointer too or can it be static? [code=c++] #ifndef EXAMPLE1_H #define EXAMPLE1_H struct ex { int blah; char meh; }; class …

Member Avatar for Ancient Dragon
0
62
Member Avatar for Ancient Dragon

[URL="http://www.youtube.com/watch?v=vGeyurkOlqI&eurl=http://www.fuckfrance.com/topic/3357171/1/Discussions/Does-anyone-here-actually-believe-in-evolution.html&feature=player_embedded"]Finally, a complete and accurate explaination of evolution.[/URL]:

Member Avatar for GrimJack
0
1K
Member Avatar for eowyn0622

Hi. I need to get a new PC. Mine is 5 years old and starting to show it's age - I can't play any good games. :-) So, I need a computer to play games (Civilization IV, fantasy RPG's, etc...) and just for regular home use. Checking email, writing letters, …

Member Avatar for MosaicFuneral
0
167
Member Avatar for waldchr

I am working on a fairly large project for my chemistry teacher (NOT homework!). I thought that it would be nice if the program could search a file for a user entered string and display all lines that had that string. I have gotten it as far as I can …

Member Avatar for waldchr
0
72
Member Avatar for TheFueley

Hello all, I am trying to make a linked list (class-based). I'm not sure if I went actually did it right. I get a compiler error on the segment of code that deals with printing the linked list to stdout. Here is the seqment in question. [code=cpp] // print contents …

Member Avatar for TheFueley
0
169
Member Avatar for mhaviv

I have a very simple program, a console application, that I wrote a long time ago under VS 2005 under XP. It worked perfectly OK. The program gets names and in the end prints them on the screen, until I do not enter a new name but only CR to …

Member Avatar for SeeTheLite
0
166
Member Avatar for moosoo

hi, where can i get all or most of the libraries for c++ and where do i place them?.....one more thing.....i have visual c++ how can i find out what libraries i already have...i dont see any library folder in the main folder....thanks

Member Avatar for SeeTheLite
0
67
Member Avatar for Carrots

Hi! I was hoping for some advice on how best to create a single doubly-linked list which could contain all of the different types of classes I have. This is the code I have written so far.... [B]shape.h:[/B] [code=C++] class Shape { public: Shape (int l=0, int h=0) : length(l), …

Member Avatar for Intrade
0
121
Member Avatar for devfolarin

i need help on some code im having trouble with its an x and o ai i havent finished the strategy function. im running a linux os and i need help with a segmentation fault also some help to make the code better would be appreciated //dtai-II //concept by temi …

Member Avatar for SeeTheLite
0
84
Member Avatar for RoselineM

can anyone help me with this output: ^^^^^#^^^^^ ^^^^###^^^^ ^^^#####^^^ ^^#######^^ ^#########^ ########### i have done the following so far & am struggling to continue: #include <iostream> using namespace std; //Function draw shape void displayRow(int sizeP) { for(int i = 1; sizeP - i + 1; i++) cout << '^'; …

Member Avatar for DangerDuke
0
123
Member Avatar for phalgun_g

hello everyone.. I have been given an assignment to do a mini project in my college using C.As such im in dire need of ideas for the same. I need ideas for programming games,innovative programs etc.. till date they have taught us C pointers structures & arrays.. So ill have …

Member Avatar for MosaicFuneral
0
157
Member Avatar for Barefootsanders

HI, I'm trying to write an application in C++ that has two things - a TCP server (listen server) as well as a TCP client where it can send to other TCP servers. I currently have both parts set up simultaneously. I did this by calling fork() and having the …

Member Avatar for Duoas
0
127