Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~44.2K People Reached
Favorite Tags

80 Posted Topics

Member Avatar for Builder_1

I believe the integer length is holding the place of the vowel. I don't remember exactly how strtok works or what exactly does it return, but using it you will get the length of the word before the vowel for all of the vowels by using the while loop. So …

Member Avatar for Ancient Dragon
0
162
Member Avatar for Sh4dowz

well I'm using sfml atm to build a game similar to golden axe, and my friends are building a similar game to diablo which is a bit simpler since its an over view kind of a game(still looks better than diablo 1 and maybe even 2 ;) ). it takes …

Member Avatar for tuto.narahenpitiya
0
689
Member Avatar for Despairy

(netbeans latest, windows 7) So, from what I understood, once I start a servlet program the html page with a form in it loads and I can debug the program only when I click the Submit button at the end of the form. if the form is doPost then by …

Member Avatar for Despairy
0
204
Member Avatar for jorge.carmonajr

Here's an example of your mistake: Coordinate Coordinate::operator+(const Coordinate&) { return Coordinate(x + a.x , y + a.y, z + a.z); } Should be: ( **notice the "a" and the const** ) Coordinate Coordinate::operator+(const Coordinate & a)const { return Coordinate(x + a.x , y + a.y, z + a.z); } …

Member Avatar for jorge.carmonajr
0
203
Member Avatar for Despairy

Hi, I'm having a problem with the stop() and play() functions The first frame function works fine during the first run of the program but as i hit space in the last frame ( go back to frame 0 ) the first frame function saying whether to stop or play …

0
88
Member Avatar for subtoneweb

Make a more generic game. Instead of built in levels , use a class ( or just a function if you dont know classes yet) that will read from a file. Even better is to build another class that will randomly make the levels it will recieve the difficulty and …

Member Avatar for deceptikon
0
410
Member Avatar for Despairy

Hi , just started programming in MATLAB and I have a question. Image files can be written as RGB/GRAYSCALE/INDEXED and more types, from what I saw in MATLAB you can read an image by using `imread()` function the only difference is what it returns. [img,MAP] or img how do I …

Member Avatar for Taywin
0
146
Member Avatar for Memo143

Such a hero waiting for full 7 minutes. Please teach me how to be so patient . You know, I thought that if `char *` points somewhere it points to 1 byte and an `int *` points to 4 bytes, so I guess `Cout << ` is going to be …

Member Avatar for Schol-R-LEA
0
126
Member Avatar for anukavi

So you can do it by num(mod1) and as long as it's not 0 multiply by 10? Good luck on that !

Member Avatar for anukavi
0
101
Member Avatar for soujanya.bhat.184

Think of it this way: You have a base class named Button, that has a Virtual void Action() method. And lets they you have 3 derived classes: Enter, Space, Numpad, that are being held in a Button ButtonArr[3]. Each of the buttons has its own action. void Enter::Action(){ cout<< "Enter\n"; …

Member Avatar for Agni
1
199
Member Avatar for wanu
Member Avatar for slygoth

First option : Use global variables. That way, you can approach them from anywhere in the code. Second option : Call the display function with the number of arguments you want it to return and then use the "new" allocation of an array - The return value of the function …

Member Avatar for Despairy
0
203
Member Avatar for main()

Post your first code it should'nt be too different so according to your code a help will be given :)

Member Avatar for Despairy
0
112
Member Avatar for Tinnin

Don't have much time but if I am not mistaken template functions must be in the header. Try moving the the whole function from the CPP file to the H file. (if you still want seperate files try renaming the CPP to TPP) good luck

Member Avatar for Tinnin
0
11K
Member Avatar for Ankit.duke

I guess you dont understand what a SET is? you could use arrays to hold more than one value, and by your experience I guess that's enough. and you need to use functions to change the sets values. good luck

Member Avatar for Despairy
0
81
Member Avatar for Sasquadge

1) You should take a look at the Operators option in the C++ language. That way you can just write the FRACTION3=FRACTION1+FRACTION2; and not FRACTION3=FRACTION1.ADD(FRACTION2); just an advice. 2) Take a look at "THIS" , that way you can modify the class you are in instead of sending it as …

