×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Atelier 801
  • /
  • Hors-sujet
  • /
  • Programming
« ‹ 5 / 9 › »
Programming
Mitodomals
« Citoyen »
1360092000000
    • Mitodomals#0000
    • Profil
    • Derniers messages
    • Tribu
#81
  0
Fxie a dit :
If you wrote your own code, you wouldn't be "to lazy" to share it in such a way that people would actually be willing to read it, not just say "damn remove that text wall."

AHAH, i wrote my own code, and i like to post it. U aren't the boss of me what sould i do with the code.

Fxie is thinking that she is the master coder
and that no one is better than her
Fxie
« Citoyen »
1360092240000
    • Fxie#0000
    • Profil
    • Derniers messages
    • Tribu
#82
  0
Can you elaborate as to what it even is? I couldn't understand past the merge of minimally descriptive text and code. I also noticed you tried to use
1
2
3
4
5
 tags despite being "to lazy" to use [quote[url][/url]] tags... honestly not whether to believe you just copied the whole post and edited some names or not.

If you do want to share something, it'd be appreciated if it came with a proper, comprehensible description and with code sorted into [quote[url][/url]] tags for clarity.

A reason would be nice too, rather than "here's my code, feast your eyes on it." Something like "here's my latest project," or "here's a useful function I made," or "here's an example of something."
Mitodomals
« Citoyen »
1360092240000
    • Mitodomals#0000
    • Profil
    • Derniers messages
    • Tribu
#83
  0
Fxie a dit :
Can you elaborate as to what it even is? I couldn't understand past the merge of minimally descriptive text and code. I also noticed you tried to use
1
2
3
4
5
6
 tags despite being "to lazy" to use [quote[url][/url]] tags... honestly not whether to believe you just copied the whole post and edited some names or not.

If you do want to share something, it'd be appreciated if it came with a proper, comprehensible description and with code sorted into [quote[url][/url]] tags for clarity.

A reason would be nice too, rather than "here's my code, feast your eyes on it." Something like "here's my latest project," or "here's a useful function I made," or "here's an example of something."[/quote]
As u wish jealus princess
Soakitup
« Citoyen »
1360094160000
    • Soakitup#0000
    • Profil
    • Derniers messages
    • Tribu
#84
  0
[edited for not wanting a mute reasons]
Tummnus
« Citoyen »
1360111200000
    • Tummnus#0000
    • Profil
    • Derniers messages
    • Tribu
#85
  0
Todorovski a dit :
HTML isn't actually a language, but tags which are used on forums etc.

Well,Depends what you consider it.

Ediz a dit :
>No one is talking about Python

I am disappoint.

Awe :<
Fxie
« Citoyen »
1360118220000
    • Fxie#0000
    • Profil
    • Derniers messages
    • Tribu
#86
  0
Tummnus a dit :
Well,Depends what you consider it.

Markup language. By definition.

All languages aren't programming languages
Cptp
« Citoyen »
1360122600000
    • Cptp#0095
    • Profil
    • Derniers messages
    • Tribu
#87
  0
Ediz a dit :
>No one is talking about Python

I am disappoint.

Please don't use python except for short scripts.
Hotaru
« Censeur »
1360143060000
    • Hotaru#0095
    • Profil
    • Derniers messages
    • Tribu
#88
  0
Noob question time;
What /float/ is in C++? I missed one lesson from extras due a contest and now when I took somebody's notebook I see this thing.
Todorovski
« Citoyen »
1360144080000
    • Todorovski#0000
    • Profil
    • Derniers messages
    • Tribu
#89
  0
Methusalah a dit :
Noob question time;
What /float/ is in C++? I missed one lesson from extras due a contest and now when I took somebody's notebook I see this thing.

Float is some kind of command, which allows you to use decimals.
For example:

#include <iostream>
using namespace std;

int main()
{
int a;
float b;

a = 15;
b = 14.05;
};
Fxie
« Citoyen »
1360150740000
    • Fxie#0000
    • Profil
    • Derniers messages
    • Tribu
#90
  0
I don't speak Cx but I know by my understanding of floats in assembly that floating-point values are essentially decimal values rather than integers (whole numbers).

int (integer): 1, 2, 3
float (floating-point): 1.1, 2.2, 3.3

floats are bigger in size since computers have to compensate for not being very good at decimals with huge numbers
0x3F800000 is 1 with floats whereas 0x01, 0x0001, or 0x00000001 can be 1 with integers depending on the size you need.


