- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
14 Posted Topics
Apple reduced Snow Leopard size, so now you won't find the drivers in the standard installation, try install the driver from snow leo disk.
My MacBook Pro 4,1 doesn't want to load OS (can't find it) and displays the blinking folder with a question mark. I have tried everything I found on the forums. Mac does recognise hdd. I could copy all file from my hdd to remote hdd using terminal. However still every …
If you do not have many strings, array of string should work. Normally you shouldn't worry about python efficency it has quite good code optimisation and python is not c it is not made for speed, so I would keep it simple and use something like array of strings.
The easy way would be to have url as a char*. Or use different library. Microsoft library for strings [B]has got[/B] the method to convert from string to char*, so if you would use it instead, you could convert your type by calling this method.
Check the brackets! You have mismatching brackets. If you are using Eclipse or NetBeans it should indicate that.
If you are planning to study functional language and want to get deep understanding of the subject, then I would suggest using Haskell. However, if you have a good background in any functional language ( OCaml, Lisp ), then you could study F#, as it is a part of Visual …
I am tring to convert std:string to char* in several way, however non of these work: first way: [CODE] char* c_levelMapFile = new char[levelMapFile.length() + 1]; strcpy(c_levelMapFile, levelMapFile.c_str()); ifstream myfile(c_levelMapFile); myfile.is_open(); // returns false [/CODE] second way: [CODE] const char* c_levelMapFile = levelMapFile.append("\0"); ifstream myfile(c_levelMapFile); myfile.is_open(); // returns false [/CODE] …
Try using VLC player, it supports most of the known format, I have encountered very few video files which it couldn't play. So give it a try ;)
There are many sorting algorithms, one of the best one is quick sort and the easiest one is bubble sort. If you are going to have more than 3 numbers to sort, you could imlement one of this algorithms or even better, just use the existing ones: [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html"]http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html[/URL] However, if …
dispose frees resources used by [B]class[/B] and exit forces all threads of the program to terminate immediately, common use if you get an error in your program and what to terminate it you use System.exit(-1), -1 indicates that some error occurred, if no error occurred that would be exit(0)
I would suggest to use serialisation. What it does it saves an object to your hard drive, which can be later restored and used in the program (deserialised). [URL="http://www.mactech.com/articles/mactech/Vol.14/14.04/JavaSerialization/index.html"]http://www.mactech.com/articles/mactech/Vol.14/14.04/JavaSerialization/index.html[/URL]
But where are you printing the result? You are now using the getTotal() function. I would write something like this: [CODE] class main { public static void main(String args[]) { int arr[] = {1,2,3,4,5}; System.out.println("Sum of the array arr is: " + arraySum(arr)); } public static int arraySum(int arr[]) { …
This code won't compile at all, firstly try to make it compile, then think of how you define recursion: [LIST=1] [*]base case [*]recursive case, which decrements value, so recursion terminates at some point [/LIST]
The End.
kudresov