Skip to content
DragonlordWarlock.com

DragonlordWarlock.com

Home of the Dragonlord Warlock/Norin Nightfire

  • Home
  • About Me
  • Poetry
  • Photos
  • Programming
  • Wallpaper
  • Norin Nightfire
  • Privacy Policy
  • Home
  • c++

Category: c++

Linkable Object C++ Hello World

Posted on 2019-06-192019-06-19 By Administrator
c++, hello world, object oriented programming, programming

This creates an object that can be linked to a main program containing all hello world services to a parent program. A sample program using that object.

C++ Hello World using OOP

Posted on 2019-06-162019-06-16 By Administrator
c++, hello world, object oriented programming, programming

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 … Read More “C++ Hello World using OOP” »

C++ Prime Numbers

Posted on 2016-01-10 By Administrator
c++, programming

#include <stdio.h> #include <time.h> using namespace std; bool isPrime(long n) { long i, m; m = n / 2; if(n % 2==0) return false; else for(i=3; i<m; i+=2) if(n % i==0) return false; return true; } int main() { long j; clock_t tStart = clock(); for(j=1;j<1000000;j++) if(isPrime(j)) printf(“%ld\n”, j); printf(“Time taken: %.2fs\n”, (double)(clock() – tStart)/CLOCKS_PER_SEC); … Read More “C++ Prime Numbers” »

Fractal Tree C++ Logo Output

Posted on 2012-12-112014-10-01 By Administrator
c++, programming

#include <cstdio> #include <cstdlib> #include <ctime> #include <string> usingnamespace std; class ifstree { public: float minfactor; float maxfactor; float bend; float angle; float initlen; int fdim; ifstree(); void turnleft(float ang) { printf(“lt %4.2f\n”, ang); }; void turnright(float ang) { printf(“rt %4.2f\n”, ang); }; void movefw(float value) { printf(“fw %4.2f\n”, value); }; void movebw(float value) { … Read More “Fractal Tree C++ Logo Output” »

ROT13 C++

Posted on 2012-11-132014-10-01 By Administrator
c++, programming

The following program (written in C++) creates a filter program for converting ascii into ROT13 encoding. A very simple cypher where each character in the alphabet is replaced with the 13th letter from its position. To download a compiled windows compatible binary, click here. #include <cstring> #include <cstdio> #include <cctype> using namespace std; char translate(char … Read More “ROT13 C++” »

Hello World C++ with Objects

Posted on 2007-08-262014-10-01 By Administrator
c++, hello world, object oriented programming, objects, programming

Ok… this is a “Hello World” program in C++ using objects. It illustrates a number of aspects of object oriented programming in C++ allowing you to get a quickstart into C++ programming. First there is the #include directives which tells C++ that the program uses two libraries, iostream and string (actually they specify the header … Read More “Hello World C++ with Objects” »

Archives

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Advert

  • Facebook

Copyright © 2026 DragonlordWarlock.com.

Theme: Oceanly News Dark by ScriptsTown