FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » C++ Project is A.c.c.o.m.p.l.i.s.h.e.d Thank you Bokomon, KoM for your tutoring (Page 1)

  This topic comprises 2 pages: 1  2   
Author Topic: C++ Project is A.c.c.o.m.p.l.i.s.h.e.d Thank you Bokomon, KoM for your tutoring
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
man its awesome talking to fellow Hatrackers and for free as well!

C'mon people gimme phone numbers so I can call you all up. blayne.bradley@gmail.com

:NOTE: Thanks y'all for your help.

[ October 18, 2006, 04:23 PM: Message edited by: Blayne Bradley ]

IP: Logged | Report this post to a Moderator
MyrddinFyre
Member
Member # 2576

 - posted      Profile for MyrddinFyre           Edit/Delete Post 
I miss teamspeak [Frown]
Posts: 3636 | Registered: Oct 2001  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
I know a couple of 24/7 servers we can use for general hatracking.
IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
Okay had a very engaging conversation with Eros, talked about World of Warcraft, hatrack, about how Mr Card never comes anywhere near our homes, raisberries, everquest and about how im going to conquer the world as China in ym multiplayer game with King of Men. (>")>

Gimme more numbers people!

IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
I am very disappointed ATM I only got 2 #'s so far! C'mon!
IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
okay talked with Airman, talked about WoW< CIV4, EU2, Vikky, CHina, GWOT. I need mor enumbers!
IP: Logged | Report this post to a Moderator
airmanfour
Member
Member # 6111

 - posted      Profile for airmanfour           Edit/Delete Post 
It's true. Blayne is surprisingly erudite, and way more aware of the global situation (China specifically) than anyone I've talked to in a long time. I, for one, enjoyed myself. You eventually will too.
Posts: 1156 | Registered: Jan 2004  |  IP: Logged | Report this post to a Moderator
Dr Strangelove
Member
Member # 8331

 - posted      Profile for Dr Strangelove   Email Dr Strangelove         Edit/Delete Post 
Hey, Blayne, I was wondering ... does it cost me anything to recieve calls from this ... Skype? lol. Just wondering. It was cool talking to you for the short time I did though. After I talked to you I went back down to the conference and ironically got a comment on how I sound a lot older [Razz] .
Posts: 2827 | Registered: Jul 2005  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
Blayne is much, much different on the phone than he is on the web. Having spoken to him and going back over some of his posts, I think it's because he doesn't filter his typing at all, much the way we aren't afforded much opportunity to filter our spoken conversations.

I highly recommend speaking to him.

Now I'm eager to talk to more people. I imagine the contrast between online persona and real person is astounding, especially in a (relatively) controlled environment like Hatrack. AIM me for a phone number (the SN is in the hatrack profile).

Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
Skype within North America is completely free from Skype-Landline/Cellphone calls.'

If you were in say israel I only have 5 free minutes *unless* you ALSO have skype and then its kinda like a TS conversation.

www.google.com + skype

So that I can talk to Hatrackers beyond NA.

IP: Logged | Report this post to a Moderator
Little_Doctor
Member
Member # 6635

 - posted      Profile for Little_Doctor   Email Little_Doctor         Edit/Delete Post 
My skype name is GDA0612. I'm not that interesting to talk to however.
Posts: 1401 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
Man, I can barely talk on the phone to people I do know in person. I'm glad y'all are having fun, but the very idea of trying to carry on a conversation with someone I've never met makes me want to crawl into bed and pull the covers over my head.

Looking at the time, I should be doing that anyway. Goodnight. [Smile]

Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
But...but...

I love you, ElJay. [Frown]

Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
rivka
Member
Member # 4859

 - posted      Profile for rivka   Email rivka         Edit/Delete Post 
quote:
Originally posted by Blayne Bradley:
Skype within North America is completely free from Skype-Landline/Cellphone calls.

This is called Skype-out, and is only free until the end of 2006.
Posts: 32919 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
I'm not your type, eros. It could never be. [Razz]
Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
Vasslia Cora
Member
Member # 7981

 - posted      Profile for Vasslia Cora   Email Vasslia Cora         Edit/Delete Post 
I would think about but I am just bad at talking on the phone no matter who I am talking to. I just have trouble keeping the conversation going, I talk much unless I am very comfortable.
Posts: 503 | Registered: May 2005  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
quote:
Originally posted by ElJay:
I'm not your type, eros. It could never be. [Razz]

LIES! All lies...


.....lies...

Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
Um, so you were lying when you said you were attracted to slim asian girls? Defining slim as a size six at 5'6"? 'Cause believe me, I don't fit the criteria. [Big Grin]

And I'm not available, anyway.

Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
quote:
Originally posted by ElJay:
Um, so you were lying when you said you were attracted to slim asian girls? Defining slim as a size six at 5'6"? 'Cause believe me, I don't fit the criteria. [Big Grin]

And I'm not available, anyway.

It's the interwebs, dude. If you say you're slim and asian, who am I to call you a liar? (Ignoring the repetition of the word "lies" in my last post for just a brief moment.)

But I see how it is.

<goes back to World of Warcraft>

Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
Sorry, man.
Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
pH
Member
Member # 1350

 - posted      Profile for pH           Edit/Delete Post 
eros, you said you loved ME! [Cry] I can't believe you'd do this to me!

-pH

Posts: 9057 | Registered: Nov 2000  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
I've got love for everybody!

[Group Hug]

Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
*tsk* It's alright, pH, I turned him down. No worries.
Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
quote:
Originally posted by ElJay:
*tsk* It's alright, pH, I turned him down. No worries.

Oh, so she's supposed to take your leftovers?

pH, you're better than that.

...wait. This is me we're talking about, isn't it.

Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
rivka
Member
Member # 4859

 - posted      Profile for rivka   Email rivka         Edit/Delete Post 
Yup. And you're right. pH is better than that.
Posts: 32919 | Registered: Mar 2003  |  IP: Logged | Report this post to a Moderator
erosomniac
Member
Member # 6834

 - posted      Profile for erosomniac           Edit/Delete Post 
quote:
Originally posted by rivka:
Yup. And you're right. pH is better than that.

As clearly evidenced by her lack of lovin' me. =\
Posts: 4313 | Registered: Sep 2004  |  IP: Logged | Report this post to a Moderator
pH
Member
Member # 1350

 - posted      Profile for pH           Edit/Delete Post 
I love you...but all you do is hurt me. [Frown] Oh, cruel life.

-pH

Posts: 9057 | Registered: Nov 2000  |  IP: Logged | Report this post to a Moderator
Teshi
Member
Member # 5024

 - posted      Profile for Teshi   Email Teshi         Edit/Delete Post 
quote:
Man, I can barely talk on the phone to people I do know in person. I'm glad y'all are having fun, but the very idea of trying to carry on a conversation with someone I've never met makes me want to crawl into bed and pull the covers over my head.
You're kidding me, ElJay! You're so full of conversation!

My entire worldview is destroyed...

Posts: 8473 | Registered: Apr 2003  |  IP: Logged | Report this post to a Moderator
Kama
Member
Member # 3022

 - posted      Profile for Kama   Email Kama         Edit/Delete Post 
like i'm giving anyone on the internet my phone number...
Posts: 5700 | Registered: Feb 2002  |  IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
In person's different, Teshi. [Smile] I just don't like phones.
Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
=( I looked and saw 29 posts =) and I was like yay phone numbers! and then I find no new numbers =(

and your not giving it over the internet your emailing it big difference.

IP: Logged | Report this post to a Moderator
ElJay
Member
Member # 6358

 - posted      Profile for ElJay           Edit/Delete Post 
Sorry, Blayne. erso was being funny. [Smile]
Posts: 7954 | Registered: Mar 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
I know you can make up for it by emailing me your phone number!! =)
IP: Logged | Report this post to a Moderator
Kama
Member
Member # 3022

 - posted      Profile for Kama   Email Kama         Edit/Delete Post 
e-mail is not internet? [Confused]
Posts: 5700 | Registered: Feb 2002  |  IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
Blayne, I got your call on Saturday, but I was in the shower. Six hours of nonstop, intense warfare, you know.
Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
Little_Doctor
Member
Member # 6635

 - posted      Profile for Little_Doctor   Email Little_Doctor         Edit/Delete Post 
It proably would have been better to ask for Skype names Blayne. Most people do not want to have people they met on the internet calling their phones.
Posts: 1401 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
*gasp* well email me skype names then, I dont remeber what mine was either Blayne Bradley or Sid Meier.

So ya Skype names so I can stalk the lot of ye' ^-^

IP: Logged | Report this post to a Moderator
Little_Doctor
Member
Member # 6635

 - posted      Profile for Little_Doctor   Email Little_Doctor         Edit/Delete Post 
Blayne:

I got my microphone to work, so next time you see me on skype, give me a call. I'm usually doing homework during the week, so it would be a welcome interruption.

Posts: 1401 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
I talked wit KoM, we talked about details about the March Through Time Game (1066-1952) and discussing how he's hoping the Begian AI doesnt backstab him since it will take of europe combined to defeat my China. pfft, as if the yang gui zi can even hope to compare with the Middle Kingdom.

中國 !!!!

Anyways, we talked about what edits owuld be needed such as randomized tech teams for ahistoricalness. *points at whoever has a deeply engrained view of the world*

His accent was kinda Brittish-Scottish awesome combination kinda hard to understand if he talked too fast, although I think he had a harder time understanding me since I need to learn enunciating better.

And because of the inssitent annoyingness of my aprents I had to cut it early and switched to ICQ awhere he helped me with my C++ assignment.

IP: Logged | Report this post to a Moderator
MrSquicky
Member
Member # 1802

 - posted      Profile for MrSquicky   Email MrSquicky         Edit/Delete Post 
quote:
In person's different, Teshi. [Smile] I just don't like phones.
Word, sister.
Posts: 10177 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
lol thanks to KoM I got rid of all the erros but now the program blows up when I try to run it, I think there now remains a logical inconsistency in my code I'll go on and see where it lies.

system("pause") ftw.

IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
It wasn't your enunciation, although I do sometimes have a hard time understanding people when I'm not used to their voice. But your microphone, or something, kept cutting out in the middle of a sentence and coming back a bit later, so your voice would sound a bit like this:

you ...ce wo... ... ... a bit ... this.

Which didn't make comprehension very easy, as you may guess. [Smile]

Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
Okau utilizing the pauses I have determined that everythign works as planned until my "popandtest" function.

Essentially it goes into a infitnit loop when it pops.

Essneitally how it works it will keep popping things off of the stack until it is empty, I had a cout and pasue essentially where I would know it entered the while loop wheere the popandtest function is called.

while !empty
{

cout STOP
system pause
call popandtest

}

essentially I had a million stops which overflowed my memory or something and MVS2k5 stopped the debugging and gave me a dirty error message.

So It could be a couple of things:

my syntax is completely right (no compiling errors) so its probly a logical inconsistency somewhere.

Either It is not pushing anything onto the stack, or empty isnt validating right or both, or popandtest isnt working right either.

Ill sort this out tomorrow, due thursday but im aiming for it to be done wensday so I can thouroghly style the bugger.

:EDIT:

here's my code

http://www.vassili.zambinidirect.com/asst3%20v3%20baseline.cpp

IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
I'm not sure now that I think of it if I even properly defined the stack as being empty at -1 so I'm gonna double check this and put pauses and couts in empty to make sur eits working right.
IP: Logged | Report this post to a Moderator
King of Men
Member
Member # 6684

 - posted      Profile for King of Men   Email King of Men         Edit/Delete Post 
Well, I don't know if any of these are your actual problem, but there are several logic flaws in your code. First, you are pushing things onto opstk, but empty is looking at opndstk. Incidentally, this is why you should not pshthngs tgthr lk ths. And I think I did advise you to make empty look at a local variable, rather than a global.

Second, your empty method (which incidentally does not need to be eleven (!) lines, you can do it in one - a common newbie mistake) is checking whether the 'top' index of your structs is -1. But that number is never initialised. In C++, this means it takes whatever random value is in the computer memory at the moment that space is initialised. Trust me, this is not the behaviour you want. At any rate, this is what most compilers do. Possibly your IDE will set uninitialised variables to a default value. However, firstly you should not rely on that behaviour, as it's not in the standard. Secondly, the default value is almost certainly 0 rather than -1, which means that stacks with no members have a top index of 0, which is bad in your logic.

Why don't you fix these issues and see what happens?

Posts: 10645 | Registered: Jul 2004  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
sounds like an excellent plan as soon as I have sleep I'll fix them.
IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
I would also recommend NOT using -1. 0 is a much more natural choice, in this case. The more natural defaults you choose, the more readable the code, the easier for you to debug, the easier for the grader (or in the real world, a bug fixer/maintainer) to understand.

-Bok


EDIT: This is a personal style thing, so take it or leave it, but general coding convention is that ALL_CAPS means a constant, so it's best, IMO to actually only use all-caps for constant variables (not for struct names as you have done) and make sure those "constant" variables are actually constant (in C++ that would mean adding 'static' aand 'const' to the variable declaration, right? It's been a while since I worked in C++, so I might be off there).

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
Nighthawk
Member
Member # 4176

 - posted      Profile for Nighthawk   Email Nighthawk         Edit/Delete Post 
