WP Geshi Highlighter C++

//intvars.cpp //demonstrates integer variables #include <iostream> using namespace std;   int main () { int var1; //define variable one int var2; //define variable two   var1=20; //assign value to var1 var2=var1+10 //assign value to var2 cout<< "var1+10 is "; //output text cout << var2 <<endl; //output value of var2 return [...]

C++ String Class

Screen print of code

This is a simple string class that I constructed as an assignment for one of my classes. #include <iostream> using namespace std;   class String { private: char* strval; //holds string value int strln; //holds length of string value public: //constructors String(); //initializes default value of null string String(char* s); [...]

Posted in C++

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!