Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #1K
~37.3K People Reached
About Me

I like my weed.
Will entertain job offers in c++ over £85000 sterling pa.

Interests
Fishing,snooker and RPG's
PC Specs
which one? Athlon3200xp,1g ram,xp pro. Athlon 1g,512 ram,win98 Celeron 2.8,512 ram,win2k dual p4 3.0Ghz,…
Favorite Tags

110 Posted Topics

Member Avatar for egoleo

[url=http://vig.prenhall.com/catalog/academic/product/0,1144,0136386776,00.html]tanenbaums book[/url] on OS design and implementation. [url=http://www.amazon.com/exec/obidos/tg/detail/-/1558603204/ref=pd_bxgy_text_1/002-3182280-6473656?v=glance&s=books&st=*]muchniks book on compilers[/url] [url=http://www.amazon.com/exec/obidos/tg/detail/-/0471976970/002-3182280-6473656?v=glance]modern compiler design[/url]

Member Avatar for rubberman
0
759
Member Avatar for SpS
Member Avatar for server_crash

no its not legal. because you have used private inheritance your class now looks like this..... [code] class Bird { public: Bird(); virtual ~Bird(); private: void Print()const; }; [/code] now do you see why your code fails.

Member Avatar for brkurre
0
217
Member Avatar for stackOverflow
Member Avatar for DotNetUser

look up in your helpfiles or at msdn.... the third param to WinMain to get command line as ascii GetCommandLine() to get the command line as unicode CommandLineToArgvW() to convert it to an array of strings if necessary

Member Avatar for cpg
0
608
Member Avatar for diddle

The very best book for this isnt in C. The code examples are shown in an imaginary machine code. This allows you to take the algorithms general steps and convert them into any language you like. Its heavy going, expensive and absolutely worth its weight in gold. Its [URL=http://www-cs-faculty.stanford.edu/~knuth/taocp.html]The art …

Member Avatar for diddle
0
167
Member Avatar for winbatch

template member functions may not be virtual but often you can get around this by templating a class rather than a member function. The only reason you cant have template member functions is because the compiler would never be able to know the vtable size.

Member Avatar for winbatch
0
351
Member Avatar for bobobobo51

understand what the code is doing. In main you make an input file and read it a line at a time. You then pass that line to myjob::read. This is where the parsing occurs. first an istringstream is constructed from our line of input then several items are extracted from …

Member Avatar for svirk
0
252
Member Avatar for AhmedHan

pWinPos is not constant. but you do need a cast. either an old c style or a reinterpret_cast<WINDOWPOS*>(lParam)

Member Avatar for AhmedHan
0
287
Member Avatar for SpS

there is a need and a reason to return arrays and it can be done, you just return a pointer to its first address. If what you meant was an array return by value, i.e. a copy of the array then yes this never happens in c++. arrays are always …

Member Avatar for Stoned_coder
0
180
Member Avatar for Mahen
Member Avatar for alajaji

Im with narue on this one. I cannot believe you have taught operating system design yet code a small sample with 9 lines on which 2-3 will cause errors. You seem to think the OP will have some clue as to how to fix your code. Trust me if they …

Member Avatar for shaji
0
212
Member Avatar for SpS

biggest overheads with goto is having your peers laugh at you.Also a goto in a function will make life hard for the optimiser to do its job properly so your function may go unoptimised. It is not particularly dangerous to use but it does have a habit of making code …

Member Avatar for Narue
0
150
Member Avatar for SpS

it is. passing a pointer is no different to passing anything else. Its a parameter the same as any other.

Member Avatar for Ancient Dragon
0
197
Member Avatar for Acidburn

post your score class and we will take a look for you. there isnt enough code to help there. It appears that maybe you have forgotten to write a member func or something similar.

Member Avatar for Stoned_coder
0
145
Member Avatar for winbatch

fmod() can be used with doubles. perhaps your compiler has an fmod that accepts long doubles too.

Member Avatar for winbatch
0
115
Member Avatar for frank_hfc

perhaps if you explain better what you are trying to do. maybe a small code sample. Why would you need to type check after a cin.

Member Avatar for Stoned_coder
0
705
Member Avatar for stupidenator

something like [code] long long int summation(long long int start, long long int howMany) { long long sum=0; for(long long i=0,j=start;i<howMany;++i,++j) sum += j; return sum; } [/code]

Member Avatar for stupidenator
0
310
Member Avatar for mikan1983

>>>pls give me an advice you could start by posting your code and details of any errors you get and we'll help you fix it.

Member Avatar for Stoned_coder
0
114
Member Avatar for SpS

[code] static int func(); // proto for a static func class AClass { friend int func(); // can be a friend and retains its static linkage friend int anotherfunc(); // assumed to have external linkage }; [/code] Static funcs can be friends. A static member can also be used to …

Member Avatar for Stoned_coder
0
189
Member Avatar for SpS

Its extrememly dated. If you are in any way serious about programming you will want the best tools you can get for free or for the money available. There are many compilers available for free on the web, and I would say 90% of them outshine turboc. If you can …

Member Avatar for Rashakil Fol
0
171
Member Avatar for kahaj

post some code to show you have attempted the problem if you want help. We dont handfeed you homework answers but will happily help you out if you show effort.

Member Avatar for kahaj
0
304
Member Avatar for john233
Member Avatar for Vladvaga
Member Avatar for Vladvaga
0
144
Member Avatar for DotNetUser

know how to write a text file? should be examples in all c++ texts. or alternatively there are a couple of libraries available to do logging, check on sourceforge.

Member Avatar for Stoned_coder
0
108
Member Avatar for Mike182

1) the standard way to do this is to replace userinit.exe in a certain registry key with your app. at the end of your app you must start userinit.exe to complete the bootup.details at msdn just search for userinit.exe. 2) make a hash function. store password as a hash. get …

