Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 10-29-2007, 06:59 PM   #21
arsenal
Director of the HFBI
 
arsenal's Avatar
 
Join Date: Sep 2004
Location: Calgary
Exp:
Default

Quote:
Originally Posted by TheyCallMeBruce View Post
Well, I wrote it off the top of my head. That's pretty good considering I haven't touched c++ in 6 years.

Plus why should I remember c++. I make more than programmers anyway :P
I got that drilled into me constantly. I use to read comp.lang.c, and if you think people are nazi's regarding grammar, what have you here.. that place was crazy.

Anyway.. dude, if you need help with those questions, you are in serious trouble.
__________________
"Opinions are like demo tapes, and I don't want to hear yours" -- Stephen Colbert
arsenal is offline   Reply With Quote
Old 10-29-2007, 07:03 PM   #22
TheyCallMeBruce
Likes Cartoons
 
TheyCallMeBruce's Avatar
 
Join Date: Apr 2004
Exp:
Default

Quote:
Originally Posted by arsenal View Post
I got that drilled into me constantly. I use to read comp.lang.c, and if you think people are nazi's regarding grammar, what have you here.. that place was crazy.

Anyway.. dude, if you need help with those questions, you are in serious trouble.
haha, I believe it.
TheyCallMeBruce is offline   Reply With Quote
Old 10-29-2007, 07:03 PM   #23
if.away
Backup Goalie
 
Join Date: Jan 2006
Exp:
Default

Quote:
Originally Posted by arsenal View Post
you fail. main must always have a return type int.
Not true. Just void the function and it won't return anything.
if.away is offline   Reply With Quote
Old 10-29-2007, 07:04 PM   #24
ken0042
Playboy Mansion Poolboy
 
ken0042's Avatar
 
Join Date: Apr 2004
Location: Close enough to make a beer run during a TV timeout
Exp:
Default

I think we've been a little too hard on the guy- who came on asking a legit question. For example I was not ready for all the modem questions on my MCSE exam. I had no fewer than 7 questions about troubleshooting twin 56K modems; none of which had a multiple choice answer of "Call Shaw if you are a Network Admin trying to VPN in from home all the time."

It may not be that he doesn't know it, but if I had an employment test with Shaw; I may want to know if its wise to brush up on my TCP/IP.
ken0042 is offline   Reply With Quote
Old 10-29-2007, 07:05 PM   #25
arsenal
Director of the HFBI
 
arsenal's Avatar
 
Join Date: Sep 2004
Location: Calgary
Exp:
Default

Quote:
Originally Posted by if.away View Post
Not true. Just void the function and it won't return anything.
that isn't part of the standard.
main must always return int.

And in Bruce's example, he was returning 0 to a void function is incorrect.
__________________
"Opinions are like demo tapes, and I don't want to hear yours" -- Stephen Colbert
arsenal is offline   Reply With Quote
Old 10-29-2007, 08:38 PM   #26
Fobby
Scoring Winger
 
Join Date: Apr 2004
Exp:
Default

can't believe we are debugging C code....
Fobby is offline   Reply With Quote
Old 10-29-2007, 09:25 PM   #27
arsenal
Director of the HFBI
 
arsenal's Avatar
 
Join Date: Sep 2004
Location: Calgary
Exp:
Default

its a slow night...
__________________
"Opinions are like demo tapes, and I don't want to hear yours" -- Stephen Colbert
arsenal is offline   Reply With Quote
Old 10-29-2007, 09:37 PM   #28
HelloHockeyFans
n00b!
 
HelloHockeyFans's Avatar
 
Join Date: Jul 2004
Exp:
Default

Quote:
Originally Posted by CaptainCrunch View Post
pee in a cup, don't let it splash over the side.
lol not sure why, but this really got me laughing
HelloHockeyFans is offline   Reply With Quote
Old 10-29-2007, 09:41 PM   #29
Phaneuf3
First Line Centre
 
Join Date: Oct 2005
Exp:
Default

Quote:
Originally Posted by Fobby View Post
can't believe we are debugging C code....
C++ code.... n00b!



Phaneuf3 is offline   Reply With Quote
Old 10-29-2007, 09:59 PM   #30
Byrns
Powerplay Quarterback
 
Byrns's Avatar
 
Join Date: Apr 2007
Exp:
Default

