CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 14 Aug 2025 12:25:02 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080427084848
location: https://web.archive.org/web/20080427084848/https://www.daniweb.com/code/cplusplus.html
server-timing: captures_list;dur=0.998493, exclusion.robots;dur=0.046402, exclusion.robots.policy;dur=0.029296, esindex;dur=0.016654, cdx.remote;dur=725.452982, LoadShardBlock;dur=645.568198, PetaboxLoader3.datanode;dur=437.929798, PetaboxLoader3.resolve;dur=179.453230
x-app-server: wwwb-app28
x-ts: 302
x-tr: 1448
server-timing: TR;dur=0,Tw;dur=2226,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app28; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 14 Aug 2025 12:25:06 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Sun, 27 Apr 2008 08:48:48 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastvisit=1209282662; expires=Mon, 27-Apr-2009 08:48:48 GMT; path=/; domain=.daniweb.com
x-archive-orig-set-cookie: bblastactivity=0; expires=Mon, 27-Apr-2009 08:48:48 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 27 Apr 2008 08:48:48 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 28 Apr 2005 05:29:39 GMT", ; rel="prev memento"; datetime="Sat, 12 Apr 2008 03:01:04 GMT", ; rel="memento"; datetime="Sun, 27 Apr 2008 08:48:48 GMT", ; rel="next memento"; datetime="Thu, 15 May 2008 13:12:16 GMT", ; rel="last memento"; datetime="Sun, 23 Feb 2025 22:30:00 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_3_20080426233037_crawl105-c/51_3_20080427083133_crawl104.arc.gz
server-timing: captures_list;dur=1.227386, exclusion.robots;dur=0.042874, exclusion.robots.policy;dur=0.026524, esindex;dur=0.013961, cdx.remote;dur=830.116542, LoadShardBlock;dur=134.534853, PetaboxLoader3.datanode;dur=119.126026, load_resource;dur=163.561564, PetaboxLoader3.resolve;dur=98.806694
x-app-server: wwwb-app28
x-ts: 200
x-tr: 1293
server-timing: TR;dur=0,Tw;dur=2165,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
cplusplus Code Snippets
cplusplus Syntax
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 319,275 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,110 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
•
•
•
•
Hey, i was just mucking around and improving my code etc and made a calculator, it's not the best calculator in the world, it only can handle 1 or 2 numbers but i think it's good my self :). (View Snippet)
Just playing with the no.
points used in the program:
1. Even no cannot be prime except 2
2. % division of odd by even cannot be 0 (View Snippet)
Just playing with the no.
points used in the program:
1. Even no cannot be prime except 2
2. % division of odd by even cannot be 0 (View Snippet)
Good day, here is one of the commands that will allow you to get sound in your program. It was compiled using DevC++. (View Snippet)
Nothing but the VERY HARD Work out for long day and night.
It was actually i made it for my project work which my friend loved it very much.
This might be the useful stuff to you also.
Ya Now days rarely anyone uses the BGI stuff but also it is useful for the knowledge.
Ya If you don't mind you... (View Snippet)
This program generates lines of pascal's triangle, numbers after 23 generate weird output. (View Snippet)
This program takes a parameter, which is how many prime numbers you need. However if you want to make a program which checks whether a number is prime or not you can delete everything in the main function and put this line instead:
cout << isPrime (argv ) ? "It's a prime." : "It's not a... (View Snippet)
Two methods for two distinct needs when splitting a string (View Snippet)
This program uses snipets from a couple of other programs that I put together in order to make a program that displays the time and date and refreshes the time and date every second. I commented practically every line to explain, as far as I know, what it does. If you know of an easier way to do... (View Snippet)
Frequently, you may need to isolate words in a phrase. In this example, we'll use substr to carry out this task. (View Snippet)
- Today's Posts
- Unanswered Threads
Related Features
DANIWEB FEATURE INDEX
ADVERTISEMENT
STATISTICS