Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

plz help.identify errors in this c++ code fragment.?

include <iostream.h>

struct s1 { int a;

float b;

char c;

} st1, st2, st3;

int main()

{

struct s2 { int x;

float y;

char z;

} ss1, ss2, ss3;

ss2=ss1;

:

:

}

void func1()

{

ss2.x=st1.a;

ss3.y=st2.b;

ss1.z=st3.c;

:

ss1=ss3;

}

5 Answers

Relevance
  • 1 decade ago

    At the top: Your are missing # in #include, and the <iostream.h> header name is old-style. Use #include <iostream> in any new code.

    In main(): The local struct variables ss1, ss2 and ss2 are not initialized, so the ss2 = ss1 assignment is copying garbage onto garbage.

    In func1(): ss1, ss2, and ss3 are not visible. They are local to main(). This will not compile.

  • Anonymous
    5 years ago

    Ps3 blunders code 8002A220 = examine all your connections, to no avail... pass on your workstation and seek for some form of genuine clarification, to no avail... positioned up on each damn communicate board and internet site you are able to think of of 'till ultimately somebody ultimately tells you it is in simple terms maintenance that's someway so substantial that no longer one single heads up replaced into issued by the community in spite of the fact that it is going to rather make your existence greater suited so in simple terms locate something else to do including your unfastened time till you are able to pass back on the community and surely use the **** you spend lots funds on. *approximately thirteen hours in the past a PSN weblog hit facebook, boasting new gown and furnishings packs in abode. i might wager my total interest series that pronounced %. had some subject concerns and that they took the community all the way down to restoration it. God forbid somebody would be unable to spend 5$ to make their avatar look like a enormous hamster.*

  • 1 decade ago

    1. main() is missing return 0; statement.

  • 1 decade ago

    The code is incomplete. what is the meaning of "...." ?

    What is question..? Is there compilation error or logical?

  • How do you think about the answers? You can sign in to vote the answer.
  • 1 decade ago

    :(((((

Still have questions? Get your answers by asking now.