49,761 Topics

Member Avatar for
Member Avatar for steve2up

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. …

0
92
Member Avatar for ammameiya

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

Member Avatar for ammameiya
0
249
Member Avatar for M^2

heloo can anyone plz tell me how use functions like power and setw.... in programmes... thanku

Member Avatar for davids2004
0
125
Member Avatar for jtb19nh
Member Avatar for Superstar288

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 …

Member Avatar for seanhunt
0
89
Member Avatar for sweeya

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 …

Member Avatar for seanhunt
0
394
Member Avatar for Foe89

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 …

Member Avatar for Foe89
0
281
Member Avatar for clutchkiller

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 …

Member Avatar for clutchkiller
0
121
Member Avatar for bling_bling_vr6

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 …

Member Avatar for kitf84
0
3K
Member Avatar for mbayabo

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 …

Member Avatar for grumpier
0
116
Member Avatar for quocnam00

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 …

Member Avatar for Narue
0
178
Member Avatar for FTProtocol

Hey, Just wondering how i would go about connecting to a php file from a console based app. Any ideas would be greatly appreciated.

Member Avatar for FTProtocol
0
102
Member Avatar for karang

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

Member Avatar for cikara21
0
160
Member Avatar for clutchkiller

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 …

Member Avatar for cikara21
0
215
Member Avatar for mcsean2163

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 …

Member Avatar for Murtan
0
193
Member Avatar for MMac1218

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 …

Member Avatar for nmaillet
0
104
Member Avatar for karang

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 …

Member Avatar for karang
0
156
Member Avatar for svetlana6167

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 …

Member Avatar for ithelp
0
124
Member Avatar for soniagupta98

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 …

Member Avatar for ithelp
0
243
Member Avatar for bennoooo

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??

Member Avatar for ithelp
0
23
Member Avatar for luckystar89

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. …

Member Avatar for Salem
0
154
Member Avatar for koushal.vv

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.... …

0
86
Member Avatar for koushal.vv

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 , …

0
86
Member Avatar for syphon_hawk

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]

Member Avatar for syphon_hawk
0
180
Member Avatar for Dontais

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. …

Member Avatar for Dontais
0
106
Member Avatar for Lrddpy

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 …

Member Avatar for Lrddpy
0
227
Member Avatar for Trader09

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 …

Member Avatar for Trader09
0
214
Member Avatar for khatib009

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 …

Member Avatar for Ancient Dragon
0
107
Member Avatar for Samisam80

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 …

Member Avatar for Ancient Dragon
0
100
Member Avatar for cubathy

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 …

Member Avatar for cubathy
0
107

The End.