error

Float, Double, Char, C++ Errors. What is wrong?

I am learning C++, but I ran into an error which I don't understand. Here is my source code, comments included (personal reference as I am learning.) #include "stdafx.h" #include <iostream> using namespace std; int main() { float h; //a float stands for floating point variable and can hold a number that is a fraction. I.E. 8.5 doub...

Misplaced construct in homework

I do all my programming assignments in eclipse first before putting them in putty and submitting them to our teacher. In eclipse, I have this strange error in one of my methods. it says "Syntax error on token(s), misplaced construct(s)." public static int factorial(int iVal, boolean DEBUG) { int result; // Defensive programming i...

hard drive wont boot - fedora 11

i was trying to install Linux on a old usb hard drive i have and i installed it onto the drive (from a .iso cd, i clicked install onto hard drive from the desktop) then rebooted. i tried to boot Linux from it but it did not work then i tried booting of the my main hard drive that has windows 7 on it and i get "failure to boot hard drive"...