Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
81% Quality Score
Upvotes Received
4
Posts with Upvotes
2
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~35.4K People Reached
About Me

Student

Member Avatar for mattyd

The game is as follows: You may change [I]up to two[/I] (2) letters in the given example by either: [LIST] [*]adding one\two letters [*]removing one\two letters [*]adding one letter, removing one letter[/LIST]Example: [LIST=1] [*]Ruin [*]Rain[/LIST]I will begin: [B]Flume[/B]

Member Avatar for Reverend Jim
0
10K
Member Avatar for vegaseat

In Las Vegas random numbers move billions of Dollars in and out of gamblers' pockets. For the mildly inquisitive here is a test of three simple generators.

Member Avatar for rubberman
1
6K
Member Avatar for nanodano

[B]Introduction[/B] Hello everyone. This little code snippet shows you how to read in scan codes from the keyboard. It is slightly different than reading in a regular character. When you use the [INLINECODE]getch()[/INLINECODE] function, it is normally returning an ASCII value. Some keyboards have extra keys though. These include the …

Member Avatar for thendrluca
2
6K
Member Avatar for Ancient Dragon

I previously posted an MS-Windows example program about how to recursively search folders and create a list of their filename. This program is similar in concept but is for linux. It c++ and uses std::string and std::vector classes to hold the strings. When the program encounters a directory it will …

Member Avatar for Ancient Dragon
0
947
Member Avatar for nanodano

This code snippet actually contains a few nifty things. There are two functions, hasVisited() and main(). hasVisited() makes use of a very handy function for CGI programmers: getenv. You can see I use it to retrieve REMOTE_ADDR which is the person's IP address. In main() it gets the count from …

Member Avatar for manutd
0
256
Member Avatar for nanodano

This snippet shows how to use command line arguments as variables in your program. A command line argument is extra information you give a program at runtime, by typing the information after the program name like so: Linux might look like this: user$: ./myprogram argument1 argument2 A windows command prompt …

0
179
Member Avatar for nanodano

I've been trying to solve this problem for a while now with no luck. I want to monitor an input buffer(cin) for a keypress. The catch is, I don't want it to hang if the buffer is empty. [INLINECODE]getch()[/INLINECODE] and [INLINECODE]peek()[/INLINECODE] won't work because one waits for a keypress and …

Member Avatar for cniggeler
0
144
Member Avatar for nanodano

I'm writing a Win32 application for Windows XP with Visual Studio 2005. It is a console program, and I'm trying to find the HWND attribute of my console. I need this because I need to use it as a parameter for a function. So, thanks to the MSDN library I …

Member Avatar for lenhattien
0
511
Member Avatar for nanodano

I think it is unfair to stick the Ruby discussion forum inside Web Development. Ruby on Rails is a really handy web framework, but Ruby has other capabilities. I think it should be put under Software Development, does anyone agree?

Member Avatar for peter_budo
0
236
Member Avatar for nanodano

Hi, I'm trying to write a program using named pipes, and I'm having trouble opening it. In another program I call this line: [code] mkfifo("./fife", 0777); [/code] So my named pipe exists and I see it in my list of files. Then I run the program I included below, but …

Member Avatar for Salem
0
175
Member Avatar for zellex

Hello, I'm designing a C++ Program for a connect 4 game. I have the matrix set up, the test to determine if there is a winner, and now I need to design the computer to go against the player. This seems to be quite a challenge. First, I need to …

Member Avatar for mentkapto
0
1K
Member Avatar for nanodano

When programming with pthreads, you pass the thread a function to run when you create it. When this function is done, is the thread cleaned up automatically? Is it necessary to put [inlinecode]pthread_join()[/inlinecode] in the calling function somewhere? Is [inlinecode]pthread_join[/inlinecode] only useful when you want to [I]wait [/I]for a thread …

Member Avatar for mcldev
0
204
Member Avatar for nanodano

I've been trying to find a function that returns the version number of the JVM. I found this website that does it, so I know it can be done: [url]http://www.javatester.org/version.html[/url] Can anyone help me out?

Member Avatar for Ezzaral
0
112
Member Avatar for nanodano

I need to research ways to run a diagnostic check on a user's browser. This includes [LIST] [*]Cookies enabled [*]Javascript available and version [*]Pop-up windows enabled [*]Javascript available and version [*]Flash available and version [/LIST] If anyone has any tips on how to integrate all of these checks on a …

