# I'd like to convert Processing code into C++ code

**URL:** <https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752>\
**Category:** Processing\
**Created:** [February 27, 2019, 8:22am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752 "2019-02-27T08:22:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AngelsApple](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@AngelsApple](https://discourse.processing.org/u/AngelsApple)\
**Post date:** [February 27, 2019, 8:22am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752/1 "2019-02-27T08:22:11Z")

</div>

Hi boys&girls, I want to Processing code into C++ code

Since I studied Processing as a first coding language, It feels so confused when I try to study other coding languages.  
Language that I’m studying now is C++ language.  
I’d like to see some same examples with both Processing and C++, but I can’t find proper difficulted one.  
So, Now I’m looking for code converting libraries or something.  
If you have good examples or language converting method, Please Let me know!

Thank you for reading this topic  
Regards

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [February 27, 2019, 8:34am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752/2 "2019-02-27T08:34:17Z")

</div>

First, understand both languages.

Then read the Processing code. Understand what it’s intent is.

Then write C++ code that does the same thing.

---

<div class="post-metadata">

**Author:** ![AngelsApple](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@AngelsApple](https://discourse.processing.org/u/AngelsApple)\
**Post date:** [February 27, 2019, 9:00am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752/3 "2019-02-27T09:00:33Z")

</div>

Thank you for the advice.  
But Why I feel difficult when I’m studying C++ is:  
-In processing, I don’t need to call other classes when I try to visualize something. I can change pixels easly. But in C++, even drawing rectangle is hard to me. To draw someting, I need to call many, unfamiliar header files. When I try to read about that header file, that file also have some reference files. These complicated C++'s reference structures are confusing me. ;(

---

<div class="post-metadata">

**Author:** ![TfGuy44](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tfguy44/32/41_2.png) [@TfGuy44](https://discourse.processing.org/u/TfGuy44)\
**Post date:** [February 27, 2019, 9:08am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752/4 "2019-02-27T09:08:36Z")

</div>

Right. Different languages are useful for different things. Processing is good for graphical stuff because it simplifies a lot of the details that you would encounter trying to do graphics in other languages (like C++). Of course, C++ provides benefits of its own! For one, you can compile it, and thus create an executable program that you can give to someone else without revealing to them the source code. It’s probably a better choice if you are working with file systems and allocating objects dynamically, or in situations where performance matters.

Different tools for different tasks, right?

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [February 27, 2019, 10:45am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752/5 "2019-02-27T10:45:13Z")

</div>

> [@AngelsApple](#):
>
> I’d like to see some same examples with both Processing and C++, …

> **[openFrameworks](https://openframeworks.cc)**
>
> openFrameworks

---

<div class="post-metadata">

**Author:** ![AngelsApple](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@AngelsApple](https://discourse.processing.org/u/AngelsApple)\
**Post date:** [February 27, 2019, 11:07am UTC](https://discourse.processing.org/t/id-like-to-convert-processing-code-into-c-code/8752/6 "2019-02-27T11:07:34Z")

</div>

Very very Thanks!  
It is almost what I looking for…😁
