Ошибки Float, Double, Char, C++. Что не так?C++

Программы на C++. Форум разработчиков
Anonymous
Ошибки Float, Double, Char, C++. Что не так?

Сообщение Anonymous »

Я изучаю C++, но столкнулся с ошибкой, которую не понимаю.

Вот мой исходный код, включая комментарии (личная ссылка, так как я обучение.)

Код: Выделить всё

#include "stdafx.h"
#include 

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
double j; //a double can hold larger fractional numbers. I.E. 8.24525234
char f; // char stands for character and can hold only one character (converts to ASCII, behind scenes).
f = '$';  //char can hold any common symbol, numbers, uppercase, lowerver, and special characters.
h = "8.5";
j = "8.56";

cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/4064782/float-double-char-c-errors-what-is-wrong[/url]

Вернуться в «C++»