Forum: PHP Dec 5th, 2005 |
| Replies: 3 Views: 1,440 You sure can do that. Assuming that user.sh is in the same directory as the php page, just use the backtick operator:
<?php
`./user.sh`;
?>
If user.sh isn't in the same directory, try using... |
Forum: PHP Nov 30th, 2005 |
| Replies: 4 Views: 1,867 There are more than likely server configurations that are preventing you from accessing the file in ~/functions/. This is primarily due to security issues.
Also, you probably should specify which... |
Forum: Computer Science Nov 23rd, 2005 |
| Replies: 5 Views: 4,276 Well, if you are using Java, this is pretty darn easy to do. Each node could have a list of node references (or pointers, in other languages) within its structure. For example:
class Node {
... |
Forum: Game Development Nov 21st, 2005 |
| Replies: 3 Views: 4,173 http://www.ncsa.uiuc.edu/VR/VR/
I've taken a few classes in developing virtual reality programs. We used the facilities posted above. I wrote code with primarily CaveGL (very similar to OpenGL),... |
Forum: C Nov 18th, 2005 |
| Replies: 1 Views: 1,205 You can check out CFile, if you want to stick with the MFC stuff and not mess with STL or the C file input/output functions. For CFile:
... |
Forum: C Nov 18th, 2005 |
| Replies: 4 Views: 4,297 http://www.cplusplus.com/ref/cmath/pow.html
Pow, in the standard C library for mathematical operations, takes two double values by default. You could also look into the powerful powf function.
... |
Forum: PHP Nov 15th, 2005 |
| Replies: 3 Views: 2,319 By default, all variables used in functions are local variables, even if you use the same name of a global variable. You have to declare them global within the function. You can achieve this by... |
Forum: Geeks' Lounge Nov 14th, 2005 |
| Replies: 8 Views: 2,301 |
Forum: Java Nov 14th, 2005 |
| Replies: 3 Views: 2,791 There is. Here's a handy little link:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html |
Forum: Geeks' Lounge Nov 13th, 2005 |
| Replies: 7 Views: 1,623 Thank you, it was reassuring to hear that.
You're right, if I can convince them to accept my offers for repayment then I would be set. The only problem is that they think my parents are rich and... |
Forum: Geeks' Lounge Nov 12th, 2005 |
| Replies: 7 Views: 1,623 Thank you for the replies. I managed to talk some sense into the financial aid loan place today and they reinstated the loan...so there is a bit less pressure on me now.
I'll keep that in mind... |
Forum: Geeks' Lounge Nov 11th, 2005 |
| Replies: 7 Views: 1,623 This is a very sensitive subject for me, however I am looking for opinions from the tech community on it.. This past year has been screwing me left and right financially. I'll let you all in on... |
Forum: Geeks' Lounge Nov 10th, 2005 |
| Replies: 48 Views: 8,489 Yes yes, being grounded when you're in college. A true sign of an obsessive Internet dweller.
-Fredric |
Forum: C++ Nov 9th, 2005 |
| Replies: 5 Views: 4,035 Well, one thing that you could do is to take away the couts and use printfs... Use fopen, fprintf, and fscanf instead of the std fstream stuff. Make sure all of your variables for functions are... |
Forum: C++ Nov 8th, 2005 |
| Replies: 13 Views: 5,075 That may be true, but you should know that I had been using MFC exclusively for the past 3+ years...sigh... I had only found out about fltk and gtk within the past few months.
-Fredric |
Forum: C++ Nov 8th, 2005 |
| Replies: 13 Views: 5,075 Actually, I do write programs with user interfaces in emacs IN Linux. I use gtkmm, and fltk. They are extremely easy to use, understand, and I don't need to constantly check back through... |
Forum: C++ Nov 8th, 2005 |
| Replies: 13 Views: 5,075 In my opinion, if you can sit down in a simple text editor, and without looking at any notes, write out the code for a simple application, then you are using the right libraries for the job. If you... |
Forum: PHP Nov 7th, 2005 |
| Replies: 2 Views: 1,527 The 'return' character is not a space, it is '\n'.
-Fredric |
Forum: C++ Nov 7th, 2005 |
| Replies: 2 Views: 3,990 Why not use a constant pointer to the vector? If the vector is not zero, then make a copy of it inside the function.
string whateverTwo( int a, const vector<string> *defaultV = 0) {
... |
Forum: C Nov 7th, 2005 |
| Replies: 1 Views: 1,488 Probably the '.txt' that you are reading is an ASCII file. .jpg and (I think) .doc are binary files. The difference is that ASCII files generally store readable text data, and binary files... |
Forum: C++ Nov 7th, 2005 |
| Replies: 13 Views: 5,075 Sorry, I was referring to developing MFC applications, and I haven't seen anyone do it without that resource editor that comes with MSVC++ 6.0.. Seriously, do you know of any good tutorial or... |
Forum: C Nov 7th, 2005 |
| Replies: 1 Views: 4,867 http://www.daniweb.com/techtalkforums/thread19956.html |
Forum: C++ Nov 7th, 2005 |
| Replies: 13 Views: 5,075 Sure. If you are just starting out with GUI's then stay away from MFC, far, far, far away from MFC. In fact, always stay far away from MFC, there are things out there that surpass it in every... |
Forum: Getting Started and Choosing a Distro Nov 3rd, 2005 |
| Replies: 2 Views: 3,700 I started out with Gentoo, and I still use it for my server, because I haven't found anything better for my experience level...but I use Ubuntu for everything else:
http://www.ubuntulinux.org/
... |
Forum: Java Nov 2nd, 2005 |
| Replies: 11 Views: 1,968 public class b
{
public static void main(String args[])
{
a w = new a();
a.prt();
}
You're trying to call prt() as a static method of a, which it is not. Shouldn't that be w.prt()? |
Forum: C Nov 2nd, 2005 |
| Replies: 4 Views: 1,668 Easy. Go to the spot in the array where you want to delete the element. Copy the next element in the array to that spot, move to the next element. Repeat the process until you get to the end of... |
Forum: C++ Nov 2nd, 2005 |
| Replies: 3 Views: 1,333 I think he meant doing something like:
*sSaverPtr = filled;
Which dereferences whatever sSaverPtr points to, and changes the stored value there to filled.
-Fredric |
Forum: C Oct 31st, 2005 |
| Replies: 3 Views: 1,160 Well, if you don't know what is wrong with it, you can't expect anyone else to know what is wrong with it. What problem is it giving you, specifically? It compiles and runs just fine for me, and it... |
Forum: PHP Oct 30th, 2005 |
| Replies: 4 Views: 3,311 Like the error message makes perfectly clear, the variable is not defined anywhere before that call. Are you trying to send over the attachment's filename? Judging from your code, isn't that being... |
Forum: PHP Oct 30th, 2005 |
| Replies: 3 Views: 1,451 In PHP, as with most object oriented languages, $this is a reference variable that allows access to members variables of the class $this is used in. For example:
class NumberClass {
var... |
Forum: C++ Oct 29th, 2005 |
| Replies: 1 Views: 2,273 I don't quite understand what it is you're doing here:
void insert(int array[])
{
int value;
int *frontPtr = array; // referenced both pointers to first element into the... |
Forum: C++ Oct 27th, 2005 |
| Replies: 7 Views: 1,974 Well, try all numbers from D to 1,000,000. I was able to write a program that calculates this in under 20 seconds.
BestPi: 3.141592653588651 3126535/995207
I used one loop that went from D... |
Forum: C++ Oct 25th, 2005 |
| Replies: 2 Views: 2,881 I managed to get your code to compile and run, but I had to kill it after clicking twice. After looking at your code I noticed that you were trying to draw in the glut mouse function, that's a bad... |
Forum: Java Oct 17th, 2005 |
| Replies: 2 Views: 4,084 int i = 5; // Or number in the ascii table.
System.out.format("%c ", (char)i);
http://www.lookuptables.com/
Is that what you mean by special characters?
-Fredric |
Forum: C++ Oct 17th, 2005 |
| Replies: 2 Views: 1,342 A final class? You mean like a final variable in Java? I haven't heard of that before in C++. But to answer your question about making private constructors, the only reason why I could see you... |
Forum: C++ Oct 14th, 2005 |
| Replies: 8 Views: 2,554 I didn't see it the first time, but the ^ doesn't do what you think it does in C++, if you want to take m to the n power then you use the pow function like so...
#include <math.h>
...
... |
Forum: C++ Oct 14th, 2005 |
| Replies: 8 Views: 2,554 I think you know how to take a factorial of a number, but your variable usage is not good.
while ( z != 0)
{
result *= z;
z--;
} |
Forum: C++ Oct 14th, 2005 |
| Replies: 3 Views: 3,169 Isn't std::string the ANSI string?
Why are you not using std::string? If you were you could just do...
result.erase(result.find(' '));
To remove one space...
-Fredric |
Forum: C Oct 10th, 2005 |
| Replies: 4 Views: 3,932 I put the \r in there, and I started getting data from the server!
Thanks. :)
-Fredric |
Forum: C Oct 8th, 2005 |
| Replies: 4 Views: 3,932 That doesn't seem to work, although it should. I have no idea what's going on, I think I'll just have to settle with HTTP1.0...
-Fredric |