Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: Ghosty
Forum: Coder's Corner Lounge Dec 24th, 2006, 2:55 AM
Replies: 20
Views: 455
Posted By Ghosty
It seems to me that the two languages that are...

It seems to me that the two languages that are most commonly seen in schools are Java and C++. It would probably do you well to read up on them, especially the object oriented structures. Your...
Forum: C++ Dec 17th, 2006, 11:21 PM
Replies: 7
Views: 196
Posted By Ghosty
Thanks for the link. I'm definitely going to...

Thanks for the link. I'm definitely going to read up on string streams.
Forum: C++ Dec 15th, 2006, 1:59 PM
Replies: 7
Views: 196
Posted By Ghosty
You are indeed right DaWei. I was in a rush to...

You are indeed right DaWei. I was in a rush to fix the code and didn't bother reading up on sprintf. I have the code working however.

Thanks for the help GE.
Forum: C++ Dec 14th, 2006, 11:16 PM
Replies: 7
Views: 196
Posted By Ghosty
This code works for the most part. I don't know...

This code works for the most part. I don't know how to format the output though. Ideally, I'd like the output file to look similar to this:


1
2
3
5
7
11
13
Forum: C++ Dec 14th, 2006, 8:43 PM
Replies: 7
Views: 196
Posted By Ghosty
Well that certainly explains why I wasn't getting...

Well that certainly explains why I wasn't getting readable files. But I included <stdlib.h> and itoa() is reported as undefined. Does Gcc not support it?

Edit: A little googling made me aware of...
Forum: C++ Dec 14th, 2006, 7:05 PM
Replies: 7
Views: 196
Posted By Ghosty
new unix problem: signals and write() calls

The following code will print prime numbers and output them to a file specified by the user. Also, it will call the alarm() based on values passed on the command line. The SIGALRM and the SIGUSR1...
Forum: C++ Dec 14th, 2006, 1:01 PM
Replies: 4
Views: 115
Posted By Ghosty
It seems to be working just fine with the...

It seems to be working just fine with the globals. There were some bugs but the logic of the code is sound. Why can't the signal handler be passed anything more than int signo? Is that just the...
Forum: C++ Dec 14th, 2006, 1:57 AM
Replies: 4
Views: 115
Posted By Ghosty
Thanks for your reply. That code you posted is...

Thanks for your reply. That code you posted is making my head hurt so I'll have to stare at it for awhile. The actual code you have in the sig_handler() looks similar to the code I had before this...
Forum: C++ Dec 14th, 2006, 1:09 AM
Replies: 4
Views: 115
Posted By Ghosty
unix signal processing

The following is a program I'm trying to get working. My problem isn't the code itself. I can't seem to understand signal handling no matter what I read or try. Will someone please help me...
Forum: C++ Nov 8th, 2006, 11:42 AM
Replies: 7
Views: 195
Posted By Ghosty
That certainly seems like a better explanation...

That certainly seems like a better explanation The Dark. I don't really want to use malloc if I don't have to though. How would I use new to create space for the pointer that I'd be passing if I...
Forum: C++ Nov 8th, 2006, 12:34 AM
Replies: 7
Views: 195
Posted By Ghosty
Fixed. Thanks for the reply DaWei. That code is...

Fixed. Thanks for the reply DaWei. That code is rubbish anyway. My completed assignment is 4 lines of code. I didn't need malloc/free or new/delete as my book was misleading. I do need to get a...
Forum: C++ Nov 7th, 2006, 10:58 PM
Replies: 7
Views: 195
Posted By Ghosty
Updated. I'm using the malloc command...

Updated. I'm using the malloc command successfully now, but I don't understand how to increase the size of my environment variable.

#include <iostream>
#include <stdlib.h>
#include <stdio.h>

using...
Forum: C++ Nov 7th, 2006, 9:38 PM
Replies: 7
Views: 195
Posted By Ghosty
setting env vars in unix

Please examine the following code:

#include <iostream>
#include <stdlib.h>

using namespace std;

int main(){

char * envVar;
Forum: C++ Oct 31st, 2006, 8:22 PM
Replies: 3
Views: 98
Posted By Ghosty
I discovered that stat is already defined in...

I discovered that stat is already defined in stat.h. From my text I got the impression that I had to define it manually.

For time.h, I might need it eventually but I don't need it for the snippet I...
Forum: C++ Oct 31st, 2006, 8:12 PM
Replies: 3
Views: 98
Posted By Ghosty
compile problem: unix program to monitor access times

This is my code. As you can see it doesn't do much.

#include <iostream>
#include <string>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>

using namespace std;
Forum: Coder's Corner Lounge Oct 10th, 2005, 10:11 PM
Replies: 19
Views: 386
Posted By Ghosty
This video has forced me to post something. I...

This video has forced me to post something. I have only this to say: WTF?

On the other hand, my friend thinks she's from Ohio.
Forum: Coder's Corner Lounge Sep 25th, 2005, 5:53 AM
Replies: 29
Views: 940
Posted By Ghosty
Sega Genesis or SNES. I can't decide which I...

Sega Genesis or SNES. I can't decide which I like better at the moment. Current gen systems are good but they haven't beaten the classics yet.
Forum: C++ Sep 17th, 2005, 4:24 AM
Replies: 20
Views: 475
Posted By Ghosty
I found the Deitel and Deitel series C++ How to...

I found the Deitel and Deitel series C++ How to Program to be very easy to understand and informative for beginners. They give you good descriptions of problems, code examples and suggestions on...
Forum: Coder's Corner Lounge Jul 3rd, 2005, 6:34 AM
Replies: 1,430
Views: 23,610
Posted By Ghosty
Great song though I like White Trash by...

Great song though I like White Trash by Steriogram more. Currently, I'm listening to Lucky Boys Confusion- Breaking Rules. Wait no that's a lie, Stiff Little Fingers- Suspect Device just started. ...
Forum: Community Introductions Jun 3rd, 2005, 1:45 AM
Replies: 8
Views: 182
Posted By Ghosty
Sup everyone?

I post as Ghosty but my real name is Chris. I'm currently in college and learning C++. I did some assembler last year and I've tried out Java and VB in the past. I haven't done anything...
Forum: Other Programming Languages Jun 2nd, 2005, 2:32 AM
Replies: 12
Views: 372
Posted By Ghosty
I would've loved to help you but besides Ooble...

I would've loved to help you but besides Ooble beating me to it, I haven't seen Pascal code in years. It took me a few minutes to even recognize it.
Forum: C++ May 31st, 2005, 2:37 AM
Replies: 16
Views: 362
Posted By Ghosty
C++ How to Program 5th Edition by Deitel and...

C++ How to Program 5th Edition by Deitel and Deitel. It's easily one of the best C++ books I've ever used. The 5th Edition introduces Class and Objects earlier than the 4th edition does. It's also...
Showing results 1 to 22 of 22

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC