Forum: C++ 30 Days Ago |
| Replies: 4 Views: 494 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++ 30 Days Ago |
| Replies: 4 Views: 494 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++ 30 Days Ago |
| Replies: 4 Views: 177 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: 470 Classes don't inherit friends and subclasses can't access base class's private members |
Forum: C++ Jul 21st, 2009 |
| Replies: 11 Views: 569 its because you are missing the while part of a do while loop
do {
} while (some condition); |
Forum: C++ Jun 27th, 2009 |
| Replies: 11 Views: 665 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: C++ Dec 23rd, 2008 |
| Replies: 15 Views: 1,064 |
Forum: C++ Nov 27th, 2008 |
| Replies: 5 Views: 448 it also helps if don't have so many global variables |
Forum: C++ Nov 27th, 2008 |
| Replies: 3 Views: 774 rand() is in cstdlib and to make it more random you should seed it first with srand() |
Forum: C++ Oct 4th, 2008 |
| Replies: 4 Views: 588 |
Forum: C++ Sep 14th, 2008 |
| Replies: 7 Views: 631 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: C++ Sep 2nd, 2008 |
| Replies: 24 Views: 1,872 Don't use void main(), use int main() as I said in my previous post |
Forum: C++ Sep 2nd, 2008 |
| Replies: 8 Views: 615 are STL containers faster then c-style arrays? |
Forum: C++ Sep 2nd, 2008 |
| Replies: 6 Views: 496 Also, I would use #include <cstdio> and get rid of the void thing in main |
Forum: C++ Aug 29th, 2008 |
| Replies: 24 Views: 1,872 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: 914 surely you mean convert string to an integer using atoi()? |
Forum: C++ Jul 31st, 2008 |
| Replies: 12 Views: 1,415 |
Forum: C++ Jul 30th, 2008 |
| Replies: 12 Views: 1,415 If you do 4 % 2 then it is 0, if you do 5 % 2 it is one, for example. That should help you |
Forum: C++ Jul 22nd, 2008 |
| Replies: 14 Views: 6,670 Eclipse and Code::Blocks are good
I personally use Emacs of course ;) |
Forum: C++ Jul 21st, 2008 |
| Replies: 6 Views: 4,550 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,445 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 |
Forum: C++ Jul 7th, 2008 |
| Replies: 31 Views: 2,159 |
Forum: C++ Jul 7th, 2008 |
| Replies: 31 Views: 2,159 What do you mean it doesn't work?, you are going to have to be more specific |
Forum: C++ Jul 7th, 2008 |
| Replies: 31 Views: 2,159 #include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int n;
int vote = 0;
//const int limit=50; |
Forum: C++ Jul 7th, 2008 |
| Replies: 31 Views: 2,159 its supposed to be int main() not void main() and its alot easier to read if you declare your variables at the beginning of the function |
Forum: C++ Jul 7th, 2008 |
| Replies: 31 Views: 2,159 we don't give answers to homework here, if you have a problem with some code then we can help |
Forum: C++ Jul 3rd, 2008 |
| Replies: 2 Views: 558 We are not going to write the code for you, but if you are having problems with this, then ask us |
Forum: C++ Jun 29th, 2008 |
| Replies: 10 Views: 947 CodeBlocks is another good free ide for windows |
Forum: C++ Jun 27th, 2008 |
| Replies: 1 Views: 987 You could just display a certain number of lines and when the user presses the down arrow key it displays more text |
Forum: C++ Jun 27th, 2008 |
| Replies: 3 Views: 983 remove the semi colon on line 22, you don't need semi colons after flow controls |
Forum: C++ Jun 27th, 2008 |
| Replies: 6 Views: 706 system("\"C:\\Documents and Settings\\myUser\\myProject\\app.exe\" -vb \"C:\\Documents and Settings\\myUser\\file.txt\"");
it should be
system("C:\\Documents and... |