Member Avatar for MattEvans
0
70
Member Avatar for nanodano

Do you think it is OK for a supervisor to fire an employee for getting a call from another company they applied for? Is it standard business practice to call someone's current employer to ask about them?

Member Avatar for joshSCH
0
91
Member Avatar for nanodano

Is there any way to read or write to a socket besides using the [inlinecode]read()[/inlinecode] and [inlinecode]write()[/inlinecode] functions. Is there any way to treat it like a stream and use the insertion/extraction operators (<< and >>)? The reason I ask is because with read I have to put an arbitrary …

Member Avatar for vijayan121
0
181
Member Avatar for nanodano

Is it possible to have a perl script and a bash script in one file? Like: [code] #!/bin/perl print "This is perl"; #exit perl #!/bin/bash echo "This is bash" exit 0 [/code] This is probably just a complicated solution to a simple problem. I have a perl script, and at …

Member Avatar for KevinADC
0
147
Member Avatar for nanodano

I have a very specific problem. Does s/// work with strings that are contained in single quotes? I've been debugging and I'm trying to replace a string that contains a $ in it. If I use double quotes, it works for the string up until the $. If I use …

Member Avatar for KevinADC
0
137
Member Avatar for nanodano

I'm trying to create a general buffer that I can use in my program. It will work with ints as well as strings. So far I've been using a strstream, and it works without a hitch, but I was wondering if there is a way to just create a generic …

Member Avatar for iamthwee
0
75
Member Avatar for nanodano

I am working with form processing and text manipulation, and I found two useful functions; tr/// and s/// They do pretty much the same thing, but I was wondering if anyone could explain to me what the difference is and if one would ever be more useful than the other …

Member Avatar for KevinADC
0
122
Member Avatar for nanodano

Hi, I'm trying to write a simple Queue class, but I'm having trouble using it. It tells me I have undefined references to the functions I call in main. [code] // main.cpp #include <iostream> #include "queue.h" void main() { Queue<int> myq; myq.push(10); std::cout << myq.isempty() << endl; myq.makeempty(); std::cout << …

Member Avatar for Narue
0
146
Member Avatar for bops

Hi, I'm relatively new to socket programming in C/C++ but i have read a few tutorials and had a good go at trying to do it. I have got to the point where i have created a kind server that will accept incoming connections and then when the data is …

Member Avatar for bops
0
458
Member Avatar for MDGM

hi all, My website host does not support changing perl file permissions online through an ftp program or any other method, and i need to change my .pl file to have different permissions in order for them to work. how do i change my file's permissions to chmod 755 or …

Member Avatar for MattEvans
0
107
Member Avatar for nanodano

Does anyone know where I can find the pthread library for Linux? And I don't want any rude "go google it" responds. I tried that, and all I came up with was one download available for win32.

Member Avatar for nanodano
0
74
Member Avatar for Acquire

I'm fairly new to C and have been doing pretty good up until arrays. I understand the basics of them but not exactly how to use and impliment them in more complicated ways. I am trying to write a program that will display a table of strings and intigers from …

Member Avatar for majicbeans
0
237
Member Avatar for nanodano

I'm trying to get into some practice with Mesa GL and I know it works for the X desktop. Will it work the same with Gnome or KDE? Are those based off of X?

Member Avatar for Rashakil Fol
0
45
Member Avatar for mattyd

Hello: Something as seemingly simple as an If\ Else statement is causing me much trouble and I cannot figure out where the error lies. I believe it to be in:[LIST] [*]The variable scope [*]The use of the static variable [*]Or, the misplacement of curly brackets (something that has a tendency …

Member Avatar for nanodano
0
233
Member Avatar for newbie2c++

Hi everyone! So I can't seen to get this program to compile and run. THis is exactly what I'm shooting to do: This program should calculate which division in a company had the greatest sales for a quarter. It should use the following functions: [LIST=1] [*]A function should ask the …

Member Avatar for John A
0
187
Member Avatar for nanodano

Is there a way to set global hot keys? I want to be able to run a program using a hotkey like CTRL-F12 or something. Any ideas how to do that?

0
49
Member Avatar for nanodano

I have a question and I was hoping someone could point me in the right direction. I know the IP address of a server I want to download a file from, and I know the path on the client hard disk I want to download it to. How could I …

Member Avatar for ~s.o.s~
0
92