also tfw never took a coding class
Todorovski
« Citoyen »
1360153320000
    • Todorovski#0000
    • Profil
    • Derniers messages
    • Tribu
#91
  0
Fxie a dit :
also tfw never took a coding class

You've learned everything yourself? :o
-------------------------------------------------------------------------------------------
By the way, there are other codes for decimals, such as double and long long I guess. Float takes only 4 bytes, and double or long long take 8 bytes. I recommend you double instead of float because it allows you to add more than 15 decimals (20 I guess), and it is more precious.
About int (Integer), if you use a decimal, it will circle it on the first number. Such as:
3.59 - 3, 7.12 - 7 etc.

EDIT: Anyone knows why is .h in this: #include <iostream.h>?
Fxie
« Citoyen »
1360154100000
    • Fxie#0000
    • Profil
    • Derniers messages
    • Tribu
#92
  0
Todorovski a dit :
it is more precious.

yes quite hmm yes quite yes hm

But you just explained that as though double and float values are two different things. They are not.
Todorovski
« Citoyen »
1360154460000
    • Todorovski#0000
    • Profil
    • Derniers messages
    • Tribu
#93
  0
Fxie a dit :
But you just explained that as though double and float values are two different things. They are not.

I never said they are different. Did you actually read what I said eh?
Fxie
« Citoyen »
1360154580000
    • Fxie#0000
    • Profil
    • Derniers messages
    • Tribu
#94
  0
Todorovski a dit :
By the way, there are other codes for decimals, such as double and long long

a dit :
Float takes only 4 bytes, and double or long long take 8 bytes.

a dit :
I recommend you double instead of float

ye

I'm not talking about Cx here, I'm talking about floats. If they're defined differently in your language, I wouldn't know as I don't speak it. I just know that these are all floats and you can't use one kind of float as opposed to floats in general. That's how I'm seeing it based on your explanations.
Todorovski
« Citoyen »
1360155480000
    • Todorovski#0000
    • Profil
    • Derniers messages
    • Tribu
#95
  0
I am working on a calculator. I need some help to give it a better look.
Here are the scripts:

http://i.imgur.com/rlXA9ge.png
Cptp
« Citoyen »
1360165080000
    • Cptp#0095
    • Profil
    • Derniers messages
    • Tribu
#96
  0
Methusalah a dit :
Noob question time;
What /float/ is in C++? I missed one lesson from extras due a contest and now when I took somebody's notebook I see this thing.

http://floating-point-gui.de/
It is important that you understand the quirks associated with floating point numbers.
Holomouse
« Citoyen »
1360175220000
    • Holomouse#0095
    • Profil
    • Derniers messages
    • Tribu
#97
  0
Someone explain me the return parameter in c++..I still struggle with it. I don't think I ever got it correctly as I rarely followed the lessons for c++ programming.
Fxie
« Citoyen »
1360176480000
    • Fxie#0000
    • Profil
    • Derniers messages
    • Tribu
#98
  0
If you're referring to the "return x" at the end of most functions, that returns a value to the caller.

For example, and this is in JS but I imagine it wouldn't be much different in C++,

function test() {return 2}

then if you, say, set a variable to the function

two=test()

test would be executed and return 2, which would be the value assigned to "two"

If you have nothing to return, I don't imagine you'd bother putting return (unless it's necessary in C++?).
Todorovski
« Citoyen »
1360176840000
    • Todorovski#0000
    • Profil
    • Derniers messages
    • Tribu
#99
  0
Fxie a dit :
If you have nothing to return, I don't imagine you'd bother putting return (unless it's necessary in C++?).

You aren't supposed to use return always, but only when you use int main(). (For example, when using void main(), you shouldn't use it). I don't know why, but that's what I know.
Cptp
« Citoyen »
1360191360000
    • Cptp#0095
    • Profil
    • Derniers messages
    • Tribu
#100
  0
Todorovski a dit :
You aren't supposed to use return always, but only when you use int main(). (For example, when using void main(), you shouldn't use it). I don't know why, but that's what I know.

void main isn't standards compliant (unless you are running in a hostless system). main is expected to return an int.
  • Forums
  • /
  • Atelier 801
  • /
  • Hors-sujet
  • /
  • Programming
« ‹ 5 / 9 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27