Home | Community | Message Board

MushroomCube.com
This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post Pages: 1
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
C++ * 2
    #22646697 - 12/12/15 03:46 PM (8 years, 1 month ago)

I want to do a group introduction to C++, I have to learn some C++ within a month (first day of classes Jan. 19) before school begins because my mid-level programming class I am required to take is in C++, I just got an A in programming I with java but all the java II classes are filled up, so I figure I can learn a bit of C++ real quick as I am already familiar with Java and do fine in the C++ II class.

Anyways, I will post links to C++ tutorials and "homework", problems we can do.

I'm learning too though so..yeah.

Here is the intro to C++:



homework: setup your IDE, write "hello world" program.

EDIT: He doesn't really explain that you can use alternative IDE then than one he is using. I will be using Eclipse (typically a java IDE but has C/C++ support) and perhaps Visual Studio.
Found this list from quora:
Quote:


1)      Eclipse: Eclipse Ide refers to an open source utility that offers some advance functionality for C/C++ programmers. It has some impressive features such as syntax highlighting, debugger and auto code completion. Eclipse ide is supported on Windows, Linux and Mac OS X. Eclipse ide makes coding simpler for new programmers.

2)      NetBeans: NetBeans is another advance open source ide with features such as semantic highlighting, automatic formatting braces matching, unit testing, code assistance and much more.

3)      Code::Blocks: Code::blocks refers to an open source, cross platform and extensible ide for c++.The best feature of this C++ IDE is that as per on your need, it can be extended with the help of available plugins.

4)      Digital Mars: Digital mars is another free c/c++ compiler having command line and GUI versions. Digital mars features a fast compile and link time. To

5)      C Free: C free is a superb alternative for traditional turbo c compiler. It’s a small c ide with some brilliant features. C free is not a free ide but it can be used for 30 days for free.

6)      Sky IDE: Sky ide is a multi-compiler, multi-view, multi- project and multi-profile free c++ ide. Sky ide also supports various other languages such as java, php and JavaScript. Sky ide has powerful text manipulation, Syntax coloring, auto complete, line tracker functions.

7)      Dev C++ : Dev C++ makes use of mingw port of Gcc as its compiler. Dev C++ also supports c language and its feature includes Gcc based compiler, auto code completion, syntax highlighting, project manager and print support.

8)      CodeLite: Like Code::Blocks C++ ide, Codelite is also an open source, cross platform ide for C/C++ Programming languages. Codelite can work on different Operating systems such as Windows, Linux and Mac OS.

9)      MinGW: MinGw compilers provide a group of programming tools suitable for native windows applications. MinGw comprises a port of GCC (GNU) such as C,C++,ADA and Fortan Compilers. It’s an open source compiler.

10)  Ultimate++ : U++ is a cross platform RAD ide that focuses on c++ programmers productivity. It features a set of libraries such as GUI and SQl. U++ works with GCC, Visual C++ and MingGW.




https://www.quora.com/What-is-the-best-C-C-IDE


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Edited by hTx (12/15/15 01:42 AM)


Extras: Filter Print Post Top
OfflineOggy
Stranger Danger
 User Gallery

Registered: 12/05/14
Posts: 1,276
Loc: Planet Remulak
Last seen: 6 months, 28 days
Re: C++ [Re: hTx] * 1
    #22651952 - 12/13/15 09:11 PM (8 years, 1 month ago)

C++ is really no different than other languages. It's really simple to learn.
It's a multi paradigm language, so it will be quite different than Java in that regard. Otherwise you should pick it up quite quickly if you already know Java.

I would suggest buying the C++ programming language book written by the creator of the language, Bjarne Stroustrup. Even an ebook would be helpful. Learning from others runs the risk of developing bad habits.


--------------------


Edited by Oggy (12/13/15 09:14 PM)


Extras: Filter Print Post Top
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
Re: C++ [Re: Oggy]
    #22652368 - 12/13/15 11:10 PM (8 years, 1 month ago)

Thanks, and thanks for the information..
I was a little worried that starting an advanced class in C++ would doom me, but so far I'm seeing a lot of similarities..


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Extras: Filter Print Post Top
InvisibleThe Phleg
Big Dick Chakra
I'm a teapot User Gallery


Folding@home Statistics
Registered: 03/07/10
Posts: 14,473
Loc: Uncanny Valley
Re: C++ [Re: hTx]
    #22652377 - 12/13/15 11:13 PM (8 years, 1 month ago)

:takingnotes:


--------------------
You wanna get high? Drink tap water.
--------------------


Extras: Filter Print Post Top
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
Re: C++ [Re: The Phleg]
    #22657248 - 12/15/15 02:00 AM (8 years, 1 month ago)

