- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
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,…
110 Posted Topics
Re: [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] | |
Re: 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. | |
Re: 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 | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: pWinPos is not constant. but you do need a cast. either an old c style or a reinterpret_cast<WINDOWPOS*>(lParam) | |
Re: 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 … | |
Re: look up.... WM_QUERYENDSESSION WM_ENDSESSION | |
Re: 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 … | |
Re: 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 … | |
Re: it is. passing a pointer is no different to passing anything else. Its a parameter the same as any other. | |
Re: 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. | |
Re: fmod() can be used with doubles. perhaps your compiler has an fmod that accepts long doubles too. | |
![]() | Re: 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. |
Re: 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] | |
Re: >>>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. | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
| |
Re: 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. | |
Re: 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 … | |
Re: ptr.speak(); ptr.move(); ptr.printName(); not . its -> | |
Re: [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 | |
Re: 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 | |
Re: 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. | |
| |
Re: 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 … | |
Re: your probably overstepping the bounds of an array somewhere. Other than that its hard to say without seeing code. we are not psychics. | |
Re: 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. | |
Re: operator ++ and -- with no arguments return a reference to an object and not an object itself. bman you should have known better. | |
Re: What OS? bmp is easy. the others require more work. | |
Re: 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. | |
Re: Your hangman class is missing a }; at the end. take care to punctuate properly | |
Re: Because in code 1 the string "sunny" is readonly. In code 2 the string "sunny" is writeable to. | |
Re: no as an array. yes as a pointer or object such as std::vector | |
Re: 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 … | |
Re: its an .exe. Post the source I dont mind looking it over but posting an exe is not such a good idea. | |
Re: 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? … | |
Re: 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 … | |
Re: 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] | |
Re: [url=http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=205&rl=1]read this all should become clearer[/url] | |
Re: when you want arrays, 99% of the time you actually want a std::vector |
The End.