Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~7K People Reached
Favorite Tags
Member Avatar for shankhs

can anybody suggest me whats wrong with the code?? [code] #include<iostream> #include<string> using namespace std; void rev_str(string str,int n) { while(str[n]!='\0') rev_str(str,++n); cout<<str[n-1]; } int main() { string str="shankhs"; rev_str(str,0); return 0; } [/code] thanks

Member Avatar for venugopal.somu
0
502
Member Avatar for hezechiel

I trying compile my program but it all time write error: stray '\32 ' in program , I have there some graphics instruction, I think its error with directx but Im not surre. If somebody want i can send him my source.

Member Avatar for nmepntgrm
0
1K
Member Avatar for Ancient Dragon

short program that will build a stl::list of directory names and all the files they contain. recursively calls itself when a new directory is encountered. This has been compiled with both VC++ 6.0 and Dev-Shed compiles on MS-Windows XP Pro. It will not work on *nix or probably MAC computers. …

Member Avatar for ll_MORTAL_ll
0
845
Member Avatar for happygeek

According to the UK government, new proposals within the [URL="http://www.commonsleader.gov.uk/output/page2461.asp"]Communications Data Bill[/URL] are being put forward in order to prevent and detect crime as well as protect national security. The government argues that unless legislation is amended to reflect changes in technology, the ability of public authorities to counter criminal …

Member Avatar for Cybulski
0
353
Member Avatar for khess

The New York Stock Exchange (NYSE) and many other financial institutions run their most critical services and applications on Linux. The NYSE specifically uses RedHat Enterprise Linux because of its stability and support. Linux is the most-chosen operating system in the U.K, France, Germany, and other European countries due to …

Member Avatar for MattEvans
0
256
Member Avatar for Thew

Hello, I need help in my application development. I'm actualy working on editor for simple 3D App, and I need to add window for rendering 3D content into the editor. But as many of you know, 3D apps have the while loop keep rendering. So if I create main editor …

Member Avatar for TacklesMcCaw
0
141
Member Avatar for Cybulski

I'm trying to implement critical section using objects listed in this article: [url]http://www.mycplus.com/tutorial.asp?TID=290[/url] Somehow, it doesn't work like intended, or maybe I do something wrong. Basically my concept looks like this: [code=cplusplus] DirectoryReader::DirectoryReader(char* p_sConfigPath) { GetConfig(p_sConfigPath); if( hReaderMutex = CreateMutex( NULL, FALSE, "ReaderMutex") ) cout << "Mutex created!" << endl; …

Member Avatar for Ancient Dragon
0
561
Member Avatar for niitian

hello everyone. i need a bit of help in this project of mine which is due in 2 weeks.. here's what needs to be done, but i have no idea about the logic:( if somebody can help me with the pseudocode or algorithm, i could write the code maself.. [B]Write …

Member Avatar for Nick Evan
0
157
Member Avatar for rpamballa

Can someone go through the following code whic generates shortest path for randomly generated processes. My code is generating a segmentation error when I run it, and I am unable to locate the bug. //This program implements the O(n) algorithm for finding shortest path for randomly generated processing times [code=cplusplus] …

Member Avatar for Cybulski
0
169
Member Avatar for Cybulski

I'm trying to call this function requested times. All functions and variables are members of one class, access is public. So, I'm calling like this: [code] void MultiReader::CreateThreads() { unsigned int nThreadNo; for( nThreadNo = 0; nThreadNo < vDirectories.size(); nThreadNo++) { CreateThread( NULL, 0, &MultiReader::ReaderThread, vDirectories.at(nThreadNo).sDirectoryName, 0, NULL); } } …

Member Avatar for Cybulski
0
832
Member Avatar for zoner7

I've got a pretty simple question. I'm trying to ask the player for to choose a difficulty. I want the case to be to not affect his choice, so I am using the toupper() function. Unfortunately, when I try to return the value of the difficulty, no matter what difficulty …

Member Avatar for Cybulski
0
226
Member Avatar for yap

Hello I have older c functions which I want invoke in new cpp program: [code=cpp] // Example of old c function void c_function(int** x, int r, int c) { int i, j; for (i = 0; i < r; i++) { for (j=0; j<c;i++) printf("%i ", *(*(x+i)+j)); printf("\n"); } } …

Member Avatar for yap
0
275
Member Avatar for brk235

Hi friends how to generate random numbers in between 0 to 1. I need to generate around 100 random numbers in between 0 to 1..please help me.. Thanks,

Member Avatar for William Hemsworth
0
115
Member Avatar for zawpai

Hi, I get some problems when I run the following codes. #include<iostream.h> class Distance { protected: int feet; float inches; public: Distance() { feet = 0; inches = 0; } Distance(int ft, float in) { feet = ft; inches = in; } void get_dist() { cout << "\n Enter feet …

Member Avatar for Nick Evan
0
217
Member Avatar for Cybulski

I want recursively fill members of one structure, it looks like this: [code=cplusplsus] struct OPTIONS{ string sDirectoryName; vector<string> vExtensions; int uOperationId; } structCurrentDir; [/code] after filling all members I need to push this structure to another vector: [icode]vDirectories.push_back(structCurrentDir); [/icode] But then I need reset all members and I have problem. …

Member Avatar for Duoas
0
101
Member Avatar for Cybulski

I'm trying to pass string as filename. I wonder if there is some smart function checking every character of string if it's alphanumeric, or belongs to group of few other character specified? Loop on every string character seems not very efficient for this. Any ideas?

Member Avatar for n1337
0
130
Member Avatar for Lukezzz

I want to delete a Folder that consist of .txt Files. I am trying with this code below but the member :: Delete says that it only can emty an emty folder but this folder contains .txt files. So I wonder what other technique could be used ? [code] System::IO::Directory::Delete( …

Member Avatar for Lukezzz
0
203
Member Avatar for Cybulski

I'm starting writing class that should read configuration file and initialize some members with data from file. I decided to read this file in constructor. What should constructor do, if something goes wrong, and further construction of object have no sense? For now it displays message: [code] MultiReader::MultiReader(const char* m_sPath) …

Member Avatar for Cybulski
0
95
Member Avatar for WondererAbu
Member Avatar for Cybulski
0
149
Member Avatar for Cybulski

Hello everyone. Welcome to my first post. I have problem, it didn't brough me here, but maybe someone figure it out, I'm staring at this piece of code for hour. I'm trying to make directory listing class. It puts filenames and directories to vectors. It's not finished, yet not working …

Member Avatar for mitrmkar
0
344
Member Avatar for picass0

my string contain "hello baby" and i wanted to find the position of the character 'l' which falls in pos 2 and 3. Using string.find("l") return me the position of first "l" found. How can i do a loop to find the position of my next character 'l' in the …

Member Avatar for Radical Edward
0
75
Member Avatar for shotjase

i am trying to implement a database of books and i am have to use linked lists and possibly dynamic arrays for the first time so i am a bit confused..i just wanted to know if this is how i should b going about my constructors and if theres anything …

Member Avatar for Cybulski
0
110