Forum: C++ 15 Days Ago |
| Replies: 4 Views: 325 You took my post out of context, I was referring to him building sqlite unless he actually meant building an app using the sqlite library which would be misleading because hes asking how to setup up... |
Forum: C++ 15 Days Ago |
| Replies: 4 Views: 325 The warnings don't really matter, there are usually a few warnings in every application, its the errors that matter.
Ruby is a scripting language and Rails is a web development library that is used... |
Forum: C++ 15 Days Ago |
| Replies: 4 Views: 153 It would help if you posted the output you were supposed to have and what output you got |
Forum: C++ Sep 10th, 2009 |
| Replies: 3 Views: 456 Classes don't inherit friends and subclasses can't access base class's private members |
Forum: C++ Jul 21st, 2009 |
| Replies: 11 Views: 555 its because you are missing the while part of a do while loop
do {
} while (some condition); |
Forum: Python Jun 27th, 2009 |
| Replies: 5 Views: 842 If I understand you correctly, you probably want something like
if x is None:
print "x has no value" |
Forum: C++ Jun 27th, 2009 |
| Replies: 11 Views: 649 java and javascript are not the same, the only thing they share is the c like syntax. Java and JavaScript are 2 completely different languages |
Forum: Python Mar 21st, 2009 |
| Replies: 3 Views: 460 You can just do
import sys
sys.path.append('pythonpathhere') |
Forum: *nix Software Mar 21st, 2009 |
| Replies: 10 Views: 2,363 Probably around 1.5 gb I would imagine |
Forum: Python Feb 22nd, 2009 |
| Replies: 7 Views: 483 you could just do
print "The location of the largest number is", (1+l1.index(max(l1))
or something similar |
Forum: Python Feb 20th, 2009 |
| Replies: 7 Views: 483 It would help if you wrapped your code in [CODE ] [/ CODE] tags |
Forum: Linux Servers and Apache Feb 15th, 2009 |
| Replies: 2 Views: 3,152 its unix time not linux time |
Forum: Growing an Online Community Feb 5th, 2009 |
| Replies: 3 Views: 2,357 OH NOES, sex offenders on the internet, in other news the sky is wet and fire is hot, news at 11. "Sex offender" is such a vague term that can mean almost anything, its like saying there are 1... |
Forum: Game Development Dec 29th, 2008 |
| Replies: 6 Views: 859 thats actually not a bad idea |
Forum: Java Dec 28th, 2008 |
| Replies: 3 Views: 318 Do you need to read the numbers from a file or from standard input?
if you need to read the numbers from standard input, you just need to have a loop where the numbers get entered into an array,... |
Forum: Game Development Dec 26th, 2008 |
| Replies: 6 Views: 859 I prefer to write the backend first because thats how I think and it seems more logical to me, what do you prefer? |
Forum: C++ Dec 23rd, 2008 |
| Replies: 15 Views: 1,046 |
Forum: Java Dec 23rd, 2008 |
| Replies: 7 Views: 957 |
Forum: Game Development Dec 20th, 2008 |
| Replies: 10 Views: 2,261 IMHO, I would do C before Java or C++, Java and C++ can very complicated, moreso then C |
Forum: Viruses, Spyware and other Nasties Nov 27th, 2008 |
| Replies: 18 Views: 1,069 Its easier to do anti-malware stuff in safemode(press F8 at the splash screen) which turns off everything but essential services |
Forum: C++ Nov 27th, 2008 |
| Replies: 5 Views: 445 it also helps if don't have so many global variables |
Forum: C++ Nov 27th, 2008 |
| Replies: 3 Views: 758 rand() is in cstdlib and to make it more random you should seed it first with srand() |
Forum: Java Oct 24th, 2008 |
| Replies: 2 Views: 711 |
Forum: Mac Software Oct 19th, 2008 |
| Replies: 9 Views: 7,219 Every OS has its set of over zealous fanboys, Windows, MacOSX, *BSD, Solaris etc. Its something that most people would want taken away from every os. |
Forum: Java Oct 14th, 2008 |
| Replies: 3 Views: 2,548 You can install 2 different versions of java at the same time |
Forum: Java Oct 13th, 2008 |
| Replies: 3 Views: 2,548 Are you running solaris?, if you are then you will need to execute the .sh file |
Forum: C++ Oct 4th, 2008 |
| Replies: 4 Views: 569 |
Forum: C++ Sep 14th, 2008 |
| Replies: 7 Views: 613 I wasn't aware *compilers* had gui design tools?, I thought compilers were just to convert human readable source code to machine read able code? |
Forum: Computer Science Sep 2nd, 2008 |
| Replies: 4 Views: 990 The linux kernel is written in C and some assembly, the GNU coreutils are usually written in C as well
You can get the source to the linux kernel at kernel.org, and the GNU coreutils source is at... |
Forum: C++ Sep 2nd, 2008 |
| Replies: 24 Views: 1,845 Don't use void main(), use int main() as I said in my previous post |
Forum: C++ Sep 2nd, 2008 |
| Replies: 8 Views: 599 are STL containers faster then c-style arrays? |
Forum: C++ Sep 2nd, 2008 |
| Replies: 6 Views: 487 Also, I would use #include <cstdio> and get rid of the void thing in main |
Forum: C++ Aug 29th, 2008 |
| Replies: 24 Views: 1,845 don't use void main(), use int main(). void main() doesn't compile on most compilers and is incorrect according to the standard |
Forum: C++ Aug 24th, 2008 |
| Replies: 5 Views: 892 surely you mean convert string to an integer using atoi()? |
Forum: C++ Jul 31st, 2008 |
| Replies: 12 Views: 1,386 |
Forum: C++ Jul 30th, 2008 |
| Replies: 12 Views: 1,386 If you do 4 % 2 then it is 0, if you do 5 % 2 it is one, for example. That should help you |
Forum: Getting Started and Choosing a Distro Jul 23rd, 2008 |
| Replies: 4 Views: 1,450 Red Hat 9 is very old, it probably does not support your laptop hardware very well. I suggest (if you want to use a red hat distro) to use either CentOS 5.2, or Fedora 9 |
Forum: C++ Jul 22nd, 2008 |
| Replies: 14 Views: 6,464 Eclipse and Code::Blocks are good
I personally use Emacs of course ;) |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,398 The most basic way is to use the system function, eg. system("program");. The other way is to use the fork() system call. eg.
pid_t pid;
pid = fork();
if(fork == 0){
execvp("programname");... |
Forum: C++ Jul 19th, 2008 |
| Replies: 3 Views: 1,414 Just put using namespace std; at the top of your files to make it simpler. You would use std:: in front of cout, cin, string and other things but those are the most common |