In Visual Studio, variables are sometimes initialized to zero IN DEBUG MODE. If you're running in release mode, the variables could be anything.

I see a few things in that code which could warrant style recommendations, but I don't think that's the purpose of this right now. But, if you want me to assault you with commentsand suggestions, I'd be more than happy to. [Smile]

One question I do have: you have a define "MAXSTACK", which I assume is the maximum size of the stack. But why do you define your stack at "MAXSTACK-1"?

Also, just a formality: your "push" call doesn't check for the bounds. Not that it's an issue in this controlled test, but get in to good practice of always checking the bounds of an array you're writing in to. I know of people that got nearly fired at a major development company because of that (because it led to a buffer overrun exploit).

Posts: 3486 | Registered: Sep 2002  |  IP: Logged | Report this post to a Moderator
Blayne Bradley
unregistered


 - posted            Edit/Delete Post 
Ok fixed up code and it apears to push fine, popping isnt working right for some reason.

i have out put that after each push loos like this:

A
AB
ABC

pop isnt doing nuffin though

ABC
ABC
ABC

if I do cout oprstk.item[oprstk.top]

i will get

A
B
C
B
A

its pushin but it ain't popping right will post code as soon as I cna upload it.

IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
One possibility could be due to what's called "variable visibility" with your "popandtest()" function, and your declaration of the stack. It's been a long time, I remind you again, but what is your rationale for passing the stack to the "push()" function, but not the "popandtest()" function?

* grumbles, "one more example of why global variables are a pain in the neck..." *

-Bok

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
  This topic comprises 2 pages: 1  2   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2