-
Replied To a Post in How to load an image on turbo c using graphics?
AD is absolutely right Za3mi. You need a newer compiler. You can install the MingW version of the GNU C/C++ compilers for free - it is open source, on most … -
Gave Reputation to Banfa in reverse the string
The question does not seem to preclude the use of a human processor so how about #include <string> #include <iostream> int main() { std::string text; std::string reversed; std::cout << "Please … -
Replied To a Post in programming
I've been making a good living in this domain for over 30 years, and have had the opportunity to do some important work, such as work on the US Navy's … -
Replied To a Post in Fast Integer Division
Naming conventions... :-) I would suggest that you use something other than Int for your AP class to avoid this sort of confusion, such as APInt, or AnInt, etc. Depending … -
Replied To a Post in changing permissions of directories and folders
Sorry, but we don't do your homework for you. Show us what you have tried and we can help you find the errors of your ways, and means. Remember, for … -
Replied To a Post in reverse the string
Minor issue AD. You are starting at the terminating null byte and then ending at the head of the string. Better this I think: for(int i = len-1, j = … -
Replied To a Post in Xeon E5-2650 ?
My work laptop has a 2 core i7. My personal home workstation (now 6 years old) has dual quad-core E5450 3GHz Penryn processors - out of date now, but still … -
Replied To a Post in Unwanted Wi-Fi guest.
Read the documentation for the router. You may be able to reset it to factory settings by pressing a recessed button for some period of time, then you can get … -
Replied To a Post in Xeon E5-2650 ?
Is it worth the investment? It depends. The Intel "recommended" price for any of them is about $1100 USD. The Xeon E5-2650 has 8 cores and 16 threads (with hyperthreading … -
Replied To a Post in Unwanted Wi-Fi guest.
Is your WiFi secured? If secured with WEP, change the security to WPA and select a strong passphrase. If not secure, change it to WPA and select a strong passphrase. … -
Replied To a Post in class template problem
What Mike2k said. Template functions are what you can call "generic programming". You develop an algorithm that works for multiple types, and then code it as a template. Instead of … -
Replied To a Post in powers of three; some code provided, little help needed.
There are two approaches to this sort of problem (I'm not going to get into details how to do it). One is an iterative computational process - slow when numbers … -
Replied To a Post in [In General] How are OSes made?
If you want to know exactly how to create an operating system from scratch, there are a number of texts out there to help teach you, such as Andrew Tanenbaum's … -
Replied To a Post in Having trouble with error
You need a function main(). Here are the valid signatures for main(): int main(void); int main( int argc, const char** argv); int main( int argc, const char* argv[]); Note that … -
Replied To a Post in Classes
Classes are used to model physical or conceptual entities. An example of physical entities may be the class Animal - an abstract base class. Derived from that are classes such … -
Replied To a Post in Swap memory works as reserve RAM?
Swap space is used as virtual memory. IE, if your system and applications need more memory than you physically have, then the swapper will move the least-recently used memory blocks … -
Replied To a Post in Need Help with Dev c++
@decepticon Your observations are true enough, but I was trying to point out that newline characters in the output stream aren't enough to flush the output. Your approach is also … -
Replied To a Post in Sorting Doubly Linked lists
Please show what code you actually wrote. This line is wrong (my bad): `vector<TYPE>* list = new vector<TYPE>;` It should be `vector<TYPE>* list = new vector<TYPE>();` Sorry about that! :-) … -
Replied To a Post in programing for the integers prime & composite from 1 to n
Your question is not clear. What precisely are you trying to do? -
Replied To a Post in Need Help with Dev c++
As indicated by deceptikon, with the leading double quote, it is legimate C++, but not GOOD C++ code. The newline tokens will not flush the output stream. Instead of the … -
Replied To a Post in 10 Ways that Enterprises use Linux
Good post Mike2K! Got an up-vote from me for that... :-) We run Linux servers for our production systems, exclusively, mostly CentOS 6.x - we have thousands of physical servers … -
Replied To a Post in iPad app
Please be more clear. You want a program to use for training programmers? Or something else? -
Replied To a Post in How to install Centos 6.4 by pendrive with windows dual booting ?
Honestly, I do not recommend dual-booting operating systems. I have found it to be prone to serious problems. Myself, I use a virtual machine manager, such as VirtualBox, to create … -
Replied To a Post in Joining my domain on windows 7 ultimate
Not quite right JorgeM, I think! (Caveate Emptor). I think the poster is referring to an internet domain, such as xyzzy.com. He has registered his domain (xyzzy.com) and wants it … -
Replied To a Post in Which browser is your best for iphone?
NP. Hope my information was helpful to you. Personally, I'd love to say we (Nokia - soon to be Microsoft) had a proxy browser for the iPhone, but it would … -
Replied To a Post in linux with windows
There is also enterprise linux, such as Suse (mentioned by Mike2k) as well as Red Hat Enterprise Linux and its clones, CentOS, Scientific Linux, and Oracle Linux. RHEL and Oracle … -
Replied To a Post in How to delete file with SYSTEM permission
Personally, I think they should rename it as "Not-so-safe Mode"! :-) That is a good way to fubar your system... Hopefully you verified that this is not a file critical … -
Replied To a Post in database server advice
FYI, I manage a couple of AWS accounts that incur expenses in excess of $10,000 USD per month, each. This (out-going data costs) is something I have to report to … -
Replied To a Post in KUBUNTU 12 04 Disabled Windows partition
Your Windows partition should still be ok, but the boot loader is fubar. You need to boot into the recovery image and then restore the Windows boot image: http://www.howtogeek.com/howto/32523/how-to-manually-repair-windows-7-boot-loader-problems/ The … -
Replied To a Post in Need some help with RAID 5 set up
You can install the OS on a RAID, but I generally don't recommend that unless it is a mirrored (RAID-1) configuration (for redundancy to protect from a single disc failure). … -
Replied To a Post in help with dual channel
First, install the the 2GB DDR2-800 in the A2 slot (assuming the current one is in the A1 slot). See if that works. If so, then, install the 1GB SIMM … -
Replied To a Post in velocity Cruz table
Your posts are not particularly enlightening (so to speak). I assume you are having difficulties starting your computer. Have you tried holding down the power button for at least a … -
Replied To a Post in Cache Files
I think Reverend Jim gets the punnage award for the week! So, what punnagement would be appropriate for that? :-) -
Gave Reputation to Reverend Jim in Cache Files
It the OP manages to do this it would be the very definition of a cache cow. -
Replied To a Post in Vector is different for every class instance!
@AD & tinstaafl :-) Goes to show - any three good programmers will generally come up with 3 valid approaches to any programming problem! :-) -
Replied To a Post in Recursive QuickSort Algorithm
Too much code, and not enough information. What is the "drive" function supposed to do, for example? What do you mean by a "recursive" quick sort? Do you mean a … -
Gave Reputation to mike_2000_17 in How are C++ String Classes made?
> I found out the way C++ passes arrays around (via a pointer) makes finding the end of the array impossible! That's true, but you can keep track of how … -
Replied To a Post in Having a little trouble
This NOT good! This is better: class car { . . . public: car(double mpg = 0.0, double capacity = 0.0); . . . }; Car::Car(double mpg, double capacity): mpg(mpg), … -
Replied To a Post in How to change an original class member variable?
Yes, it is an instance variable, and only affects the instance you set it in. Make it a class static variable, and that should do what you want. -
Replied To a Post in Sorting Doubly Linked lists
Do note that I don't try to solve all of your problems in one post. However, I do try to get you to see where some of your *fundamental* problems … -
Replied To a Post in Sorting Doubly Linked lists
Well, here is one problem (starting at line 140): vector<TYPE> convertToVector(Node<TYPE> *Ptr) { Node<TYPE> *currPtr = headPtr; while (currPtr != NULL) { int i = 0; vector<TYPE> list(count); list[i] = … -
Replied To a Post in project
You do the work. We help you fix it. Don't ask us to do your homework for you - that is cheating! :-( -
Replied To a Post in How to create DOS?
Rik, if you want to run FreeDOS, run it in a virtual machine. It thinks it owns the hardware, so DO NOT try to run it directly on your computer. … -
Replied To a Post in UML Diagram Help - Train Reservation & Ticketing System
Better! I might change "Informs Availability" to "Answers Query", though that is a nit-pick... :-) So, just do a review to be sure that you have covered all the points … -
Replied To a Post in Answering Java Interview Questions
Overall, I think you did pretty well on the interview questions, though you are correct that #9 could have been handled better, such as mentioning that GC in Java has … -
Replied To a Post in strcmp not working
"Never mind - God I why do I always figures this crap out right after I post?" Probably because we all figure out our errors right after we ask someone … -
Replied To a Post in b+tree code to insert file
What James said. In addition, there are abundant sources of documentation on how to implement b+ trees on the web, and in printed books. Try some Googling on your own! … -
Replied To a Post in Vector is different for every class instance!
@ Ancient Dragon I would suggest that the students vector be a static member of the Student class, although your suggestion is also valid. However, having it a static member … -
Replied To a Post in Encryption/Decryption
One of the easiest cyphers is a simple xor substitution of the source text with letters from the passphrase. You iterate through the source and the passphrase (password) and xor … -
Replied To a Post in Converting numbers to words in C++ using SWITCH Statements!!
@ Red Goose Your comment "You're doing the calculations before you're getting the number, and since num will be 0 at that point, tens digit and ones digit will always …
The End.