12 Discussion / Question Topics
Remove Filter How would I write a C++ class of which only one can be created ever be instantiated in any program. I know that ClassName* objectName = new ClassName(); instantiates an object, but how would I make it so when you try to instantiate it more than once you still end … | |
I am trying to learn how to write a merge sort function, but I have only gotten so far with the book I am using now: [code] template <class T> void mergeSort(vector<T>& s) { mergeHelper(s.begin(), 0, s.size()); } template <class Itr> void mergeHelper(Itr start, unsigned int low, unsigned int high) … | |
I accidentally added the following line to my SQL database twice: [CODE]INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_birthdays_ahead', '7');[/CODE] How do I remove one of them? ![]() | |
I have a client's site uploaded to [URL="http://fjamison.freehostia.com/"]http://fjamison.freehostia.com/[/URL], but she says the menus don't work on her Mac. Does anyone have any idea as to why this is so or how to resolve this issue? | |
I have written a small c++ program and then output the instructions as assembly...but I have no clue what it means. The book I am using does not explain this very well. Can someone comment the code to tell me what is going on? I'd greatly appreciate it. Thanks [code] … | |
I have been asked to explicitly convert a decimal number to hexadecimal (radix sixteen) number in 1s complement...how the heck is that done? I can convert to a binary number using 1s compliment...do I just take that and convert to hex after the fact? | |
How would one construct a Hamming code that can correct up to 4 bit errors in the resulting code words? | |
Last quarter our last assignment was to create two programs that gernerate silly sentences from words contained in a file. I was able to create the program with a map, but have no idea how to do it with a hash map. Since it was the end of the quarter, … ![]() | |
I was absent for the discussion and lab due to illness and I am at a total loss as to how to do this assignment. Implement the my_string class in header file my_string.h, so that the test code given below reports SUCCESS. [code] // test_my_string.cpp #include <iostream> #include <string> #include … | |
I don't know if this is the place to ask... Last night I was on my computer when the connection failed...limited or no connectivity. After several hours of reconfiguring the router rebooting the PC, router, uninstalling and reinstalling the network card...still nothing. If I connect directly to teh DSL modem...I … | |
I haven't used my PowerPoint in forever, but when I tried to modify an old presentation today I could not use the mouse to drag objects. Then I tried clicking on the file menu and found I couldn't unless I right-clicked somewhere on the screen first. Any time I click … | |
OK...here's the background: I want to use javascript to write a CSS dropdown menu. Since I want to be able to float the menu to either the left or the right depending on the site I am using it on, I need to grab the float value (either right or … |
The End.