Member Avatar for Despairy
0
235
Member Avatar for FreddyGIraheta

What seems to be the problem officer? Compilation? Linking? Logic? Thanks.

Member Avatar for Despairy
0
220
Member Avatar for sarafuddin

http://www.cplusplus.com/doc/tutorial/structures/ and notice the "Repeat" at the bottom, **W** hic **H** means you- w **I** l **L**- ne **E** d some kind of a loop

Member Avatar for Despairy
0
178
Member Avatar for i3-540

First dont forget to close it `myfile.close()` if im not mistaken. and then as np complete said using the remove function posted in the msg

Member Avatar for i3-540
0
795
Member Avatar for Koji01

Add a boolean variable in the beginning of the program. `bool found=false;` ( or if you don't use booleans just use an int with 0 or 1 like your X variable) inside the while loop keep the strcmpi but like this `if(!strcmpi(yr,new_yr))` and change the boolean value to true and …

Member Avatar for Koji01
0
121
Member Avatar for mikesr

If you perform the command `char c=83` you will get that c is equal to 'S' edit: sorry didnt see the wstring :O only works on char

Member Avatar for mikesr
0
175
Member Avatar for siram1
Member Avatar for myk45

I would suggest the try catch method. just inserting all those function calls into one TRY statement and each could throw a different warning class to be caught on the outside that way instead of running all the function you could stop after the first error. but that depends on …

Member Avatar for myk45
0
205
Member Avatar for montjoile

Won't getch() do the trick? something like his while loop with getch as the first command everytime? or am i missing something? char charArray[50] int k=0 while(k<50) ---charArray[k]=getch() ---k++

Member Avatar for montjoile
0
464
Member Avatar for olusegun.oluwadamilola

Database class with Add function . Think i'd choose a map structure. and a person class to hold all the information needed. AND THATS IT you are done ! good luck

Member Avatar for np complete
-3
61
Member Avatar for Manojpandey96
Member Avatar for abrarsyed

rubber how is rebuilding the tree could be any better than just deleting the node? i thought deleting it in a non balanced tree would cost O(N) and from a balanced (RB tree for instance) would cost O(logN) whilst building a new tree is atleast NlogN or did i missunderstodd …

Member Avatar for Despairy
0
171
Member Avatar for samohtvii

Hey Walt, by saying C can pass a reference using a different syntax ,do you mean Pointers? just wanna make sure I didn't miss anything while studying ;) func(&val) and prototype : void func(T *val)

Member Avatar for deceptikon
0
305
Member Avatar for Despairy

hey, i need suggestions of programs to ease the access to usb devices like webcam in a c++ program im writing. this post is made because i already tried a few suggestions like videoocx and videocapX but unfortunately they arent compatible with windows 7 64 bit , or just cant …

0
112
Member Avatar for Manojpandey96

Post your hard work, I'll give you a hand finding the problem. but am I wrong to assume you have nothing to post?

Member Avatar for deceptikon
-1
101
Member Avatar for inthiran115

take another look of the if statement it only takes one command and whatever was declared in it is destroyed and gone, cant be approached from the outside of the scope. if you want all 3 commands to be performed together just add {} and if you want only the …

Member Avatar for Despairy
0
84
Member Avatar for sanghai45

DFS wont give u the shortest path because if node #1 connected to #end node it is one step but the DFS might go first to #2 ->#3-> ..... ->#end and this is the only path you will find try the BFS method , its easy to code . just …

Member Avatar for Despairy
0
167
Member Avatar for rfrapp

Not sure if it's just because I just woke up, but a few questions: 1. What is arr2 for? 2. Do you think the inner loop should really go all the way to the end? *i* don't :P maybe you could leave the inner loop out. make a boolean `boolArray[SIZE=60]` …

Member Avatar for RainbowMatrix
0
2K
Member Avatar for Despairy

I was thinking about somehow using a static member that all the matrix cells will be defined by their value + the static value. but than i thought how can i do it? what is the easiest way of doing so without the need to run over the 10^6 cells? …

Member Avatar for Despairy
0
298
Member Avatar for Despairy

Hey I just tried using the OpenCV for the past few hours but I keep on failing. I am a Windows 7 user with Visual Studio 2008. I followed the instructions for OpenCV2.2 (whilst downloading the newest stable version 2.4) did the CMAKE phase exactly the way it says . …

Member Avatar for DJSAN10
0
262
Member Avatar for Despairy

lets say I make a shortcut to a file that exists ln -s ex7 ex7_shortcut now I have a C program that checks and finds that ex7_shortcut is a symbolic link and changes it be placed at "currFolder/links/" ("currFolder/links/ex7_shortcut") 1) how (if possible) can i fix the symbolic link to …

