User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 403,558 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,313 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 74
Search took 0.01 seconds.
Posts Made By: tones1986
Forum: Assembly Jul 9th, 2008
Replies: 1
Views: 377
Posted By tones1986
printing output correctly, please help

I am attempting to print some output using XPRNT in my program. We are using very basic/old assemler assist program and mvs batch to code everything.

My code basically reads in a employee number,...
Forum: Assembly Jun 30th, 2008
Replies: 1
Views: 384
Posted By tones1986
Re: Basic Program Help - file input

Heres a quick update, i have continued working on the assignment and gotten a working loop. But am now concerned that for whatever reason the way i am reading the input file correctly - or the...
Forum: Assembly Jun 30th, 2008
Replies: 1
Views: 384
Posted By tones1986
Basic Program Help - file input

Hey guys... this is my first time working with assembler, so please be patient with me! I am currently taking a course in assembler and have had a couple of basic assignments so far (mainly number...
Forum: Windows Vista May 19th, 2008
Replies: 3
Views: 486
Posted By tones1986
Re: BSOD - Hardware Error ... help please

I got the same errors before i installed SP1... so not sure where to go from here!
Forum: Windows Vista May 12th, 2008
Replies: 3
Views: 486
Posted By tones1986
BSOD - Hardware Error ... help please

Hey folks. I am getting a BSOD error with Windows Vista SP1 on the following system:

E6400 Dual Core
P5NSLI
4GIG G.Skill PC6400 DDR2 RAM
1 x 500GB Maxtor 7200rpm
BFG 312mb 8800 GTS OC Vid....
Forum: C++ May 6th, 2008
Replies: 2
Views: 223
Posted By tones1986
Re: Problems with overload operator method

Great - thank you for your help.
Forum: C++ May 6th, 2008
Replies: 2
Views: 223
Posted By tones1986
Problems with overload operator method

Hi all. I am having a hard time trying to properly declare a header for my assignment overload operator function.

My prototype for the function is:

const BSTree<T>& operator=(const...
Forum: C++ May 6th, 2008
Replies: 6
Views: 585
Posted By tones1986
Re: Binary Search Tree - create new node

Thanks for all of the help - i have come across another issue with this program. I have most of the code done, besides a function called copyTree()

Here is the prototype:
BSTNode<T>*...
Forum: C++ May 5th, 2008
Replies: 6
Views: 585
Posted By tones1986
Re: Binary Search Tree - create new node

Thank you for your response - good to know im on the right track.

Another thing has popped up for me. I am attempting to print my binary tree in preorder traversal way... and i have to use 2...
Forum: C++ May 5th, 2008
Replies: 6
Views: 585
Posted By tones1986
Re: Binary Search Tree - create new node

Well, i think i have sorted it out just now on my own, but maybe someone could confirm ...


I used the new keyword to make this work...


BSNode<T> * mynwenode;
mynewnode = new BSNode<T>(newdata);
Forum: C++ May 5th, 2008
Replies: 6
Views: 585
Posted By tones1986
Binary Search Tree - create new node

Hey All - i working on a assignment for school. Given that, i would like to say i have attempted numerous ways to get this working, and its a simple part of teh assignment. Basically i am having...
Forum: C++ Apr 28th, 2008
Replies: 7
Views: 375
Posted By tones1986
Re: templates - how to?

I was able to work oout the push() function and am now able to insert items into the linked list without any problems...

My next concern, as mentioned above, is that of the copy constructor.

I have...
Forum: C++ Apr 28th, 2008
Replies: 7
Views: 375
Posted By tones1986
Re: templates - how to?

I figured that this was due to my having my struct declaration below my class declaration. Very stupid, idiotic mistake. I moved it above my class and it worked fine.

New question...

How would be...
Forum: C++ Apr 27th, 2008
Replies: 7
Views: 375
Posted By tones1986
Re: templates - how to?

After continuing working with my code/program. I still cannot figure out some of the errors i am getting. I just dont understand why i cant declare my variables as i have them, so if someone could...
Forum: C++ Apr 27th, 2008
Replies: 7
Views: 375
Posted By tones1986
Re: templates - how to?

Thank you for the help so far. That was really easy to understand and helped me figure alot of this stuff out... i have come across another problem. I am supposed to make a dynamically allocated list...
Forum: C++ Apr 24th, 2008
Replies: 7
Views: 375
Posted By tones1986
templates - how to?

Hey guys and girls. I am working on a project that needs to use templates. My professor didnt go over teh use of them in class, nor is our book very descriptive of them. Im assuming they are way...
Forum: C++ Apr 1st, 2008
Replies: 4
Views: 402
Posted By tones1986
Re: Dynamic Array - basic program, please help

I have got this part of the program working with the following:


ostream& operator<<(ostream& output, const Vector &vec)
{
cout << vec.arraySize;
cout << "(";
for (int i = 0; i <...
Forum: C++ Apr 1st, 2008
Replies: 4
Views: 402
Posted By tones1986
Re: Dynamic Array - basic program, please help

Thank you... thats a very good point. I have everything in a class called Vector... so i should therefore have access to the size variable right? Note .... this function is set as a friend method of...
Forum: C++ Apr 1st, 2008
Replies: 4
Views: 402
Posted By tones1986
Dynamic Array - basic program, please help

Hey Guys

I am trying to get a basic program to work with dynamic memory allocation.

I have a problem with a overload operating my stream operator...<<

On my previous program i used...
Forum: C++ Mar 17th, 2008
Replies: 1
Views: 242
Posted By tones1986
Constructor - able to take 0 or more arguments

Hey folks. I am confused as to how i can make a constructor take zero - or lets say 3 arguments. If i do this in my main.cpp:


const Vector v1;
const Vector v2(1.0, 2.0, 3.0);


And this in...
Forum: C++ Feb 25th, 2008
Replies: 4
Views: 436
Posted By tones1986
Re: Segmentation Fault - multiple header files - confused

Wow - seeing as im not a complete idiot - i just realized i do have a Name name1; in my Employee.h file...

This should now work - we shall see - if i come across any REAL problems, ill repost here...
Forum: C++ Feb 25th, 2008
Replies: 4
Views: 436
Posted By tones1986
Re: Segmentation Fault - multiple header files - confused

Thank you for your input again. I tried the Name::getName(----); code and i got the following error message:

94 C:\Users\Tony\Documents\Employee.cpp cannot call member function `void...
Forum: C++ Feb 25th, 2008
Replies: 4
Views: 436
Posted By tones1986
Segmentation Fault - multiple header files - confused

Hey folks.

I am working on a project that adds additional information to previous projects. Basically, for ezch project i have added another header file with cpp file. For example, originally we...
Forum: C++ Feb 5th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

I got my stupid function to work with the ifstream objects etc being sent to the functions.

A new problem has arisen, (of course right?). I have been working on this new problem for the past 3 hrs...
Forum: C++ Feb 5th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

Changing the position of the printing loop solved my problem. Good call. It now prints correctly - good help as always. When it comes to input streams, the basics, i understand, eg - reading a file,...
Forum: C++ Feb 4th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

I figured out where my problem is... it is not with anything posted above, it is in fact with my greaterThan() bool function.

This function takes 2 classes, a temp and the original, and compares 2...
Forum: C++ Feb 4th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

Ha! I noticed that too. I should have copied my previous example ... duh. By doing the above, it seems to work - well at least compile. With the idea i would like to print out the data after sorting...
Forum: MySQL Feb 4th, 2008
Replies: 3
Views: 1,548
Posted By tones1986
Re: external database connection

I tried the link and it was somewhat useful - but i still couldnt get a connection, if i place the exact same file on the actual server the database is on, the connection works, anywhere else, i...
Forum: C++ Feb 4th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

You, as always, were 100% correct. In my effort to just cut and paste half my first assignment into a new project i neglected to change the header guards for name.h. I corrected this and got the code...
Forum: MySQL Feb 2nd, 2008
Replies: 3
Views: 1,548
Posted By tones1986
external database connection

Hi guys. I wanted to know if something would be possible. I currently have a server that runs mySQL and i created a database on there for use with PHP-Nuke Treasury module. I don't know much in the...
Forum: C++ Jan 31st, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

I got this all working really just fine. The assignment is finished. The problem i was having was fixed. My next assignment, i have to add 2 other files to this project. I am adding a another .cpp,...
Forum: Motherboards, CPUs and RAM Jan 30th, 2008
Replies: 7
Views: 937
Posted By tones1986
Re: motherboard upgrade for future quad core

Thanks for the reply. Are there any other options out there? thanks folks.
Forum: Motherboards, CPUs and RAM Jan 29th, 2008
Replies: 7
Views: 937
Posted By tones1986
motherboard upgrade for future quad core

Hey folks. I am looking to get a new motherboard that can run all my current specs but is a board i can buy new parts for in 4-6 months.

Currently:
P5NSLI
2 gig G.Skill PC6400
Dual Core Duo 2...
Forum: C++ Jan 28th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

THanks for the help again. I sorted out my strcpy() problem before i saw this after realizing my own mistake... cant use = to copy strings etc. ... whoops.

I changed that function to look like...
Forum: C++ Jan 28th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

employee.cpp file

#include "Employee.h"
#include <iostream>

/****************************************************************
FUNCTION: Employee:Employee()
ARGUMENTS: none
RETURNS: ...
Forum: C++ Jan 28th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

Hey folks. I have been able to sort out a large portion of this myself (wow i think i might actually be understand the basic stuff at last) and now have come across another problem.


#include...
Forum: C++ Jan 27th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

The reasons i chose such small numbers (sorry for not explaining earlier) is that that are the numbers given per the assignment (obviously the professor knew no names were going to be over 15 char...
Forum: C++ Jan 27th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

THanks for the help once again Val. I got a reply from my TA in my c++ class about my question also. With both your help i figured out a way to solve my problem. At least i thought so --- here is...
Forum: C++ Jan 26th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

Another quick question. Under my class (within header file employee.h) i have firstName, lastName, department, and salary. If i am working from my main.cpp how can i access the private section of...
Forum: C++ Jan 26th, 2008
Replies: 26
Views: 3,276
Posted By tones1986
Re: Problem declaring class object array

You were right. The reason it wouldnt see the method.cpp file is that i was trying to compile the program within dev c++ but it wasnt set up as a project. Im unsure how to do this. Is it really as...
Showing results 1 to 40 of 74

 
All times are GMT -4. The time now is 2:13 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC