Migrating from Java to C and then to C ++?

I am currently working with Java and its object-oriented aspects (I also work a lot with PHP / MySQL). I do not sell it on the Internet; I just use it to develop programs for general purposes. However, now I need to learn C right now, and I have an interest in C ++. I got the C programming language, which some say is the best book on the subject. Can someone tell me what the biggest problems will be, with the exception of String handling, in how I think about programming and how I create programs? I understand that I do not have classes, but how will this affect me specifically (i.e. I will have to redesign the methods and always develop everything with the idea that it is harder to edit)? Also, is it hard to switch to C ++ from these languages? Everyone says it's really hard languagebut will any previous experience help? And with this experience Accelerated C ++ should be hard from a book to start with?

Thanks a million.

+5
source share
7 answers

Do not worry. I started programming in Java and then switched to C ++. And then I recognized the x86 assembly, and now I'm in C, and then I'm back to use some functions of objects in C ++. I even recently made a Java project. The order is not important, while you are learning these languages, you will be successful with them.

Now you asked about the design. I think this is the part that you will like best. In OOP, if you want to create a simple wrapper over a database, you must create an object, and then you can set up an inheritance system with polymorphic functions, etc.

C sqlite_wrapper.c, # sqlite3.h . , , ( ), .

C , . . Java + , , .

, .

+5

, , OO, " " . C , , . ++ .

C ++ . , , , ++ . . " ", . , , .

+10

, ++ Java, C.

++ , . . ++ , , . , , . Exceptional, Modern ++ .

++ - , , , . , . , .

SO ++.

+4

C ++. - - ++. , , -. , .

  • .
  • C
  • C
  • ++.

Java, OO - , ++. C, . - , .

+3

2- Uni-level Java ( ) ++ 2 . " , , ..".

C , ++ Java ( , ). Boost (++-), . , , ++, !

+2

. , . , , , . "" . , .

, :

  • , , *, &,., β†’ , , , , , , . .

  • , , , , , . , , , , .

+1

, C , .

C Java:

  • , .
  • - .
  • JVM, , . , , .
  • , , .

: - , , , / , , JVM.

+1

All Articles