Talk about absolutely anything here!
  • User avatar
  • User avatar
  • User avatar
  • User avatar
User avatar
By FaeynHeart
#31431
Cheez99 wrote:
Sharingan616 wrote:
mtndewzane wrote:I am not sure if I want to learn C, C++, or java.

I would love to learn all of them, but need to set my mind on one for now until I feel strong enough to learn another one.

Any suggestions. I know many code C and C++ , but Java would be nice to learn.
C++ is the most powerful of the three. It's better then C, and Java is weak. If you learn C++ very well Java shouldn't be too hard to learn afterwards.
While C++ is the most powerful, I would advise learning Java first. It's the easiest and has several features that make it harder for you to goof things up, like bounds checking. Java won't let you run out of the bounds of an array, but C++ will let you derp right off and never tell you. Java does garbage collection automatically too, so that's nice; however, I've never had to worry about it in C++.

Once you know Java, C++ is going to be easy to learn, and hopefully you'll have built up good habits and experience so that you won't make as many mistakes in C++.
I completely agree. Unfortunately, my desired job is to work with microcontrollers which really just requires C and ASM knowledge. So I don't really have so much of a push to learn Java, but for everyone else, go for it.
By trollberry
#31668
smith2013 wrote:I think he means the programming class. What do you guys think of C#?
Pretty much a re-skinned Java with slightly more learner friendly presentation (on windows) and more tightly integrated components (not as portable either - unless you want to mess with 3rd party toolkits). I enjoyed learning it but mainly because there wasn't much thinking involved as I already knew C++ and was familiar with Java and similar languages.

Overall I found Java much better for cross-platform work and more open to adding what you need rather than carrying about everything plus the kitchen sink just to do something simple.
By Morverzhus
#31758
I'd recommend starting with C++, unlike the others. Understanding the basics and having to implement things yourself is more important than quickly whipping up a C# or Java application in my opinion. It's those struggles with threads, memory leaks, stack overflows, and all that other good stuff that really teach you the fundamentals. C# and Java are too high level to start, they provide everything you need to easily and quickly develop (not that this is a bad thing, just bad from a learning point of view). If you want to just be content with knowing the high level stuff and not understanding how the low level stuff works, use C# or Java. Otherwise stick with good old C++ and move to C# once you understand the fundamentals.

Just my 2 cents.

I have nothing against C#, it's just not a language to learn how to program on. You can drag controls onto a damn designer to make a user interface, and click a button on it to create events for you.
User avatar
By fritterdonut
#32465
Anyone made anything or learnt anything lately?

I just lately learnt how to use Boolean variables, the If and else statements, and strings (using #include <string>)

:mrgreen:
User avatar
By FaeynHeart
#32469
enter in a number then hit enter...enter in up to 100 numbers and then end it with typing a '0'. The program outputs a bar graph with heights of the numbers entered :)
Code: Select all
#include <iostream>

using namespace std;

void draw(int numerical_array[], int array_size);

int main()
{   
    //source came from online example
    int user_input[100];
    int numerical_in = 1;		//numerical value that the user enters
    int usr_num = 0;		//used to specify the exact size of the final array

	//cout << "Please input a set of integers (no more than 100) to graph\n";

	   
	    while ((usr_num < 100)&&(numerical_in != 0))		//loop so that the user cannot enter more than 100 integers & break point at '0'
	    {
		cin >> numerical_in;

	    	if ((numerical_in < 0)||(numerical_in > 100))
	    	{
		    cout << "That is an incorrect value, please try again\n";
	        }
	    	else
	    	{
	       	    user_input[usr_num] = numerical_in;			//sets each value of the array to hold the numerical input
		    usr_num++;
	    	}   	
	    }  
	 
	     //cout << "Okay, I'll display the chart:\n";		//starts to display the chart
	     draw (user_input, usr_num-1);	     		//"usr_num is '-1' else it will include break point within the array size
	 
	return 0;
}
	//begin drawing sequence

void draw (int numerical_array[], int array_size)	//function takes in both the array size and the values held in the array
{
     int array_position = array_size;
     int counter = 0;
     int highest_num = numerical_array[0];				//integer that holds the highest number (holds first value by default)

	for (int maxcount = 0; maxcount < array_size; maxcount++)	//function makes counters in order to compare two numbers in the array
	{
	    if (numerical_array[counter] < numerical_array[maxcount+1])
	    {
		counter = maxcount+1;					//keeps record of the placement of the highest number
		highest_num = numerical_array[maxcount+1];		//keeps record of the highest number
	    }
	}
	while (highest_num > 0)
	{   		

	    for (int display = 0; display < array_position; display++)	//counter that will check every number in the array
	    {		
		if (highest_num <= numerical_array[display])		//if the array value is equal or greater, display a *
		{  cout << "*";  }
		else
		{  cout << " ";  }
	    }
	    highest_num--;						//decrements standard by '1' to see if next values compare
	    cout << "\n";
	}
	
	cin.get();
	cin.get();
}
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]