15,300 Posted Topics

Member Avatar for aaabhish

>>what is size_t . is it something predefined datatype. Yes -- most compiler define it as either [b]long[/b] or [b]unsigned long[/b]. But compilers are free to define it however it wants, uncluding [b]long long[/b]

Member Avatar for Ancient Dragon
0
113
Member Avatar for bitRAKE

line 29: [b]byte[/b] is a reserved word that means [b]one byte[/b] and you are attepting to add a 16-bit register value to it. You will probably have to use a different general register to do it [code] mov edx,esi add byte[eax], dl [/code] But when you do that you might …

Member Avatar for bitRAKE
1
8K
Member Avatar for ganbree

If you create a windows project (as opposed to a console program) just remove the winmain() that the IDE created and put it in the library. That's all there is to it. I assume you downloaded the Windows Platform SDK and installed it according to the instructions on M$ site. …

Member Avatar for vijayan121
0
1K
Member Avatar for carlarolan

header files are somewhat like books -- they contain information about a specific topic. For example [b]stdio.h[/b] contains information about files and the functions needed to create, read or write to them. As with a book library there are thousands of header files which are normally placed in a commin …

Member Avatar for carlarolan
0
113
Member Avatar for boyz
Member Avatar for picass0
Member Avatar for boyz

[URL="http://www.codeproject.com/threads/enumprocnt5.asp"]Here [/URL]is how to get a list of processes in MS-Windows. Don't know how to get the rest of the info you need.

Member Avatar for Ancient Dragon
0
71
Member Avatar for vigneshvh

>>i am a new viciter of this site lier -- you already have 31 posts. :) [b]Visual C++[/b] is a compiler, not a language. >>in what way it will be different from each ther in oth program None. VC++ is just the name of a compiler that will compiler normal …

Member Avatar for s69265
0
135
Member Avatar for loimarie

did you try [URL="http://www.google.com/search?hl=en&q=mouse+interrupts"]google[/URL] ?

Member Avatar for Salem
0
142
Member Avatar for towhoe260

