the best book for learning C++ language is...

  • 17 Replies
  • 3161 Views
*

Canary

  • 179
the best book for learning C++ language is...
« on: April 16, 2019, 07:33:17 AM »
ladies and gentlemen introduce the best C++ book that you know
+it also should be free to download.
thank you already for your introducing.

*

Crouton

  • Flat Earth Inspector General of High Fashion Crimes and Misdemeanors
  • Planar Moderator
  • 16312
  • Djinn
Re: the best book for learning C++ language is...
« Reply #1 on: April 16, 2019, 07:56:10 AM »
https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

Here's a good list of them.

I'd recommend learning C first. Pay particular attention to pointers. A lot of people get tripped up on them. Then move onto C++ which is basically C with object oriented programming grafted on top of it.

Question, why c++? It's regarded as a very difficult language.
Intelligentia et magnanimitas vincvnt violentiam et desperationem.
The truth behind NASA's budget

*

sokarul

  • 19303
  • Extra Racist
Re: the best book for learning C++ language is...
« Reply #2 on: April 16, 2019, 07:59:53 AM »
Hop on the bandwagon and learn python or R and become a Data Scientist.
ANNIHILATOR OF  SHIFTER

It's no slur if it's fact.

*

Crouton

  • Flat Earth Inspector General of High Fashion Crimes and Misdemeanors
  • Planar Moderator
  • 16312
  • Djinn
Re: the best book for learning C++ language is...
« Reply #3 on: April 16, 2019, 08:06:42 AM »
https://www.amazon.com/dp/0321958322/?tag=stackoverfl08-20

This. I think. Was the textbook I learned C++ with. Not totally sure it was quite some time ago. Updated obviously for the newer language standards. I recall that it was a very good textbook but it was created with a classroom environment in mind.
Intelligentia et magnanimitas vincvnt violentiam et desperationem.
The truth behind NASA's budget

*

Canary

  • 179
Re: the best book for learning C++ language is...
« Reply #4 on: April 16, 2019, 08:27:35 AM »
https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list

Here's a good list of them.

I'd recommend learning C first. Pay particular attention to pointers. A lot of people get tripped up on them. Then move onto C++ which is basically C with object oriented programming grafted on top of it.

Question, why c++? It's regarded as a very difficult language.
thank you.
+i already know a little C like i can use pfrintf,scanf,for,while,switch etc.but i never seen someone use C to create a long and complex program  :-\

*

Canary

  • 179
Re: the best book for learning C++ language is...
« Reply #5 on: April 16, 2019, 08:32:50 AM »
Hop on the bandwagon and learn python or R and become a Data Scientist.
a lot of people told me to learn python but it was a little confusing for me cause it's not as manual as C or C++.
for Example if you write:
print(a,b)
you will have
a b
but in C if you write
printf("%d%d"a,b);
you will have
ab
which is an advantage for me.

*

Son of Orospu

  • Jura's b*tch and proud of it!
  • Planar Moderator
  • 37834
  • I have artificial intelligence
Re: the best book for learning C++ language is...
« Reply #6 on: April 16, 2019, 09:38:13 AM »
There is nothing wrong with python, but it is a scripting language, while C++ is compiled into machine code before it is run, which means that python is slow as it is interpreted while it is being run. 

*

Crouton

  • Flat Earth Inspector General of High Fashion Crimes and Misdemeanors
  • Planar Moderator
  • 16312
  • Djinn
Re: the best book for learning C++ language is...
« Reply #7 on: April 16, 2019, 09:48:45 AM »
For a casual programmer I'd recommend C# if you don't mind windows and you need a GUI. Java I hear good things about, never tried it myself.

Don't underestimate scripting languages. They're useful for what they do.

C/C++ though, this is a difficult language. Things that are relatively easy to do in C# are like pulling teeth in C++. C++ is absolutely essential for dealing with bare metal, device drivers and kernel space work. If you're working with an embedded device then it's pretty much what you have to write with.
Intelligentia et magnanimitas vincvnt violentiam et desperationem.
The truth behind NASA's budget

*

Son of Orospu

  • Jura's b*tch and proud of it!
  • Planar Moderator
  • 37834
  • I have artificial intelligence
Re: the best book for learning C++ language is...
« Reply #8 on: April 16, 2019, 09:54:16 AM »
I think that Canary should write his/her own programming language. 

*

Crouton

  • Flat Earth Inspector General of High Fashion Crimes and Misdemeanors
  • Planar Moderator
  • 16312
  • Djinn
