49,761 Topics
| |
Hi everyone, I am a U.student from China, I would like ask a question about my assignment. For the directed graph, I would like to perform topological sort for sorting up nodes, but I encountered some problem in queue which is able to be removed or added with certain elements. … | |
does anyone knows how to conver from LPTSTR to std::string or std::wstring ? example : i want to convert f_path to abc ang def... [CODE] LPTSTR f_path; std::string abc; std::wstring def; [/CODE] thanks in advance | |
heloo can anyone plz tell me how use functions like power and setw.... in programmes... thanku | |
does anyone know the numeric value for wm_maximize? | |
hey i have to make a program using win32 c++ and i need to get my hands on some information from the registry which i cannot find. the problem is i need to find information about the graphic card the pc is using and this software has 2 be ported … | |
Hi i have written a code for concatenation of two strings by overloading the string operator. The program works fine but i don't understand the sequence of steps happening. [code][Use language = C++] #include <iostream> using namespace std; class String { int len; char *p; public: String () { cout … | |
I've got executable code that is partially working, so i know i've done something wrong in it. In it you type in the rainfall for each month in inches and will display the total, average, largest and smallest rainfalls(with the month). I have the the total, average and largest(except the … | |
I just wanted to make sure i am interperating code correctly when i write or read it when it comes to fstream. when you say ofstream example; your basically making a keyword "example" to call different functions. aka example.open() or .close. but, if i used example as the out put … | |
Hello, I need some help filling an array with UNIQUE random numbers. So far I've figured out how to fill an array with random numbers, that's easy, but I'm stuck on how to avoid filling it with duplicate values. I'm assuming that i'll have to use either a linear or … | |
this is a similar example to what i have. it's simplified but it still get's the same error. i need to be able to use << operator to print out all information from class A. i have no idea how to do that. i tried casting it as an A … | |
Hello every one, I got a interview and 1 of interviewer ask me that Howmany byte is a pointer? I can not answer this question. seem it is trick question. All I know is pointer is an address location where the pointer point to. Anyone get input to make it … | |
Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated. | |
Hi I have include a header file in my main file. That header file contains the function getPath But still I am getting this error error C3861: 'getPath': identifier not found Even I have written the prototype of the function. Regards Karan | |
Hi guys, im still learning some programming, and am confused on the subject of file i/o. I am getting this error but cant figure out why. Any help is appreciated, thanks Keep in mind i have obviously not finished the case scenarios. In function `int main()': error: jump to case … | |
Hi everybody, I'm used to C++ OOP principles but I've never really understood dll's very well. I'm working on a code segment as shown below. It's a dll function. What I need to know is can I compile it directly or do I need to do something special? I'm using … | |
I cant get the output to display the average, high, and low. Any hints? [code] /* Write a program that prompts the user for test scores (doubles). The user enters -1 to stop the entry. After all of the test scores have been entered, calculate the average, the highest and … | |
Hi I am trying to use MSXML. But I am getting error in that so I explored internet and found one useful articles regarding the installation of MSXML [url]http://msdn.microsoft.com/en-us/library/ms758753(VS.85).aspx[/url] This article is about "Include Headers and Libraries Manually" But as per the instruction given in this article I have to … | |
1. printf("%d", 10*5/10); what is this result? 2. printf("%d", 10+5-5); what is this result? 3. a=d++ +(b=a); a=4,b=4,d=4 a=? 4. c=a+ a++ - b--; a=4,b=4 c=? 5. c=a+ ++a - b--; a=4,b=5 c=? 6. if(a==0 && b==0) printf("1); else if(a==0 && b==0) printf("2"); else printf("3"); (if a=1 and b=0) what … | |
Hello Everyone Can any one help me out in this code Write a program in C++ that will send text strings to the server in different functional modes. Server will respond back with the appropriate text string or integer depending upon the mode. Client displays these responses on stdio, and … | |
Help!! i need to use motion sensor to move the mouse cursor...but first i must use C++ to do out a programme that can move the mouse cursor first...i only left 2 week..can anyone please help me?? | |
draw a right angle triangle with 3 sides 3, 4, 5, and vertices A, B, and C. And prints the description next to that as follows: (Note: it is OK that the characters are not printed out in the right positions at this time as long as they are printed. … | |
Hi All, i am using MSFlexGrid in my project , i have added the click event for the Grid. Basic operation of grid is when ever any one clicks on any of the cell i will create a combo box below the grid or display the current time or etc.... … | |
Hi All, I have added context menu for my tree view control, i have enabled the context menu only for right click , Can any one tell me how to generate the context menu by key board. Open any browser, when the keyboard key for context menu is pressed , … | |
I need help with errors I am getting with my program that is suppose to take in lines of text and out put the number of letters to the user. I have a lot these errors [QUOTE]expected primary-expression before ' ' token[/QUOTE] | |
When I compile the program it returns "error C2065: 'answer' : undeclared identifier". I thought answer was declared from the function and would call answer. Any tips where I'm going wrong on this. The program is made to out put Radius, cosx(x), and a user defined cosx in 3 rows. … | |
Hi So I've been developing this game for a game design class for most of the semester. While I'm not new to C++ and Object Oriented Design, the theory of it is often a lot easier to comprehend and know than the actual application of it. Needless to say, I've … | |
For future reference here are the instructions for my assignment. Thank you in advance for any feedback you can provide: Implement the Message class using a header and implementation file named Message.h and Message.cpp respectively. In addition to the two Message class files, you must write a driver. The driver … | |
I am having a serious problem with a assignment i must do, this is the final assignment and the person that used to help me is not helping me anymore, i need to recieve a good grade on this assignment, and i dont know how i can because i dont … | |
Write a program that will do the following: 1. Define a function that will read from a file text paragraph convert the whole paragraph into capital letters and print it on the screen after conversion. 2. Define a function that will count and return number of vowels in the above … | |
Hi everyone. Getting compile errors with the following code that i can not figure out...: [code] template <class T> class X{ class Y{ public: Y(); }; X(); }; template <class T> typename X<T>::Y * operator[](X<T> * obj1, int index); [/code] The compile error from mingw is: [code] test.h:18: error: 'typename … |
The End.