0
94
Member Avatar for Despairy

been trying to google it for a while now but didnt help using the " "... anyway i need to do a recursive search inside a sub tree of the file system. given a folder A , I need to go through all of its sub folders. so far the …

Member Avatar for Despairy
0
129
Member Avatar for Despairy

Hi just had an assignment to make a nice looking html5/css website this is what i got so far https://dl.dropbox.com/u/67006557/EX2/home.html got any suggestions on stuff i can add to make it better? and also if anything is wrong with the html logic / css commands etc. tired of getting bad …

Member Avatar for dany12
0
102
Member Avatar for JE821
Member Avatar for AnnA.A

so you actually want the longest path? idea - make each "price" -1 ?

Member Avatar for Despairy
0
90
Member Avatar for nuclear

since the fields are protected you are able to change them in the derived classes, so not sure if I understand what you mean. anyway i think your inheritance tree should look abit different . first have a controller that will manage the game ( event handler display handler , …

Member Avatar for Despairy
0
195
Member Avatar for Despairy

I made a new project that has to open a folder using DIR * `DIR * directory=openDir(...); // openDir is a function returning DIR * after it was opened` than to make a new folder in it, so far so good `mkdir(path,permissions);` and now i have to run through the …

Member Avatar for Ancient Dragon
0
110
Member Avatar for DemiSheep

well there are a missing `ClosedHash::` before some of your functions try fixing that up , should clear a few errors ... ClosedHash::insert(....) {...} report back with your new errors good luck ^^

Member Avatar for Despairy
0
175
Member Avatar for Dasttann777

#include <ctype.h> #include<conio.h> have you added all of the includes he mentioned?

Member Avatar for m4ster_r0shi
0
169
Member Avatar for Ouss

for this you will could use a few methods. try reading about the following - function prototypes and implementation - math operands in c++( ill help you with this one) [Click Here](http://cpp-tutorial.cpp4u.com/basics_operations.html) - and the difference between INT / DOUBLE / etc once done think of a nice way to …

Member Avatar for Sendy Hipo
0
305
Member Avatar for arushi.05

well as for the "mathametical" question: if you have 5 rows it shows in c++ as 0-1-2-3-4 so you need to get the '2' row which can be done by just dividing by 2 (5 / 2 =2 - if you are using integers) another example if there are 3 …

Member Avatar for TrustyTony
0
171
Member Avatar for Dasttann777

i think you could use a std::map<std::string,std::string> _q; and you can insert any question as a key and the answer as the value http://www.cplusplus.com/reference/stl/map/ if i understood your needs... good luck :)

Member Avatar for m4ster_r0shi
0
161
Member Avatar for whileiforelse

what you can do is to seperate the program into functions. . . . int main(){ func(); other(); dothis(); } void func(){ //do your stuff } void other(){ //do your stuff } void dothis(){ //do your stuff } incase you dont know what functions are i suggest you skip to …

Member Avatar for whileiforelse
0
116
Member Avatar for arushi.05

O( n ) right waltP? just checking ;) arushi when you show us some work we'll help you with the best answer there is, and you will learn stuff - AWESOMEEEEEEEE

Member Avatar for Despairy
0
122
Member Avatar for Despairy

I have read a file with around 120k words so i try to do it fast. have seen the: int x = setvbuf(fp, (char *)NULL, _IOFBF, BSZ); assert( x == 0 && fp != NULL ); option but it takes more than a second ( 1 mb file) so now …

Member Avatar for Despairy
0
295

The End.