Re: the best book for learning C++ language is...
« Reply #9 on: April 16, 2019, 09:55:43 AM »
If he's going that route then lolcode is what I'd recommend.

https://en.m.wikipedia.org/wiki/LOLCODE

Intelligentia et magnanimitas vincvnt violentiam et desperationem.
The truth behind NASA's budget

*

Pezevenk

  • 15363
  • Militant aporfyrodrakonist
Re: the best book for learning C++ language is...
« Reply #10 on: April 16, 2019, 09:57:39 AM »
Java I hear good things about, never tried it myself.
Java is the only one I learned in uni (that and Matlab and Wolfram Mathematica but they don't count), it's pretty good. From what I heard from other people though who know both it's not much easier than C. Python is easier than all of them, I tried it for a while.
Member of the BOTD for Anti Fascism and Racism

It is not a scientific fact, it is a scientific fuck!
-Intikam

Read a bit psicology and stick your imo to where it comes from
-Intikam (again)

*

Son of Orospu

  • Jura's b*tch and proud of it!
  • Planar Moderator
  • 37834
  • I have artificial intelligence
Re: the best book for learning C++ language is...
« Reply #11 on: April 18, 2019, 08:21:40 AM »
I can't remember the name of the programming language I learned in middle school.  Oh, yeah, I think it was Pascal. 

*

Canary

  • 179
Re: the best book for learning C++ language is...
« Reply #12 on: April 21, 2019, 09:23:56 AM »
OK
one question:
should i leave printing to functions or printing in "man function"?
which idea is better?

*

Crouton

  • Flat Earth Inspector General of High Fashion Crimes and Misdemeanors
  • Planar Moderator
  • 16312
  • Djinn
Re: the best book for learning C++ language is...
« Reply #13 on: April 21, 2019, 10:25:14 AM »
Not totally sure what you mean. Are you asking which form of printing to the console is better? Such as cout or printf?
Intelligentia et magnanimitas vincvnt violentiam et desperationem.
The truth behind NASA's budget

*

Canary

  • 179
Re: the best book for learning C++ language is...
« Reply #14 on: April 21, 2019, 10:42:54 AM »
Not totally sure what you mean. Are you asking which form of printing to the console is better? Such as cout or printf?
no that is not what i mean.
OK, i'll show it with this example:


#include<stdio.h>
#include<conio.h>
void f1(char);
int main()
{
f1();


getch();
return 0;
}
void f1(void)
{
char ch;
ch=getche();
if(ch>='a'&&ch<='z')
 ch=ch-32;
printf("\n%c",ch);
}



or should write like this:


#include<stdio.h>
#include<conio.h>
char f1(char);
int main()
{
char ch, ch2;
ch=getche();
ch2=f1(ch);
printf("\n%c",ch2);


getch();
return 0;
}
char f1(char ch)
{

if(ch>='a'&&ch<='z')
 ch=ch-32;
return ch;
}
« Last Edit: April 21, 2019, 03:56:20 PM by Canary »

*

Crouton

  • Flat Earth Inspector General of High Fashion Crimes and Misdemeanors
  • Planar Moderator
  • 16312
  • Djinn
Re: the best book for learning C++ language is...
« Reply #15 on: April 21, 2019, 02:57:47 PM »
It depends.  For something this short you're better off keeping it in one function.  For bigger programs you'd split it off.

Something like this.

#include<stdio.h>
#include<conio.h>

char f1(char);

int main()
{
  char ch1=0,ch2=0;

  ch1=getche();
  ch2=f1(ch1);
  printf("%s \n",ch2);

  return 0;
}

char f1(char ch)
{
  char chOut=ch;

  if(ch>='a'&&ch<='z')
   chOut=ch-32;

  return chOut;
}
Intelligentia et magnanimitas vincvnt violentiam et desperationem.
The truth behind NASA's budget

*

Bullwinkle

  • The Elder Ones
  • 21053
  • Standard Idiot
Re: the best book for learning C++ language is...
« Reply #16 on: May 04, 2019, 11:05:42 PM »
I can't remember the name of the programming language I learned in middle school.  Oh, yeah, I think it was Pascal.

Remember the pull string?

. . . . . the selected object says "Mooo"



 ;D



*

Bullwinkle

  • The Elder Ones
  • 21053
  • Standard Idiot
Re: the best book for learning C++ language is...
« Reply #17 on: May 05, 2019, 04:00:54 AM »
Microsoft says that Visual Basic and the C family compile into the same code.

Then, again, what else would they say?   ;)