Yahoo Clever wird am 4. Mai 2021 (Eastern Time, Zeitzone US-Ostküste) eingestellt. Ab dem 20. April 2021 (Eastern Time) ist die Website von Yahoo Clever nur noch im reinen Lesemodus verfügbar. Andere Yahoo Produkte oder Dienste oder Ihr Yahoo Account sind von diesen Änderungen nicht betroffen. Auf dieser Hilfeseite finden Sie weitere Informationen zur Einstellung von Yahoo Clever und dazu, wie Sie Ihre Daten herunterladen.

Lv 55.384 points

science_guy

Favorisierte Antworten33%
Antworten901
  • How do I fix C++ error: "ld.exe cannot find -lgcc_eh"?

    I am using CodeBlocks and have just been installing Allegro 5.0.5 using the wiki page:

    http://wiki.allegro.cc/index.php?title=Windows_Vis...

    But now when I go to run the basic starter tutorial

    http://wiki.allegro.cc/index.php?title=Allegro_5_T...

    it fails with this error:

    File: Id.exe

    Message: cannot find -lgcc_eh

    How do I fix this?

    Here is the code if it helps:

    #include <stdio.h>

    #include <allegro5/allegro.h>

    int main(int argc, char **argv){

    ALLEGRO_DISPLAY *display = NULL;

    if(!al_init()) {

    fprintf(stderr, "failed to initialize allegro!\n");

    return -1;

    }

    display = al_create_display(640, 480);

    if(!display) {

    fprintf(stderr, "failed to create display!\n");

    return -1;

    }

    al_clear_to_color(al_map_rgb(0,0,0));

    al_flip_display();

    al_rest(10.0);

    al_destroy_display(display);

    return 0;

    }

    1 AntwortProgramming & Designvor 10 Jahren
  • Why use "&" before a variable in php?

    I have been told that the & is used to reference....but im not entirely sure I get it so

    Are these the same?

    $foo = function();

    $bar = &$foo;

    AND

    $foo = function();

    $bar = function();

    BUT NOT

    $foo = function();

    $bar = $foo;

    So that when you use the "&" before a variable it means instead of assigning the VALUE of the variable [$bar=$foo] is assigns it whatever the variable was referencing [$bar=function()].

    So instead of using a long name for a function you can instead use the short name of the variable which holds that function by using & before that variable.

    2 AntwortenProgramming & Designvor 1 Jahrzehnt
  • Variable in php / javascript redirects to 404 Unknown - Why?

    I have created a php script which uses the print function and then uses javascript like this:

    print "<script language='JavaScript1.2'>

    stuff...

    </script>";

    And that appeared to work fine, as it has in other scripts. THe strange thing however is that a single variable when changed causes the whole page to redirect to "404 Not Found"

    Heres an extract from within the print:

    //player stats

    var p_b_constitution = $p_b_constitution;

    var p_b_skill = $p_b_skill;

    var p_b_agility = $p_b_agility;

    Now if I remove a single letter from any ONE of the variables:eg. $p__constitution OR $_b_constitution then the code works. But if I delete ONE whole line then it fails. If I rename the variable replacing its name throughout the script its still fails. If I remove characters elsewhere it still fails.

    - its not because of a special name of the variable (becuase replacing the varible name fails)

    - its not wrong code (because fails if I remove a line)

    - its not the function because I put an alert statement above and the code isnt even executed anyway

    - its not the number of characters or variables because I removed comments or other lines and still fails

    So WHY does that singluar insignificant character matter. and WHY does it cause the page to redirect to 404 Unknown instead of just an error?

    Thanks

    2 AntwortenProgramming & Designvor 1 Jahrzehnt
  • VB.NET split strings into each individual character?

    I am dealing with large numbers eg 100+ characters and VB.Net cannot handle this so im going to try and write my own multiplication algorithm, however given this large number I need to split it into its component pieces so that i can deal with each individual piece.

    Eg

    var = "234268"

    becomes

    var(1) = 2

    var(2) = 3

    var(3) = 4

    ect

    how do I go about doing this. Please do not just post a link.

    Type a piece of code if at all possible using the number "12345" as an example that i can use.

    Thank You

    4 AntwortenProgramming & Designvor 1 Jahrzehnt
  • Visual Basic 2008 express edition - reading/writing to text files on specific lines?

    Eg Jump to line 50 and read

    or Jump to end of text and write extra line

    This is what I am doing so far:

    Dim sr As StreamReader = New StreamReader("LOCATION")

    Dim line As String

    line = sr.ReadLine()

    this works well for reading the first line...and the second line ect, but my text file is HUGE and I wanted to know if there is anyway to jump to the end line and read that rather than going through every line until the end of the text.

    Also I would like to know how could I both change a already written line, and how do you add an additional line in (say at the end)

    Thanks

    1 AntwortProgramming & Designvor 1 Jahrzehnt
  • Can you still edit answers on Yahoo answers - if yes how?

    There used to be an option to edit your answer once you have posted it, but now it seem that has disappeared - has it simply moved (how then) or been removed (that's crap)?

    2 AntwortenYahoo Answersvor 1 Jahrzehnt
  • when can you convert Binomial to poisson?

    When you have distribution and do not have all the required information for binomial you can model it with a poisson distribution when

    np>5? or is it np<5?

    and what values to you convert ie probability, number of trials, ect to lamda ect..

    and also when and how do you convert to normal if you can?

    3 AntwortenMathematicsvor 1 Jahrzehnt
  • What is significance & symbols of "En = −hcR / n^2 "?

    En = −hcR / n^2

    R = Rydberg'ss constant?

    h = Planks constant?

    c = speed of light?

    n = energy level?

    En = energy of something?

    Whats does the equation mean?

    1 AntwortPhysicsvor 1 Jahrzehnt
  • whats φ symbol in "hf = φ + EK"?

    hf = φ + EK

    hf = photons energy = kinetic + φ ?

    Physicsvor 1 Jahrzehnt
  • how do you insert multiple values into a single column in a mysql databse using php?

    how do you insert multiple values into a single column in a mysql databse using php? and how do you get them back from database and separate them back into singulr variables?

    2 AntwortenProgramming & Designvor 1 Jahrzehnt
  • how do you insert multiple values into a single column in a database?

    how do you insert multiple values into a single column in a database? i would like to know how to do this and also, once multiple values have been added into one column, how to get them back from the database and separate them again.

    can anyone help me?

    2 AntwortenProgramming & Designvor 1 Jahrzehnt