Member Avatar for Mike182
0
253
Member Avatar for server_crash
Member Avatar for SpS

[code] int a=rand(); int b=rand(); int c=rand(); std::vector<int> vec; vec.push_back(a); vec.push_back(b); vec.push_back(c); std::cout<< *std::min_element(vec.begin(),vec.end())<<std::endl; [/code] not a comparison operator in sight

Member Avatar for SpS
0
319
Member Avatar for shaji

windows 2k null pointer assignment 0x00000000-0x0000ffff user mode 0x00010000-0x7ffeffff 64kb off-limits 0x7fff0000-0x7fffffff kernal-mode 0x80000000-0xffffffff windows 98 null pointer assignment 0x00000000-0x00000fff dos/16bit windows application compatibility 0x00001000-0x003fffff user mode 0x00400000-0x7fffffff shared memory mapped file 0x80000000-0xbfffffff kernal mode 0xc0000000-0xffffffff

Member Avatar for Stoned_coder
0
109
Member Avatar for SpS

yes it is standard, but it took a while for some compilers to catch up, most notably msvc6. There is also a nothrow version of new specified by the standard.

Member Avatar for Narue
0
559
Member Avatar for toxic_iguana
Member Avatar for SpS

you cant. watch. [code] int x=0; // global x int main() { int x=1; // main x { int x=2; // block x cout<< x<<endl; // prints block x cout<< ::x <<endl; // prints global x accessed with :: scope resolution operator // there is no way to access main …

Member Avatar for Narue
0
213
Member Avatar for Acidburn

your probably overstepping the bounds of an array somewhere. Other than that its hard to say without seeing code. we are not psychics.

Member Avatar for Acidburn
0
256
Member Avatar for server_crash

protected data members are virtually a no-no. what normally goes into the protected section are member functions, especially virtuals which may need to be called from derived classes but not necessarily the outside world.

Member Avatar for server_crash
0
163
Member Avatar for rufusOT

operator ++ and -- with no arguments return a reference to an object and not an object itself. bman you should have known better.

Member Avatar for prog-bman
0
396
Member Avatar for arunmisra
Member Avatar for mina1984

typo here [code] cout<<" Enter your last name :"; cin>> last; cout<<" Enter your last name :"<<endl; cin>>first; [/code] [code] cin>> num1, num2, num3; [/code] should be [code] cin>> num1>>num2>>num3; [/code] that should do it.

Member Avatar for mina1984
0
128
Member Avatar for Decoder
Member Avatar for Acidburn

Your hangman class is missing a }; at the end. take care to punctuate properly

Member Avatar for Drowzee
0
84
Member Avatar for SpS

Because in code 1 the string "sunny" is readonly. In code 2 the string "sunny" is writeable to.

Member Avatar for SpS
0
163
Member Avatar for Coach_Nate
Member Avatar for SpS
0
115
Member Avatar for marceta

is it a serial ata drive? Usually when loading xp you need to press f6 pretty early on in the setup and have a serial ata driver disk from your motherboard manufactorer. Then your hard disks will show up as long as they are not faulty. If its ide then …

Member Avatar for marceta
0
181
Member Avatar for plym4444
Member Avatar for Mahen

its an .exe. Post the source I dont mind looking it over but posting an exe is not such a good idea.

Member Avatar for Stoned_coder
0
140
Member Avatar for Mahen

I fail to see whats so special about vista. I have checked out the beta. All the things I was looking forward to didnt make it in. Its not that much different from XP. What have the microsoft programmers been doing all this time. XP came out in what 2001? …

Member Avatar for Stoned_coder
0
139
Member Avatar for l3.azarmehr
Member Avatar for djbsabkcb

why stacks? Heres a palindrome proggy i did for another board. [code] #include <iostream> #include <string> #include <cctype> int IsMirrorPalindrome( const char* word, size_t length ) { if( length <= 1) return 1; else return ( (word[0] == word[length-1]) && IsMirrorPalindrome(word+1,length-2)); } int IsPalindrome(std::string test) { std::string tempcopy; std::string::iterator iter …

Member Avatar for djbsabkcb
0
1K
Member Avatar for SpS

you dont need to know windows api to use opengl. its independant of windows. The only time you need windows coding is if you want your opengl app to run in a window instead of full screen. theres excellent opengl tuts [url=http://nehe.gamedev.net]here[/url]

Member Avatar for Lerner
0
198
Member Avatar for nikto

[url=http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=205&rl=1]read this all should become clearer[/url]

Member Avatar for nikto
0
159
Member Avatar for rks01
Member Avatar for Drowzee
0
106

The End.