I will structure this class in the way that Java was introduced to me.
Anyways I thought this was a cool introduction to C++, a video by the creator as to why he created it:


On to the next lesson!

Lets talk about input and output, in the previous lesson "Hello World" is the output which is hard-coded by yourself, but usually most programs will need to get some sort of data input from the user or elsewhere.

The following is a lesson on input and output:






Homework: Write a program which asks the user for their first and last name. Display the following: StudentName: [ last name ], [ first name ]


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Extras: Filter Print Post Top
Invisiblemicro
bunbun has a gungun
Male User Gallery


Registered: 05/09/03
Posts: 7,532
Loc: Brick City Flag
Re: C++ [Re: hTx]
    #22665493 - 12/16/15 10:35 PM (8 years, 1 month ago)

There's school, and then there is going through enterprise apps with hundreds of thousands of files (with hundreds to thousands of lines of code each) in their repo. I've been programming since I was six years old and can reverse engineer apps like that without help in a week (last one took me about two days) but how the fuck can you teach that to ANYONE? It's not rocket science; everything more or less follows many of the same design patterns and the rest is just ripping apart the logic. Honestly, I think education about programming is orthogonal to actual practice, but that's just me. Hello World shit is just procedural.

You gotta start somewhere though.


--------------------
Any research paper or book for free
(Avatar is Maxxy, a character by Mizzyam, RIP)


Extras: Filter Print Post Top
InvisibleSun King
 User Gallery

Folding@home Statistics
Registered: 02/15/14
Posts: 4,069
Re: C++ [Re: hTx]
    #22700814 - 12/26/15 07:24 AM (8 years, 1 month ago)

Are you still doing this?

Checkout this site.
https://coderbyte.com/challenges/


--------------------


Extras: Filter Print Post Top
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
Re: C++ [Re: micro]
    #22702410 - 12/26/15 05:21 PM (8 years, 1 month ago)

Quote:

micro said:
There's school, and then there is going through enterprise apps with hundreds of thousands of files (with hundreds to thousands of lines of code each) in their repo. I've been programming since I was six years old and can reverse engineer apps like that without help in a week (last one took me about two days) but how the fuck can you teach that to ANYONE? It's not rocket science; everything more or less follows many of the same design patterns and the rest is just ripping apart the logic. Honestly, I think education about programming is orthogonal to actual practice, but that's just me. Hello World shit is just procedural.

You gotta start somewhere though.



I've been programming for about 4 months, and I'm making progress.

My ADD has been kicking in and I've been studying more Ruby lately than C++..

I didnt think anyone was following this thread so I gave up but if people are down, we can hop right to it.


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Extras: Filter Print Post Top
InvisibleSun King
 User Gallery

Folding@home Statistics
Registered: 02/15/14
Posts: 4,069
Re: C++ [Re: hTx]
    #22702430 - 12/26/15 05:29 PM (8 years, 1 month ago)

I usually program in C#. It is a lot like Java only better. I wanted to brush up on ruby to get a job, but I may stick with C#. I would like to see more programming posts.

I loaded codeblocks and visual studio 15.


--------------------


Extras: Filter Print Post Top
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
Re: C++ [Re: Sun King]
    #22702458 - 12/26/15 05:38 PM (8 years, 1 month ago)

Quote:

Sun King said:
I usually program in C#. It is a lot like Java only better. I wanted to brush up on ruby to get a job, but I may stick with C#. I would like to see more programming posts.

I loaded codeblocks and visual studio 15.



I love Ruby, I've found that you can code such that it reads like English sometimes.
C# looks super interesting, and that was the only other programming class besides C++ that was available.

that class required a prereq. beginners c# class, whereas the c++ did not.. I emailed my advisor to see if they could waive the c# prereq. since I already have beginners java...but no response yet.

I guess it is still like xmas break n what not.


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Extras: Filter Print Post Top
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
Re: C++ [Re: Sun King]
    #22911844 - 02/16/16 12:35 PM (7 years, 11 months ago)

Would you like to work on a game with me?

I'm building a poker game for my portfolio.


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Extras: Filter Print Post Top
InvisibleSun King
 User Gallery

Folding@home Statistics
Registered: 02/15/14
Posts: 4,069
Re: C++ [Re: hTx]
    #22911865 - 02/16/16 12:42 PM (7 years, 11 months ago)

sure


--------------------


