Search Results

Showing results 1 to 35 of 35
Search took 0.01 seconds.
Search: Posts Made By: Ratte
Forum: Java Feb 27th, 2009
Replies: 1
Views: 364
Posted By Ratte
I am in the process of designing a game implementation in Java, and without much experience with GUIs past swing applications, I am not quite sure where to start with this.

The game I will be...
Forum: C# Mar 26th, 2008
Replies: 1
Views: 5,978
Posted By Ratte
I need my program to connect to a database, check if a table exists, and if not, create it.

I intend to check the presence of a table by simply running a "select * from table" query via an...
Forum: C# Feb 5th, 2008
Replies: 1
Views: 2,011
Posted By Ratte
I am supposed to write a custom exception handling constructor. First, I need to write a read/write string property and then I write the constructor that somehow needs to accept this property as a...
Forum: C# Jan 29th, 2008
Replies: 1
Views: 931
Posted By Ratte
I am very new to Visual Studio/C# (although I have a good deal of C and C++ knowledge) and it seems that I am missing something since I cannot figure out how to do this and I am getting frustrated...
Forum: C++ Nov 19th, 2007
Replies: 4
Views: 685
Posted By Ratte
Forum: C++ Nov 19th, 2007
Replies: 4
Views: 685
Posted By Ratte
OK looks like I found a use myself.

I just read the entire file into a hash table and then pass the hash array to a quicksort function to sort it....
Forum: C++ Nov 19th, 2007
Replies: 4
Views: 685
Posted By Ratte
I have a person datafile of many entries. Persons will be stored in a linked list and each of the person amongst other things will have a linked list of items belonging to them.

The object of the...
Forum: C Nov 15th, 2007
Replies: 1
Views: 1,189
Posted By Ratte
I need to write a function that will take a char* string and populate a char* array with elements of the original string. The elements of the original string are whitespace-delimited.

I have...
Forum: C Nov 15th, 2007
Replies: 1
Views: 884
Posted By Ratte
Well, I got this figured out.

I will do it this way:

command/argument processor function (extracts/separates a user command and its arguments)

if arg1 is "help" then help function is called...
Forum: C Nov 15th, 2007
Replies: 1
Views: 884
Posted By Ratte
I am designing an ftp client prompt in C (unix environment).

At this point, I have an infinite loop with an fprintf of the prompt on stdout and an fgets for reading user input.

I need help with...
Forum: C Nov 14th, 2007
Replies: 3
Views: 1,233
Posted By Ratte
Thanks again, Duoas. Both the server and the client will be on a Solaris (Unix) machine.

The object of this socket/network programming class is to keep things as barebone/simple as possible, so I...
Forum: C Nov 13th, 2007
Replies: 3
Views: 1,233
Posted By Ratte
I am writing client and server programs for a simple FTP.

I am allowed to use chdir, getcwd and getenv.

What would be a correct procedure to expand a user provided path correctly using these...
Forum: C++ Nov 13th, 2007
Replies: 4
Views: 557
Posted By Ratte
Yes, I think he was using a microsoft product. Do you have to have the studio or C++ express will do?

Thank you.
Forum: C++ Nov 13th, 2007
Replies: 4
Views: 557
Posted By Ratte
I overheard a conversation in a class the other day about someone being able to "look" into various classes and data storage types and see what is being stored as you run the program.

I understand...
Forum: Database Design Nov 13th, 2007
Replies: 0
Views: 1,359
Posted By Ratte
I have this relation:

R(A,B,C,D,E,G)
F = { AB -> C
AC -> D
AD -> E
B -> D
BC -> A
E -> G }
Forum: C++ Nov 13th, 2007
Replies: 7
Views: 789
Posted By Ratte
Thank you Duoas, you have been very helpful.

I chose not to do it that way initially because I wanted to keep my Graph function nice and clean, but I do see the advantage in doing it that way. I...
Forum: C++ Nov 13th, 2007
Replies: 15
Views: 7,434
Posted By Ratte
I must say I'm surprised that there is no simple solution to this in such a complex language.

Actually, ENTER would work just as well for me, however, I do not understand why, but my program skips...
Forum: C++ Nov 13th, 2007
Replies: 15
Views: 7,434
Posted By Ratte
I've searched all over the place and I cannot seem to find a well working, reliable solution to this that is not platform specific.