line 21: [b]meters[/b] is a double, [b]getmeters[/b] is a function. you can not assign a function to a double. But what you can do is assign the return value of the function to a double like this: [icode]meters=getmeters();[/icode] line 22: delete that line because it has wrong parameters (see function …

Member Avatar for WaltP
0
752
Member Avatar for towhoe260

what are the error messages ? My guess is that you failed to prototype the functions before using them. You need to add function declarations near the top of your program, such as about line 7.

Member Avatar for WaltP
0
202
Member Avatar for jray344

That's not hard to do, but you have to be very careful of getting stack overflow errors. And that's pretty each to do with recursive functions. >>I'm stumped again Do you know what a recursive function is? If not then read about them in your text book. Its simply a …

Member Avatar for Ancient Dragon
0
117
Member Avatar for Kishor.hegde

>>tell the code quickly Not until after you have posted your attempt to solve the problem.

Member Avatar for carlarolan
0
151
Member Avatar for vigneshvh

develop it with a GUI, and there are lots of ways to do that. Some depend on the operating system while others are independent of the operating system. You can get free ones and you can pay several thousand $$ for others. But if you are new to c++ (such …

Member Avatar for Ancient Dragon
0
132
Member Avatar for jray344

see [URL="http://www.daniweb.com/forums/thread96931.html"]this thread[/URL] that was posted only a couple hours ago.

Member Avatar for jray344
0
267
Member Avatar for jbstin

Some teachers still use the ancient Turbo C++ because they don't know any better and are just too stupid to upgrade to newer FREE compilers. There is no vaid excuses for any university or college of higher learning in USA and most european nations to do that. Then they have …

Member Avatar for WaltP
0
115
Member Avatar for nemoo

Your formatting is terrible and makes it difficult to follow. Here is the same program reformatted the way it should be formatted. Note that it is very easy to spot mis-matched braces when formatted this way. Also, don't mix using tabs and spaces because they will get screwed up when …

Member Avatar for vmanes
0
107
Member Avatar for Brent.tc

I have Dev-C++ version 4.9.9.2 and using the project file in your zip file the compiler produced a flood of errors and warnings. You need to go through bcstring.h and fix them all one at a time. >>I have spent about 2 weeks trying to solve this error You are …

Member Avatar for Ancient Dragon
0
158
Member Avatar for Rick1980

The problem is that you are recursively including A.hpp and B.hpp. So solve the problem, just pre-declare the classes [code] #ifndef B_HPP_ #define B_HPP_ [color=red]class A; [/color] #include "A.hpp" class B { public: B(); virtual ~B(); private: A* apt; }; #endif /*B_HPP_*/ [/code]

Member Avatar for Rick1980
0
2K
Member Avatar for jbstin
Member Avatar for zandiago
0
103
Member Avatar for diamond_2b1
Member Avatar for Ancient Dragon
0
152
Member Avatar for ace_joker_bt

If you are trying to write that code for MS-Windows then you can use win32 api CopyFile() function. Otherwise open the input and output files in binary mode, not the default text mode. On *nix it doesn't matter because they are both the same, but on MS-Windows there is a …

Member Avatar for ace_joker_bt
0
356
Member Avatar for peter_budo
Member Avatar for notorious_pan

If you don't want to spend $$$ to buy that book just to look up the answer to your question, you could try using stringstream class, or use std::string's [b]find[/b] method in a loop to locate each of the spaces [code] while not done check if the string has a …

Member Avatar for Ancient Dragon
0
107
Member Avatar for Love Story

>>i have no idea how to make it a code: Start here [code] #include <string> #include <iostream> using namespace std; int main() { // put your code here return 0; } [/code]

Member Avatar for zandiago
0
103
Member Avatar for Justmehere

The ... indicates a variable number of arguments follow, such as[icode]printf(const char* format, ...);[/icode] See the example [URL="http://www.cplusplus.com/reference/clibrary/cstdarg/va_start.html"]here[/URL]

Member Avatar for Justmehere
0
286
Member Avatar for spockenheit

you have to create one string that contains all the parameters. For example [icode]system("ipconfig /all ");[/icode]

Member Avatar for Duoas
0
90
Member Avatar for jbennet

[QUOTE=jbennet;470457]thanks, i got rid of .h and it worked fine excuse me for my confusion, im new to C++, just mishmashed that from books[/QUOTE] That's the problem with reading outdated books and/or using ancient compilers such as TurboC++. But your compiler seems to be ok, its the lousy book you …

Member Avatar for jbennet
0
152
Member Avatar for Duki

you are missing this because the constructor at line 8 was never coded. [code] template<class T> Pair<T>::Pair( ) { } [/code]

Member Avatar for Duki
0
123
Member Avatar for g_loughnan

That's normally standard practice to do it that way, but small related classes are often put in the same file.

Member Avatar for g_loughnan
0
75
Member Avatar for astockton
Member Avatar for astockton
0
118
Member Avatar for mae ann

you need to add break statements at the end of each case statement so that the program does not execute the lines for the next case statements. delete line 60 -- never ever for any reason call main() from anywhere within your program. That function is intended to be called …

Member Avatar for jbennet
0
295
Member Avatar for wonderland

>>modulo arithmetic Not much to it -- modulo is the result after division. For example 15/10 = remainder 5. So 15 % 10 = 5. 27 % 10 = 7. After that just do normal division by 10 to remove the last digit from the number.

Member Avatar for zandiago
0
94
Member Avatar for Lardmeister

[QUOTE=Lardmeister;441333]In history, George W. Bush may take first place amongst US presidents, if not all world leaders, as the leader with the best sense of humor. If you think the leader of your country is any better, give us an example. Here are some of GWB's better examples that bring …

Member Avatar for Lardmeister
0
531
Member Avatar for GM_1979

Try turning off some new Vista account security controls. Select Start --> Control Panel --> User Accounts --> Turn User Account Control on or off

Member Avatar for GM_1979
0
133
Member Avatar for RohitSahni

using c++ std::string object use the [b]find[/b] method to locate the ':' and then the [b]substr[/b] method to extract all the characters from position 0 up to but not including the colon. I'm not going to write it for you, so post the code you have done.

Member Avatar for RohitSahni
0
555
Member Avatar for pv_srt

start your research [URL="http://www.google.com/search?hl=en&q=snmp"]here[/URL]

Member Avatar for Ancient Dragon
0
31
Member Avatar for guitarrick

If you write a win32 api program (instead of a normal console program) then you can use SetTimer() function as [URL="http://msdn2.microsoft.com/en-us/library/ms644901.aspx"]described in MSDN[/URL]. And how exactly does this relate to the subject of your thread :-O To display some message on the screen temporarily first create a dialog box and …

Member Avatar for Ancient Dragon
0
103
Member Avatar for Slavrix

looks like you are compiling your program for UNICODE. Turn it off. Prject --> Properties (last menu item in the list), then expand the [b]Configuration Properties[/b] and select [b]General[/b]. Then on the right side of the screen change [b]Character Set[/b] to [b]Not Set[/b] Some of those other warnings say that …

Member Avatar for Slavrix
0
186
Member Avatar for toneeg

Did your instructor give you some requiements what TMoney is supposed to look like? Or are you free to write it any way you want ? Personally I think your class contains way too many methods to do only the few things you posted, and the only data object you …

Member Avatar for toneeg
1
347
Member Avatar for Mussa AL_Zyod

Read the answers to [URL="http://www.daniweb.com/forums/thread96452.html"]this thread[/URL] and [URL="http://www.daniweb.com/forums/post468281.html#post468281"]here[/URL] too.

Member Avatar for Ancient Dragon
0
110
Member Avatar for Paulville

There is a windows version [URL="http://sourceforge.net/project/showfiles.php?group_id=2055"]here[/URL]. Just scroll down to the bottom of the page and select the *.zip file

Member Avatar for Ancient Dragon
0
102
Member Avatar for picass0

The problem is that you have re-used the name [b]list[/b] to be something other than std::list. When you do that the compiler gets confused. Name that variable something else, such as [code] fin >> word; if(word != "//") { cout << line << endl; myList.push_back(word); list<string>::iterator p = myList.begin(); while(p …

Member Avatar for Ancient Dragon
0
91
Member Avatar for toko

Assuming you have VC++ 2005 Express: First you have to create a project -- File --> New --> Project. After creating a console project the IDE will create a few files for you, including <project name>.cpp and .h. you can edit the <project name> cpp file to include whatever you …

Member Avatar for sagedavis
0
116
Member Avatar for Koldsoul

1. After entering [b]symbol1[/b] you could transform the string to all upper case characters so that the rest of the if statements do not need to check for lower case or any other case mixture. [icode]transform(symbol1.begin(),symbol1.end(),symbol1.begin(),toupper);[/icode] You need to include <algorithm> to compile the above line 2. The problem you …

Member Avatar for Ancient Dragon
0
164
Member Avatar for dblbac

line 17 duplicates a function name. You need to rename that variable on line 17 to something else.

Member Avatar for Ancient Dragon
0
126
Member Avatar for nosa2008

you might read some of [URL="http://www.google.com/search?hl=en&q=C%2B%2B+program+to+determine+the+real+root+&btnG=Google+Search"]these google links[/URL]

Member Avatar for Ancient Dragon
0
101
Member Avatar for jaepi

[URL="http://msdn2.microsoft.com/en-us/library/zyz8f7af(VS.80).aspx"]wfstream[/URL] maybe ?

Member Avatar for Ancient Dragon
0
68
Member Avatar for Ali_110

>>i have to make these programes in next 1 :D Why did you wait until now to get started ??? (Don't answer that, its a rhetorical question). No one here really cares that you wasted so much of your time. If you don't care enough to study then we don't …

Member Avatar for Ancient Dragon
0
205
Member Avatar for manzoor

I think the problem is that after [icode] cin >> Cnvrt_Temp_Option ;[/icode] you need to strip the '\n' (Enter key) from the keyboard buffer. One way to do that is [icode]cin.ignore()[/icode]

Member Avatar for Ancient Dragon
0
118

The End.