How much does Shaw pay? (Not that I'm currently looking)
Byrns is offline   Reply With Quote
Old 10-29-2007, 10:04 PM   #31
Fobby
Scoring Winger
 
Join Date: Apr 2004
Exp:
Default

shaw? not a whole lot.. telus pays more.
Fobby is offline   Reply With Quote
Old 10-30-2007, 12:20 AM   #32
kermitology
It's not easy being green!
 
kermitology's Avatar
 
Join Date: Oct 2001
Location: In the tubes to Vancouver Island
Exp:
Default

Explain to me the difference between UDP and TCP/IP.

Who programs to ISO?

And any good C++ programmer will use almost 90% C code to go in a class.

But TheyCallMeBruce does fail his main function doesn't declare a return type so it wouldn't even compile

I'm a java programmer now.

Code:
public class PostFormatter
{
  private String m_strText;

  public PostFormatter( String s )
  {
    if( s.contains(" u ") )
    {
      s.replace(" u ", " you " );
    }
    
    m_strText = s;
  }

  public String getPostText()
  {
    return m_strText;
  }

  public void setText( String s )
  {
    if( s.contains(" u ") )
    {
      s.replace(" u ", " you " );
    }

    m_strText = s;
  }
}
__________________
Who is in charge of this product and why haven't they been fired yet?

Last edited by kermitology; 10-30-2007 at 12:26 AM.
kermitology is offline   Reply With Quote
Old 10-30-2007, 12:26 AM   #33
kermitology
It's not easy being green!
 
kermitology's Avatar
 
Join Date: Oct 2001
Location: In the tubes to Vancouver Island
Exp:
Default

Quote:
Originally Posted by Phaneuf3 View Post
C++ code.... n00b!



C++ is just C with objects and crap.
__________________
Who is in charge of this product and why haven't they been fired yet?
kermitology is offline   Reply With Quote
Old 10-30-2007, 01:27 AM   #34
arsenal
Director of the HFBI
 
arsenal's Avatar
 
Join Date: Sep 2004
Location: Calgary
Exp:
Default

Quote:
Originally Posted by kermitology View Post
C++ is just C with objects and crap.
you can leave the "C with objects and" part
As far as OO goes, there are a lot better choices out there.
And as far as who codes to ISO standards? That depends on what you are programming. You "should" code to ISO if you can, at least in my opinion. It leaves less room for errors.

wow.. we have really gotten off topic here haha.
__________________
"Opinions are like demo tapes, and I don't want to hear yours" -- Stephen Colbert
arsenal is offline   Reply With Quote
Old 10-30-2007, 03:29 AM   #35
jammies
Basement Chicken Choker
 
jammies's Avatar
 
Join Date: Jan 2007
Location: In a land without pants, or war, or want. But mostly we care about the pants.
Exp:
Default

Quote:
Originally Posted by ken0042 View Post
I think we've been a little too hard on the guy- who came on asking a legit question.

...

It may not be that he doesn't know it, but if I had an employment test with Shaw; I may want to know if its wise to brush up on my TCP/IP.
Bah! That's what's wrong with too many techs already - they ask questions about what should be blindingly obvious to anyone with logical skills, never mind technical ones. I hate those people who say "there's no such thing as a dumb question", 'cause I assure you that any question that takes longer to ask, than to either deduce or look up the correct answer yourself is, in fact, a dumb one.

People who call Shaw for tech support are going to be having problems with their Internet connection - does it take a genius to know that they are going to need people who know the basics of TCP/IP, subnetting, low-end home routers, Windows networking configuration, and similar topics? Does it take another genius to realize that, being Shaw, if you can scrawl your name on your test with the same spelling you used on your resume, they will probably hire you regardless of how you do on the test?

Honestly, if you have ever talked to Shaw for support you know that for every decent tech, there are 4 others whose main accomplishment every day is getting out of the shower without either falling or putting the soap bar up their nose. If you know that Shaw starts with an S, and has 4 letters, you can probably pass any "test" they might see fit to administer.
jammies is offline   Reply With Quote
Old 10-30-2007, 05:41 AM   #36
Rathji
Franchise Player
 
Rathji's Avatar
 
Join Date: Nov 2006
Location: Supporting Urban Sprawl
Exp:
Default

Quote:
Originally Posted by arsenal View Post
that isn't part of the standard.
main must always return int.


And in Bruce's example, he was returning 0 to a void function is incorrect.
Doesnt C99 allow for main to return void? or is that just functions? I have only ever had to use C for one course and half the time I spent trying to figure out why my java syntax wouldn't work.
__________________
"Wake up, Luigi! The only time plumbers sleep on the job is when we're working by the hour."
Rathji is offline   Reply With Quote
Old 10-30-2007, 08:09 AM   #37
Fobby
Scoring Winger
 
Join Date: Apr 2004
Exp:
Default

We should now all write in Eiffel...

But a lot of times, you need to know how to do the basic stuff as a shaw TSR... I once got asked if my power bar was plugged in. If my computer is on, and if the lights are blinking. So you need to be able to tell them how to check them if you are talking to someone who does not know how to operate a computer.

"Plug in the Rj45 into the NIC" will probably confuse a lot of people.

Last edited by Fobby; 10-30-2007 at 08:11 AM.
Fobby is offline   Reply With Quote
Old 10-30-2007, 08:28 AM   #38
NuclearFart
First Line Centre
 
NuclearFart's Avatar
 
Join Date: Mar 2006
Exp:
Default

lol @ jammies post. It's funny cause it's true.
________
GREY'S ANATOMY FORUMS

Last edited by NuclearFart; 04-16-2011 at 09:47 PM.
NuclearFart is offline   Reply With Quote
Old 10-30-2007, 08:32 AM   #39
arsenal
Director of the HFBI
 
arsenal's Avatar
 
Join Date: Sep 2004
Location: Calgary
Exp:
Default

Quote:
Originally Posted by Rathji View Post
Doesnt C99 allow for main to return void? or is that just functions? I have only ever had to use C for one course and half the time I spent trying to figure out why my java syntax wouldn't work.
No. main must always return an int. Functions where always able to return void.
__________________
"Opinions are like demo tapes, and I don't want to hear yours" -- Stephen Colbert
arsenal is offline   Reply With Quote
Old 10-30-2007, 08:50 AM   #40
kermitology
It's not easy being green!
 
kermitology's Avatar
 
Join Date: Oct 2001
Location: In the tubes to Vancouver Island
Exp:
Default

Quote:
Originally Posted by Rathji View Post
Doesnt C99 allow for main to return void? or is that just functions? I have only ever had to use C for one course and half the time I spent trying to figure out why my java syntax wouldn't work.
It's still wrong because you MUST define the return type.
__________________
Who is in charge of this product and why haven't they been fired yet?
kermitology is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:38 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy