Jump to content

exe


discom

Recommended Posts

  • 1 month later...
Member
(edited)

c and sql programmers :boo:

 

#include<iostream>

#include<members.h>

 

using namespace std;

 

int main()

{

numOfMembers = getMemberCount();

string memberName;

void getMemberName(int memNum)

{

while (memNum >=0 && memNum <= numOfMembers)

{

strcpy(memberName, members.getMemberName(memNum);

}

return memberName;

}

 

string tempName;

for(int i = 1; i <= numOfMembers; i++ )

{

tempName = getMemberName(i);

if (tempName == NOFX)

cout << tempName << " is a l33t H4x0rz" << endl;

else

cout << tempName << " is a NOOB" << endl;

}

 

}

 

Now you have been hosed :unsure:

 

wish I knew how to format it.

Edited by NOFX
Link to comment
Share on other sites

Member
(edited)
NOFX that's some bad programming there. You're supposed to tab and make things look pretty :D

wish I knew how to format it.

 

 

another attempt with no success

Edited by NOFX
Link to comment
Share on other sites

  • 4 weeks later...

Tabbing and making it all neat is only if 1) you plan on reading it later and trying to figure out what you were doing or 2) You don't want to be called back to an old company for 3x the money to do consulting work after your program breaks and they can't read the source code.

Link to comment
Share on other sites

×
×
  • Create New...