Extras: Filter Print Post Top
InvisiblehTx
(:
Male User Gallery


Registered: 03/27/13
Posts: 5,724
Loc: Space-time
Re: C++ [Re: Sun King]
    #22912128 - 02/16/16 02:07 PM (7 years, 11 months ago)

Sweet.


So, lets break it down!

I've only just started literally about 10 minutes before I made that post, and since then, I have created a shuffled deck of 'cards'.

Quote:



int cards[52];

for (int i = 0; i < 52; i++) {
cards{i}=i;
random_shuffle(cards, cards + 52);




This should (haven't tested yet), with the #include <algorithm> header, populate an array of 52 elements randomly with unique numbers 1-52.

The idea is to initialize a 'shuffle' after every game, so I'm probably going to make a loop (probably a function)using the above code which repopulates the array after every game.

I'll get to that later..
Right now, I'm working on if - else statements to determine strength of hands.

p.s. (I plan on grouping 4 numbers into 13 groups which represent a suite in that number, so, 1 = one of hearts; 2 = one of clubs; 3 = one of spades; etc.)


--------------------
zen by age ten times six hundred lifetimes
Light up the darkness.


Extras: Filter Print Post Top
InvisibleSun King
 User Gallery

Folding@home Statistics
Registered: 02/15/14
Posts: 4,069
Re: C++ [Re: hTx]
    #22912445 - 02/16/16 03:35 PM (7 years, 11 months ago)

You need a way to keep track of which cards have been dealt.


--------------------


Extras: Filter Print Post Top
Offlinech1ck3n.s0up
Troubled Loner
Male User Gallery


Registered: 10/03/08
Posts: 2,573
Loc: Hunting Fungi
Last seen: 2 years, 6 months
Re: C++ [Re: Sun King] * 1
    #22997995 - 03/12/16 12:05 AM (7 years, 10 months ago)

From a veteran coder, a few key things to understand about C++:

1. It is a federation of four different "languages:" C, C++, The Standard Library, and Generic/Template programming.
2. The syntax is not generally intuitive, certainly not when compared with Python. It can really be a headache, and has a rather difficult learning curve.
3. It is FAST. That's it's main selling point.
4. It is most heavily used in the Financial world.
5. Pointers allow you direct access to memory locations. It is a higher-level language that gives you assembly-language level access to memory. This feature separates it from the rest, and is perhaps the main reason why it is so fast.
6. Be sure to check out the Boost libraries, at boost.org


--------------------

"Inspiration ~ Move me brightly ~ light the song with sense and color ~ hold away despair ~ more than this I will not ask ~ faced with mysteries dark and vast ~ statements just seem vain at last" --Jerry Garcia, Terrapin Station

"Officer, I'm going to remain silent, and I would like to speak with a lawyer. I'm not resisting, but I don't consent to any searches.


Extras: Filter Print Post Top
OfflinePsychogenic
Tripped out jungle monkey
 User Gallery


Registered: 05/26/14
Posts: 631
Last seen: 7 years, 6 months
Re: C++ [Re: hTx]
    #23074198 - 04/02/16 06:44 AM (7 years, 9 months ago)

He makes clicking links seem like such fun.


Extras: Filter Print Post Top
OfflineTPilot
Stranger
Male
Registered: 08/01/16
Posts: 3
Last seen: 7 years, 3 months
Re: C++ [Re: Oggy]
    #23518698 - 08/07/16 11:58 AM (7 years, 5 months ago)

Agree, but C++ certainly has a learning curve for someone coming from Java, or another garbage-collected language. Without any knowledge of computer memory, and how to work with it properly, C++ will be a big learning experience in that aspect of things.


--------------------
Who needs signatures?
- TPilot


Extras: Filter Print Post Top
OfflineRazare
Stranger
 User Gallery
Registered: 09/03/16
Posts: 43
Last seen: 7 years, 1 month
Re: C++ [Re: hTx]
    #23639782 - 09/12/16 08:34 PM (7 years, 4 months ago)

Learned C++ when I was 14, I'm 32 now.

In college I learned Java, PHP, and perl sometime around there, along with some web languages.

I'm a decent programmer for most simple things these days, but I work in accounting.

Perl is by far my favorite because I do simple things... yet perl does complex things very simply.  I think some more advanced studio languages would be better because of better support, and example code...  but perl is fast and free.

It's great for linking databases or doing custom coding projects to manipulate data.


--------------------


2016 was a good year, +5 lb of Morels, and I ate 8 new species of wild mushrooms:  Herecium, Chanterelles, Black Trumpets, Parasol Mushroom, Fairy Ring Mushroom (marasmius oreades), Wild Oyster, Slippery Jacks, Honey Mushrooms (found over 100lb, froze 4lb in my freezer.)

Reference Pictures for Mushrooms


Extras: Filter Print Post Top
Jump to top Pages: 1


Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Middleman
3,277 topic views. 0 members, 0 guests and 2 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.025 seconds spending 0.008 seconds on 15 queries.