Another newbie question

Just start read book Kernigan & Richi
Trying to test their examples to my system (Ubuntu 9.10)
This one don't want to work.

1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <stdio.h>
using namespace std;

int main () {
	float fahr,celsius;
	fahr=2.435;
	celsius=5.4663;
	printf(“%4.0f %6.1f\n”, fahr, celsius);	
	return 0;
}

During compile it gives the error:
1
2
3
4
5
6
7
8
9
ker02.c:27: error: stray ‘\342’ in program
ker02.c:27: error: stray ‘\200’ in program
ker02.c:27: error: stray ‘\234’ in program
ker02.c:27: error: stray ‘\’ in program
ker02.c:27: error: stray ‘\342’ in program
ker02.c:27: error: stray ‘\200’ in program
ker02.c:27: error: stray ‘\235’ in program
ker02.c: In function ‘int main()’:
ker02.c:27: error: expected primary-expression before ‘%’ token

Any idea how to fix it?
Use " " (shift+' on my keyboard) instead of “ ”.
thanks a lot !
Topic archived. No new replies allowed.