Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested C++ Solutions: 76 - 100 of 7050
 
I'm having some problems with my application and maybe I just need to re-design it, but maybe there is a known approach for handling this situation. In some older programs of mine, I just had ...
is there anybody out there who can help me with this convertion thing in c/c++. example ascii = 164    to    char = ñ algo: 1. get a character from keyboard (using getch() which ret...
I need to benchmark some of my function to see how long it takes for them to run. is it possible to do this? time = gettime() cou << gettime() - time ;
I am trying to learn how to use CPP maps while writing a program that parses commandline arguments. I need an associative array style container so I am trying a map.  The following is the d...
Hi Experts, I have the following class and sub-classes: class Basket { public: private:    // Sub Class    class Fruit    {       public:        // Constructor        Fruit(ve...
Hey, i am doing one program, and i cant make program to take word from sentence. I am doing like that : if (s[i]= ' ' )     {     s1 =  s.substr(0, i);     cout << s1 << "\n" ;     } ...
Hi All: I have to implement a circular queue of integers of user-specified size using a simple array. Provide routines to initialize(), enqueue() and dequeue() the queue. Please suggest ide...
After rebuilding my development computer as XP Pro (instead of Win2k) using Visual C++ 6.0 with the Microsoft C++ 2005 Redistributable installed,  I'm trying to recompile code that always used...
I have an XML data file that I wish to read and have access to its DOM, ie parse it. What is the simplest way to do this? I want to pull out the attribute and leaf node values so as to assign ...
I need to perform serial port communications in a program developed in C++. The solutions should provide functions or methods to configure, open, read from, write to and close the serial po...
I have a table name which is of type RTString that I want to check if is empty or not. I know for instance that the String is empty because  ("print me[%s]", (char*) sourceTable); returns ...
I'm developing a Windows 32 bit console application in Microsoft C++, but keep receiving build errors whenever I attempt to use the "gotoxy()" function to set the cursor's position on the scre...
Hi, I am creating a program (console application) which prompts a user to enter their account number (same as file name), then the program checks to see if the file exists.  If the file exi...
I have a friend in another country. She has sent me a program, which she has written in Turbo C++ 2.0. She wants me to make some corrections. For years, I have not worked on Turbo C++. But I w...
How does the following code work: cout << ((value & bits[i]) ? "1" : "0"); I wanted to instead of printing "1" or "0" i wanted to add it to a string.
Hi experts, I'm lookiing for a function that allow me to insert delays in Microseconds. I tried Sleep but it's not possible. i didn't test yet the clock() function to do that. thanks in ad...
hi - new to unix dev, i have this working in windows since you can specifiy handles to stdin and stdout when calling CreateProcess API.  In unix i see there is popen, but its only one way.  I ...
Hello experts, in my C++ program (MFC)  I need to get a substring of a CString.    CString strCString;    CString strSubString;    In VB I can write ( I start looking for "A=" from pos...
hi i would like to read a line with whitespaces in it in C++ e.g. Enter the brands : honda toyota siemens omoron mcdonalds kfc if i would use getline to read the line with '\n' as delim...
I would like to know how to create and delete a directory that will work under the unix environment. I can create a directory using c++ but this only works under a windows environment. I ha...
if i have CString a="a;b;c;d;f" and i want to split it to CString array. how can i do it on VC++ NET ?
Hi Guys,   I have a variable: unsigned char *pucBuffer after assigned a value to it, I want to pass pucBuffer to a function, which expecting a string parameter: void function(string ...
I need a set of functions that are able to convert UTF-8 to UTF-16 and UTF-16 to UTF-8. I'm finishing up with an XML parser and have had nothing but problems when trying to write my own functi...
Hi, I would like to know if there is a better method to read from stdin than the current one I have. This is what I currently use: But the problem is, some very long strings seems ...
I need a C++ exit command similar to the java      System.exit(1); I have some void functions which are part of a class object that I want to terminate.