Any C++ Coders?

Good one - but that's plain old C //content.invisioncic.com/y282845/emoticons/biggrin.gif.d71a5d36fcbab170f2364c9f2e3946cb.gif C++ seems pretty old school now. Surprised they still teach it.
Many schools use it as a stepping stone to other languages. Alot of the modern languages share alot of similarities with C/C++, like Java for instance.

 
here is some code I wrote a couple semesters back so you know im not pulling your leg :p

Code:
/******************************************************************************/
/*********************************Chad Hicks***********************************/
/******************************  AU Unit Prog *********************************/
/**************************Written Using Dev-C++ Ver4**************************/
/*************************Written on     March 6 2008 *************************/
/**************************For Math 271 Alan Smothers**************************/
/*****************************At Concord University****************************/
/******************************************************************************/




#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <fstream>
#include <string>

using namespace std;                                                            //standard name functions


int main()                                                                      //begin main
{
char c;
unsigned int memory[6000];
int x=0;
bool ioflag=0;
 ifstream is;
 is.open ("hw.txt");        // open file

 unsigned int loc=0;
 int count4=0;
 int shift=4;
 for (int ad=0; ad<4000; ad++)
     memory[ad]=0;

 for (int b=0; b<8; b++)
   {
   c = is.get();       // get character from file
   x=c;
   if (x>=48 && x<=57)
      {
      x=x-48;
      }
   if (x>=65 && x<=70)
      {
      x=x-55;
      }
   loc=loc+x;
   cout<<loc<<endl;
   loc=loc<<4;
   }
   cout<<endl<<endl<<loc;
 while (is.good())     // loop while extraction from file is possible
 {
   c = is.get();       // get character from file
   x=c;
   if (x>=48 && x<=57)
   {
   x=x-48;
   }
   if (x>=65 && x<=70)
   {
   x=x-55;
   }
   if (c=='\n')
   x=-1;
   if (x>=0)
   {
   if (x<8)
      {
      memory[loc]=memory[loc]<<1;
      shift--;
      }
   if (x<4)
      {
      memory[loc]=memory[loc]<<1;
      shift--;
      }
   if (x<2)
      {
      memory[loc]=memory[loc]<<1;
      shift--;
      }
   memory[loc]=memory[loc]<<shift;
   memory[loc]=x+memory[loc];
   count4++;
   shift=4;
   if (count4>=8)
      {
      loc++;
      count4=0;
      }
   }
 }

 is.close();           // close file

if (count4==4)
memory[loc]=memory[loc]<<4;



system("PAUSE");
return 0;                                                                //end main
}
 
Many schools use it as a stepping stone to other languages. Alot of the modern languages share alot of similarities with C/C++, like Java for instance.
Just seems odd when a currently useful language like Java is so similar. Learning to think in Objects is the biggest obstacle so language specifics aren't that critical. Surprised they aren't using SmallTalk or Ada //content.invisioncic.com/y282845/emoticons/smile.gif.1ebc41e1811405b213edfc4622c41e27.gif At least they aren't teaching C##. I'm guessing the people who establish these curricula aren't exactly cutting edge types.

 
Just seems odd when a currently useful language like Java is so similar. Learning to think in Objects is the biggest obstacle so language specifics aren't that critical. Surprised they aren't using SmallTalk or Ada //content.invisioncic.com/y282845/emoticons/smile.gif.1ebc41e1811405b213edfc4622c41e27.gif At least they aren't teaching C##. I'm guessing the people who establish these curricula aren't exactly cutting edge types.
Well, another reason for teaching these old languages is because there is still a ton of code out there to be maintained/updated.

For instance, COBOL is still ran in thousands of businesses, yet there are a fleeting number of cobol programmers. Hell CA couldn't change the wages of some people because of a limitiation in the COBOL code, and all of there COBOL programmers had retired.

For someone coding in an archaic language they could easily command there own salary over 6 figures, doing basic work. Just because the code is many but the programmers are few.

http://www.theregister.co.uk/2008/08/14/cobol_california/

 
Well, another reason for teaching these old languages is because there is still a ton of code out there to be maintained/updated.
For instance, COBOL is still ran in thousands of businesses, yet there are a fleeting number of cobol programmers. Hell CA couldn't change the wages of some people because of a limitiation in the COBOL code, and all of there COBOL programmers had retired.

For someone coding in an archaic language they could easily command there own salary over 6 figures, doing basic work. Just because the code is many but the programmers are few.
Good point. God I'd hate to have to maintain old code - every day could be just like Y2K!

 
Good point. God I'd hate to have to maintain old code - every day could be just like Y2K!
Haha, He does have a point though. I know that GEICO still has all of there stuff in COBOL. Must ****, I know somebody who maintains their stuff and the only programming language he knows is COBOL, that's all you need when you get an in at a corporation like that I guess.

 
Haha, He does have a point though. I know that GEICO still has all of there stuff in COBOL. Must ****, I know somebody who maintains their stuff and the only programming language he knows is COBOL, that's all you need when you get an in at a corporation like that I guess.
for 6 figures, i would maintain that old code //content.invisioncic.com/y282845/emoticons/smile.gif.1ebc41e1811405b213edfc4622c41e27.gif

 
Activity
No one is currently typing a reply...

About this thread

Thread starter
benchambers80
Joined
Location
TX
Start date
Participants
Who Replied
Replies
34
Views
825
Last reply date
Last reply from
ngsm13
IMG_20260506_140749.jpg

74eldiablo

    May 22, 2026
  • 0
  • 0
design.jpeg

WNCTracker

    May 22, 2026
  • 0
  • 0

New threads

Top