This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-17 15:38:23

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

C/C++ Official Topic

Discuss the C and C++ languages here! Ask programming questions, paste code snippets, talk about your projects, as long as it is C or C++!

Offline

 

#2 2012-02-17 15:43:44

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

I am working on somehow connecting C++ to Scratch, perhaps modding it a bit.

Offline

 

#3 2012-02-17 15:47:37

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Re: C/C++ Official Topic

I still can't figure out how to make anything useful in C.
-_-

Last edited by Dinoclor (2012-02-17 15:47:48)


This is a temporary signature. It will exist until I think of something witty.

Offline

 

#4 2012-02-17 15:48:43

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

Dinoclor wrote:

I still can't figure out how to make anything useful in C.
-_-

well, just keep at it!

Offline

 

#5 2012-02-17 15:50:00

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Re: C/C++ Official Topic

Yes, but you can't do anything useful with it which doesn't take forever or has been invented already a thousand times better.


This is a temporary signature. It will exist until I think of something witty.

Offline

 

#6 2012-02-17 15:51:20

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

Dinoclor wrote:

Yes, but you can't do anything useful with it which doesn't take forever or has been invented already a thousand times better.

I don't learn to make amazing things that have never been done, i do it to learn and gain experience for the future so i might be able to make those things.

Offline

 

#7 2012-02-17 16:13:54

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: C/C++ Official Topic

#include<iostream>
using namespace std;

int main()
{
cout<<"Can we post questions here?"<<endl;
return 0;
}


http://trinary.tk/images/signature_.php

Offline

 

#8 2012-02-17 16:30:05

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

trinary wrote:

#include<iostream>
using namespace std;

int main()
{
cout<<"Can we post questions here?"<<endl;
return 0;
}

this might have been better:
#include<iostream>
#include<string>
using namespace std;
string answer;
int main()
{
cout<<"Can we post questions here?"<<endl;
cin>>answer;
return 0;
}

My response:
#include<iostream>
using namespace std;

int main()
{
answer = "Yes!";
}

Offline

 

#9 2012-02-17 16:36:21

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C/C++ Official Topic

Be better...

Code:

int main(int argc, const char* argv[]){
char languageWar[512] = "C";
printf("%s is better than C++", languageWar);
return 0;
}

I support the Free Software Foundation. Protect our digital rights!

Offline

 

#10 2012-02-17 17:06:38

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

Samtwheels are you the person from Aeroterra?
If so...

public class trololol{
     public static void main(String args[]){
          System.out.println("Java does it in many fewer lines of code");
          System.out.println("trololololol");
     }
}

tongue  Sorry, I couldn't resist that. It's 6 lines of code, but it only really needs 5. It's only a gain of 2 lines though, but most of that is unused (brackets and declarations)


ANYWAY, once I finish Java, I'll begin either a language of BASIC or C.

Last edited by 16Skittles (2012-02-17 17:07:06)


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#11 2012-02-17 17:17:52

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

16Skittles wrote:

Samtwheels are you the person from Aeroterra?
If so...

public class trololol{
     public static void main(String args[]){
          System.out.println("Java does it in many fewer lines of code");
          System.out.println("trololololol");
     }
}

tongue  Sorry, I couldn't resist that. It's 6 lines of code, but it only really needs 5. It's only a gain of 2 lines though, but most of that is unused (brackets and declarations)


ANYWAY, once I finish Java, I'll begin either a language of BASIC or C.

really only needs one.
public class trololol{ public static void main(String args[]){System.out.println("Java does it in many fewer lines of code");System.out.println("trololololol");}}
That's just word wrap. this would compile just fine. Now run away, you leetle javite!

Last edited by samtwheels (2012-02-17 17:18:34)

Offline

 

#12 2012-02-17 17:44:41

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

samtwheels wrote:

16Skittles wrote:

Samtwheels are you the person from Aeroterra?
If so...

public class trololol{
     public static void main(String args[]){
          System.out.println("Java does it in many fewer lines of code");
          System.out.println("trololololol");
     }
}

tongue  Sorry, I couldn't resist that. It's 6 lines of code, but it only really needs 5. It's only a gain of 2 lines though, but most of that is unused (brackets and declarations)


ANYWAY, once I finish Java, I'll begin either a language of BASIC or C.

really only needs one.
public class trololol{ public static void main(String args[]){System.out.println("Java does it in many fewer lines of code");System.out.println("trololololol");}}
That's just word wrap. this would compile just fine. Now run away, you leetle javite!

