![]() This is because the fprintf used a file identifier named RGB, which is not a defined variable in the program. The C expression for writing the output file would fail to compile, or if it compiled would either crash or do a random thing.I had to guess where the ) went by analogy to the calculation for B. The C expressions for calculating R and G were each missing ) and so would have failed to compile.That seems very unlikely to be what is wanted: it is much more likely that you would square S1, S2, and S3, add those squares, and take the square root of that. The C expression for m involved taking the square root of S1 and immediately squaring that, and adding to that the squares of S2 and S3. ![]() The below code needs to be reviewed, as it does not do exactly the same thing that the C code does. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |