"THINKING IN C++" a real cool book in C++ is available online and can be down loaded free of charge. The site is!!!
Bruce Eckel’s Thinking in C++ is the long-standing, freely circulated book that kicked off this thread (thanks to ). It’s a solid walkthrough of core C++ concepts, but readers should note it reflects practices from the pre‑C++11 era. As observed, multiple editions exist; treat Eckel’s text as a strong foundation and supplement it with more recent references when needing modern features (move semantics, smart pointers, lambdas, <algorithm> patterns, etc.).
On the “2004 → two thousand and four” question from : ’s string-index idea will work for small, fixed formats, but a more robust, reusable approach is to process the integer in three‑digit groups (units, thousands, millions...). Basic steps: handle sign and the zero case; split the absolute value into triplets; convert each triplet using lookup tables for ones/teens/tens; append the appropriate scale word only for nonzero triplets; then join groups left to right while deciding regional rules for “and” and hyphenation. ’s offer to share code is helpful, but the triplet pattern keeps the logic clear and testable.
A compact triplet helper in C++‑style pseudocode (lookup arrays omitted for brevity):
string twoDigitsToWords(int n) {
if (n < 10) return ones[n];
if (n < 20) return teens[n-10];
return tens[n/10] + (n%10 ? "-" + ones[n%10] : "");
}
string tripletToWords(int n) {
string out = "";
if (n >= 100) {
out += ones[n/100] + " hundred";
if (n%100) out += " and ";
}
out += twoDigitsToWords(n%100);
return out;
} A few practical notes tied to other replies: for ’s download-preview problem, common causes are browser preview behavior or server headers—saving the file with the browser’s Save As, trying another browser, or disabling aggressive preview/antivirus can clarify whether the file is actually delivered. For ’s “graphs in C++” query, first define whether plotting (visual charts) or graph data structures/algorithms are meant—plotting is usually easiest via a dedicated plotting library or external tool; algorithmic graph work benefits from adjacency lists and standard traversals (BFS/DFS/Dijkstra) tested on small cases.
Jump to Post— sohaib 0sir
hello
actualy i am having problem in my coding
actualy i am unable to create a logic of a program
i will be thank ful if you help me.
the program is to convert the numerical nos into digital form.means if a user enters 2004 the output should be …
Jump to Post— Javed 0SIR
ASLAMO-ALIKUM
ACTUALLY I HAVE PROBLEM IN CODING OF GRAPHS USING C++
KINDLY HELP IN IN THIS PROBLEM
MY EMAIL IS
Jump to Post— salujalalit 0I am facing a problem in my PC.Everytime i try to download a attached file to my PC,just the page showing the download message is displayed and not the whole attachment.
Please help as i am fed up of this problem
thanx
lalit
Jump to Post— anderson 0thanx !
i had been searching for website who provide free books to downlaod.
Thank you very much .
Bye..............
sir
hello
actualy i am having problem in my coding
actualy i am unable to create a logic of a program
i will be thank ful if you help me.
the program is to convert the numerical nos into digital form.means if a user enters 2004 the output should be like "two thousand and four" . how can it be done
sir plz help me i will be very thankful to you
my email id is
SIR
ASLAMO-ALIKUM
ACTUALLY I HAVE PROBLEM IN CODING OF GRAPHS USING C++
KINDLY HELP IN IN THIS PROBLEM
MY EMAIL IS
I am facing a problem in my PC.Everytime i try to download a attached file to my PC,just the page showing the download message is displayed and not the whole attachment.
Please help as i am fed up of this problem
thanx
lalit
Well dude
the simplest thing to do is go on to google and type "thinking in
C++" u will get the various sites and download the book
well another cool link is
thanx !
i had been searching for website who provide free books to downlaod.
Thank you very much .
Bye..............
Hi
first try to convert this no. to string i.e. "2004"
Then calculate the strlen.
so strlen("2004") is 4.
assign n = strlen("2004") -1; i.e. n = 3;
then retrive character one bye one from the string.
And display the string according to the strlen.
if n == 3 then the no. corrosponds to thousands
if n == 2 then the no. corrosponds to hundreads
if n == 1 then print {...;twenty,thirty,fourty;.....}
if n == 0 then print that no.
thanx bro....
please send me the free book at
Hi
first try to convert this no. to string i.e. "2004"
Then calculate the strlen.
so strlen("2004") is 4.
assign n = strlen("2004") -1; i.e. n = 3;
then retrive character one bye one from the string.
And display the string according to the strlen.if n == 3 then the no. corrosponds to thousands
if n == 2 then the no. corrosponds to hundreads
if n == 1 then print {...;twenty,thirty,fourty;.....}
if n == 0 then print that no.
Hello Good day.
anyway this is Caster Beazar From Philippines, do you have an email address so i can send my solution for your problem, i already make a project like your project, every time you input number automaticaly convert into word, send your email so i can send my source code.
Caster Beazar
Programmer
Label Line Enterprises
SIR
ASLAMO-ALIKUM
ACTUALLY I HAVE PROBLEM IN CODING OF GRAPHS USING C++
KINDLY HELP IN IN THIS PROBLEM
MY EMAIL IS
Hi Saima Good Day,
this Is Caster Beazar from Manila Philippines, are you Muslim? anyway did you already used the graphs.h? like C language?
Caster Beazar
programmer
sir
hello
actualy i am having problem in my coding
actualy i am unable to create a logic of a program
i will be thank ful if you help me.
the program is to convert the numerical nos into digital form.means if a user enters 2004 the output should be like "two thousand and four" . how can it be done
sir plz help me i will be very thankful to you
my email id is
Hello Good day.
anyway this is Caster Beazar From Philippines, do you have an email address so i can send my solution for your problem, i already make a project like your project, every time you input number automaticaly convert into word, send your email so i can send my source code.
Caster Beazar
Programmer
Label Line Enterprises
Started reading Thinking in C++ for a while, got preatty far in, then I found version 2. The beatings may now commence.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.