Wow, lol. But there is a slight difference between what a computer can understand and what is actually legible to a human programmer.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

#13 2012-02-17 17:50:24

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C/C++ Official Topic

Code:

int main(int argc, const char* argv[]){
char languageWar[512] = "C";
printf("%s is better than Java", languageWar);
return 0;
}

I support the Free Software Foundation. Protect our digital rights!

Offline

 

#14 2012-02-17 17:53:46

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: C/C++ Official Topic

<?php
echo "No, PHP is better than C. ";
?>


http://trinary.tk/images/signature_.php

Offline

 

#15 2012-02-17 17:58:35

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: C/C++ Official Topic

trinary wrote:

<?php
echo "No, PHP is better than C. ";
?>

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

Last edited by veggieman001 (2012-02-17 17:59:00)


Posts: 20000 - Show all posts

Offline

 

#16 2012-02-17 18:01:33

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

veggieman001 wrote:

trinary wrote:

<?php
echo "No, PHP is better than C. ";
?>

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

I'm not going to say the name of that language. It's a bad word.
For some reason this is block code.

Last edited by samtwheels (2012-02-17 18:02:01)

Offline

 

#17 2012-02-17 18:03:24

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C/C++ Official Topic

What are you talking about?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#18 2012-02-17 18:05:45

samtwheels
Scratcher
Registered: 2011-03-20
Posts: 1000+

Re: C/C++ Official Topic

bobbybee wrote:

What are you talking about?

Well, the language is called brain****

Offline

 

#19 2012-02-17 18:12:47

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C/C++ Official Topic

No wonder I never heard of it...


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#20 2012-02-17 18:16:26

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: C/C++ Official Topic

samtwheels wrote:

veggieman001 wrote:

trinary wrote:

<?php
echo "No, PHP is better than C. ";
?>

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

I'm not going to say the name of that language. It's a bad word.
For some reason this is block code.

What do you mean?


http://trinary.tk/images/signature_.php

Offline

 

#21 2012-02-17 18:18:34

Luke121
Scratcher
Registered: 2008-07-14
Posts: 1000+

Re: C/C++ Official Topic

trinary wrote:

samtwheels wrote:

veggieman001 wrote:

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

I'm not going to say the name of that language. It's a bad word.
For some reason this is block code.

What do you mean?

He just said "It's a bad word.". Why would he tell you if he just went out of his way NOT to tell you?

*le sigh*

EDIT: I've used Xcode before.

Last edited by Luke121 (2012-02-17 18:19:53)


http://bit.ly/IlVuB5
Sorry PF, too lazy to make my own!  tongue

Offline

 

#22 2012-02-17 18:20:14

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: C/C++ Official Topic

Luke121 wrote:

trinary wrote:

samtwheels wrote:


I'm not going to say the name of that language. It's a bad word.
For some reason this is block code.

What do you mean?

He just said "It's a bad word.". Why would he tell you if he just went out of his way NOT to tell you?

*le sigh*

No, I mean why is PHP a bad word?
It's a scripting language...
*doesn't understand*


http://trinary.tk/images/signature_.php

Offline

 

#23 2012-02-17 18:23:47

Luke121
Scratcher
Registered: 2008-07-14
Posts: 1000+

Re: C/C++ Official Topic

trinary wrote:

Luke121 wrote:

trinary wrote:


What do you mean?

He just said "It's a bad word.". Why would he tell you if he just went out of his way NOT to tell you?

*le sigh*

No, I mean why is PHP a bad word?
It's a scripting language...
*doesn't understand*

We here on the forums have a curious sense of humor; more of a disease actually. You'll get it too, eventually. Then it will be all clear to you.


http://bit.ly/IlVuB5
Sorry PF, too lazy to make my own!  tongue

Offline

 

#24 2012-02-17 18:25:00

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: C/C++ Official Topic

PHP isn't a bad word. What veggie wrote is.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#25 2012-02-17 18:25:09

16Skittles
Scratcher
Registered: 2009-08-26
Posts: 1000+

Re: C/C++ Official Topic

Methinks we should either talk about C or leave. I'll stop posting here for now, but I'll be stopping by once in a while to see if there are any tips when I begin learning C.


http://16skittles.tk/sig.png
Are you a student? Check out OnSchedule!

Offline

 

Board footer