Search Results

Showing results 1 to 40 of 267
Search took 0.02 seconds.
Search: Posts Made By: Duki ; Forum: C++ and child forums
Forum: C++ Nov 6th, 2009
Replies: 1
Views: 238
Posted By Duki
Hey guys,

I'm about to start on a research project about multi-threading. I'm very comfortable with c++ oop/data structures concepts, but am completely new to programming with multiple threads. ...
Forum: C++ Sep 23rd, 2009
Replies: 3
Views: 225
Posted By Duki
click me (http://www.daniweb.com/forums/announcement8-2.html)
Forum: C++ May 20th, 2009
Replies: 14
Views: 584
Posted By Duki
Sorry for the confusion. Let me try to clarify it a little. What I'm trying to do is to get two already written programs to work together. I have one program that gets data from a Laser Measurement...
Forum: C++ May 20th, 2009
Replies: 14
Views: 584
Posted By Duki
So let me see if I understand this. If I use

template <class T>
std::string to_string(T t, std::ios_base & (*f)(std::ios_base&))
{
std::ostringstream oss;
oss << f << t;
return...
Forum: C++ May 20th, 2009
Replies: 14
Views: 584
Posted By Duki
I am trying to convert an array of longs to an array of chars. There are 1081 elements in the long array. Each element is 4 digits long. Is there a function in C++ that will convert a long something...
Forum: C++ May 6th, 2009
Replies: 2
Views: 450
Posted By Duki
So my Data Structures class has finished the book we were using, but we still have a week of school left. My instructor has started going over binary files... only problem is I wasn't there when he...
Forum: C++ Apr 28th, 2009
Replies: 2
Views: 289
Posted By Duki
Awesome. The bot is currently Windows based, but we have plans on migrating to Kubuntu eventually... hopefully next year.

Thanks again.
Forum: C++ Apr 27th, 2009
Replies: 2
Views: 289
Posted By Duki
I'm going to be working on a summer research project with my college's robotics team. My task is going to be to develop a program to communicate with the robot via 802.11g.

I would really like to...
Forum: C++ Apr 27th, 2009
Replies: 9
Views: 1,235
Posted By Duki
Ah, nice. I'll give that a try. Thanks!
Forum: C++ Apr 26th, 2009
Replies: 9
Views: 1,235
Posted By Duki
I know the problem sounds a little (understatement maybe) odd.
I understand what you're saying nucleon, and that would seem a lot more logical. However, I'm sure I haven't misunderstood the...
Forum: C++ Apr 26th, 2009
Replies: 9
Views: 492
Posted By Duki
Oooh I like that one, That sounds fun.
Forum: C++ Apr 25th, 2009
Replies: 14
Solved: C++
Views: 914
Posted By Duki
Best C++ book I've ever used: C++ Programming: From problem analysis to problem design... by Malik.

Latest Edition...
Forum: C++ Apr 25th, 2009
Replies: 9
Views: 492
Posted By Duki
One of my favorite projects I worked on was a small RPG type game.

I can't remember it all, but I had classes that were derived from base classes.. these were the fighters. Elvaan, Hume, etc. ...
Forum: C++ Apr 25th, 2009
Replies: 9
Views: 1,235
Posted By Duki
hahah, no kidding.

This is, I guess, considered to be a programming challenge from my professor. The only thing I could think of would be to add a exception-handling block for when two ^ are...
Forum: C++ Apr 23rd, 2009
Replies: 9
Views: 1,235
Posted By Duki
You're right about the input. However, the input has to stay as ^ ^ 2 3 4. I need a special case maybe, to take care of the double ^?
Forum: C++ Apr 20th, 2009
Replies: 9
Views: 1,235
Posted By Duki
Hey everyone,

I'm trying to make it so that my ^ operator is right justified within this binary expression tree.

For example, 2^3^4 should be evaluated as 2^(3^4). So I should get 2^81,...
Forum: C++ Apr 20th, 2009
Replies: 6
Views: 379
Posted By Duki
I found my problem. My map() function assumes a letter is being given, and maps it to an array[0-51]. When initializing my objects to have less than that, my dynamic memory was getting buggered...
Forum: C++ Apr 20th, 2009
Replies: 6
Views: 379
Posted By Duki
It seems the problem might be something different, for now anyways. I ran the debugger and found that the program was crashing before it ever got to the Union() function.

If you look at my driver...
Forum: C++ Apr 20th, 2009
Replies: 6
Views: 379
Posted By Duki
Hey everyone,

I'm trying to work with Sets. I have a function Union that takes a class type Set as it's parameter. The function returns the union of class A and B.

Here is my code:
Set...
Forum: C++ Mar 31st, 2009
Replies: 3
Views: 456
Posted By Duki
Forum: C++ Mar 31st, 2009
Replies: 3
Views: 456
Posted By Duki
Hey guys,

Can anyone tell me why this doesn't work in VS2008? I've commented out the #includes and whatnot so you can paste it into a single .cpp file and run it.

Here are my errors:


And...
Forum: C++ Mar 12th, 2009
Replies: 3
Views: 1,378
Posted By Duki
Have you tried it? If so, did you receive any errors?
Forum: C++ Mar 10th, 2009
Replies: 8
Views: 1,739
Posted By Duki
Might have something to do with the fact I was running it off of my flash drive. I'll give it a whirl again tomorrow.

Thanks for the help
Forum: C++ Mar 9th, 2009
Replies: 8
Views: 1,739
Posted By Duki
Hm, now I'm getting LINK errors:
Forum: C++ Mar 9th, 2009
Replies: 8
Views: 1,739
Posted By Duki
Here's all of my code, to avoid further confusion. My apologies.

#pragma once
#include <iostream>
using namespace std ;

typedef char ItemType;
struct NodeType
{
ItemType info ;
Forum: C++ Mar 9th, 2009
Replies: 8
Views: 1,739
Posted By Duki
Oops. Here are my errors (same in both spots):
Forum: C++ Mar 9th, 2009
Replies: 8
Views: 1,739
Posted By Duki
Hey guys,
I'm getting an error at lines #9 and #14. Could someone tell me what I'm doing wrong?

StackType::StackType(const StackType & st) // copy c-tor
{
if ( st.topPtr == NULL )
topPtr...
Forum: C++ Mar 8th, 2009
Replies: 11
Views: 1,260
Posted By Duki
Well, crap. Now I get this:


Here is my updated copy c-tor:


QueType::QueType (QueType const& other) //copy c-tor
{
ItemType * tmp = new ItemType[other.size] ;
size = other.size ;
Forum: C++ Mar 7th, 2009
Replies: 11
Views: 1,260
Posted By Duki
Ok here's my latest code (using the non-recursive version). And I'm stuck.

#pragma once

#include <iostream>
using namespace std;

class FullQueue
{};
Forum: C++ Mar 7th, 2009
Replies: 11
Views: 1,260
Posted By Duki
I get the same error when I'm not using recursion. Here's my non-recursive version:


bool Identical(QueType que1, QueType que2)
{
bool iden = true ;
if (que1.GetLen() == que2.GetLen())
{...
Forum: C++ Mar 7th, 2009
Replies: 11
Views: 1,260
Posted By Duki
Ok, here's my code thus far:


// Test driver
#include "QueType.h"

bool Identical(QueType que1, QueType que2) ;
// Function: Determines if two queues are identical.
// Pre: que1 and que2...
Forum: C++ Mar 6th, 2009
Replies: 2
Views: 491
Posted By Duki
have you tried
system("pause") ; ?
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,052
Posted By Duki
can you post your updated code so that I know we're on the same page?
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,052
Posted By Duki
No problem :)
1) Make sure the while loop is around the entire program... ending right before return 0 ; This way you can do "Try again? (y/n): " and you can change the if statement to if (letter...
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,052
Posted By Duki
You could change your while condition to while(done) instead of while(!done)... however you then have the problem of when the user gets to the end of the program, it doesn't re-execute the...
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,052
Posted By Duki
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,052
Posted By Duki
I see a couple of things right off, but I haven't had time to get through the whole program.

1) You're not exiting your while loop until they select Done. Your condition is while(!done).

2) ...
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,052
Posted By Duki
What type of "really odd things"?
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,260
Posted By Duki
I don't understand. How do I set data to tmp?
Forum: C++ Mar 5th, 2009
Replies: 11
Views: 1,260
Posted By Duki
Thanks guys.
I realize I could do without recursion, but it was (for once) the first solution that came to mind.. so I thought what the heck, lets try it.

I'll fix the errors you've noted,...
Showing results 1 to 40 of 267

 


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

©2003 - 2009 DaniWeb® LLC