Here is what I have:

Main menu of a class (while loop with 0...
Forum: C++ Nov 13th, 2007
Replies: 7
Views: 789
Posted By Ratte
Thanks Duoas, I didn't realize this was possible. I thought the same applied as with local variables.

So it is not possible to return a pointer to the graph then? I would return an array of...
Forum: C++ Nov 13th, 2007
Replies: 7
Views: 789
Posted By Ratte
Before I write this, I realize there are way better ways to accomplish what I am asking, but I am JUST wondering if it is possible to do it the way I am asking.

I have a main function called...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,582
Posted By Ratte
I understand now. Thanks.

Here is my last issue:

the only data member of the Graph is:

SinglyLinkedList<T> array[SIZE];

it does not work if I add const int SIZE right before it. My guess...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,582
Posted By Ratte
Thanks again for your help!

The new way you posted is a bit hard to understand for me. When you use typename, do you actually mean typename, or should I replace it with class?

Also, how do I...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,582
Posted By Ratte
I am getting another error when instantiating a Graph object with an integer.


int numcourses;

Graph <Course, numcourses> graph;


"error- numcourses cannot appear in a...
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,582
Posted By Ratte
Forum: C++ Nov 11th, 2007
Replies: 8
Views: 1,582
Posted By Ratte
I have a template Graph class which uses an adjacency matrix (array of singly linked lists).

I need to be able to initialize the Graph with a size.

I guess it is done this way?

template...
Forum: C Nov 2nd, 2007
Replies: 1
Views: 1,589
Posted By Ratte
I have a file of 14 functions. I know I need an extern array of 14 bools. If something goes wrong in one of these functions, the function should modify its respective array member to false. I want...
Forum: C Nov 2nd, 2007
Replies: 6
Views: 1,710
Posted By Ratte
Yes. Here is the signal handler:


void sig_chld(int signo)
{
pid_t pid;
Signal(SIGCHLD, sig_chld);

pid = Wait(0);
printf("child %d terminated\n", (int)pid);
Forum: C Nov 2nd, 2007
Replies: 6
Views: 1,710
Posted By Ratte
Yep, this will run on a Solaris machine.

Basically, I need the wrapper functions to do the regular job of the functions, EXCEPT for when an error occurs. In that case I need to print an error...
Forum: C Nov 2nd, 2007
Replies: 6
Views: 1,710
Posted By Ratte
I need to write wrapper functions for fork and signal functions. These functions will handle errors by fork() and signal() and exit, if an error occurs.

The problem is I am not sure exactly what...
Forum: C Nov 2nd, 2007
Replies: 8
Views: 2,406
Posted By Ratte
fgets reads until x (size of buffer) amount of characters are read OR a newline character is encountered. In my case, the buffer was quite large, so the client's fgets was waiting till either the...
Forum: C Nov 2nd, 2007
Replies: 8
Views: 2,406
Posted By Ratte
Actually, you can do strlen(UNKNOWN). Give it a try and see that it works.


#define UNKNOWN "Unknown"
#include <stdio.h>


int main ()
{
Forum: C Nov 2nd, 2007
Replies: 8
Views: 2,406
Posted By Ratte
I am writing a server function and an error message is defined as:


#define UNKNOWN "Unknown"


I have a function:


void search(int sockfd) {
Forum: C++ Oct 14th, 2007
Replies: 3
Views: 1,735
Posted By Ratte
Thank you for your help. This is for a school project, so I have to follow the format given.

Actually, I forgot to mention one thing. I am allowed to check if a line contains PHY in it - then it's...
Forum: C++ Oct 14th, 2007
Replies: 1
Views: 833
Posted By Ratte
I have a template singly linked list function that has a node class:

template <class T>

class Node {

T Data;
Node <T> *Next;

public:
Forum: C++ Oct 14th, 2007
Replies: 3
Views: 1,735
Posted By Ratte
I need to read a text file that contains data of the following type:


John Doe 333222333 01/01/80 M
PHY301 2005 Fall A
PHY401 2005 Fall B
PHY531 2006 Spring A
John Doe 333222333 01/01/80 M...
Showing results 1 to 35 of 35

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC