Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~12.9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for TheFueley

I remember doing a class to handle rational numbers in one of my classes way back when. I decided to do it again. What I'm having trouble understanding right now is why do I even create a class when my overloaded functions are all friend functions? As I understand it, …

Member Avatar for TheFueley
0
666
Member Avatar for TheFueley

I'm having trouble figuring out how to use exceptions to check if a file stream was created successfully. I know I can use if statements, but how do I do this using try/catch statements? It compiles successfully but it gives me an error when I supply a non-existent filename as …

Member Avatar for TheFueley
0
8K
Member Avatar for Slephnir

I am learning c++, below is an attempt at a simple XOR encryption program. I am am using Dev c++ (Blooodshed Ide) using the ming-gw win 32 gcc compiler blah blah. This code compiles without errors or warnings but it will not produce an 'exe' only a '.o' file, firstly …

Member Avatar for Salem
0
2K
Member Avatar for TheFueley

How do you guys recommend searching an ArrayList for a specific string? My arraylist is defined as: [code=vb] Public Shared VisioSwitchArray As New ArrayList() Public Structure switch Public HOSTNAME As String Public IP As String Public MODEL As String Public VLANS As String Public NEIs() As neighbor End Structure Public …

Member Avatar for TheFueley
0
1K
Member Avatar for TheFueley

Plink is a command-line version of PuTTY, a Windows SSH client program. I am trying to get the output from plink to display in a textbox within a VB form. I can get it to work but I must hit the ENTER key twice before it shows anything, everytime. So …

Member Avatar for TheFueley
0
195
Member Avatar for TheFueley

Hello, I'm having trouble writing to a file. I can open notepad ok, but I cannot write a string to it. What am missing here? TIA. [code=vb] Imports System.IO Module Module1 Sub Main() Dim start_info As New ProcessStartInfo("notepad.exe") start_info.UseShellExecute = False start_info.ErrorDialog = False start_info.RedirectStandardInput = True start_info.RedirectStandardOutput = True …

Member Avatar for TheFueley
0
113
Member Avatar for TheFueley

Hello all, I am trying to make a linked list (class-based). I'm not sure if I went actually did it right. I get a compiler error on the segment of code that deals with printing the linked list to stdout. Here is the seqment in question. [code=cpp] // print contents …

Member Avatar for TheFueley
0
169
Member Avatar for TheFueley

Hello all, I want to programmatically add users to a distro list in Outlook 2003(server). I haven't been able to find a suitable solution nor have I been able to even determine which language to use. I'm guessing that C# could be used. Anyone know of any examples of this? …

Member Avatar for TheFueley
0
76
Member Avatar for TheFueley

I'm trying to work out what should be a simple composition example. For some reason I can't compile this project though. I get three errors when I try to compile. Errors listed below. Where am I going wrong? 1>c:\documents and settings\user\my documents\visual studio 2008\projects\name\name\ssn.h(5) : error C2011: 'SSN' : 'class' …

Member Avatar for TheFueley
0
174
Member Avatar for TheFueley

This one of those typical Rational number programs. It takes a user-supplied fraction and then another. Then it does the 4 basic math operations on it. Finally it compares the fractions to each other. I have the program working fine. I just want to know how to fix this warning …

Member Avatar for TheFueley
0
166
Member Avatar for TheFueley

When I have [ICODE]sizeof(utmp)[/ICODE], 384 is returned. So when I try to find out the size of the individual members, I get a different result. Using the method below, I come up with 382 bytes. Anyone know where I'm missing the other 2 bytes? [CODE=CPP] #include <iostream> using std::cout; using …

Member Avatar for TheFueley
0
166
Member Avatar for TheFueley

How would I display an IP address from /var/log/wtmp? I know I could use utmpdump, but that's not what I'm going for. I have included bits/utmp.h and can display other members of the struct, but when i try to display the ut_addr_v6 member, I get a random hex address instead. …

0
76
Member Avatar for TheFueley

I'm trying to figure out how to write an int (as a record number) and a string (up to 12 characters) into a binary file. So in one project the binary file is created with all 5 records written to it, with blank data, eg string is empty. In the …

Member Avatar for TheFueley
0
115