I am using Dev-C++ and my code isn't working. When I compile it it stops at the code C=A. The error message states that I don't have a header and the program doesn't recognize C=A. This is the question and I will give you what code I have.
I do not know what I am doing wrong. Help Please.
Write a program that declares 2 constants A and B, Initialize A=1 and B=2.2, Declare an int named C and a float named D, Initialize C=A and D=B, Write statements to print C and D to the screen
Yeah, no doubt! I loved when gaming magazines shipped with the latest and greatest demos! I still have many including Quake 1 demo way back when. Kinda like PC boxes with thick manuals, instructions, etc.
Sony has had some misses but honestly the one thing they have done well is not compromise (too much) on first party titles! Microsoft on the other hand have left first party IPs to rot in hell. The who conversation about "entertainment" we want to be the best entertainment company tells you everything you need to know. They are love bombing initially but then doing a Don Mattrick rug pull where XBOX becomes and entertainment company as oppose to a gaming one. All the fan service over the last 3 months down the pan. This company should never have been allowed to acquire so many studios only to kill them off!
Did Labour lose big? They had losses there is no doubt. However let's look at the reality. The conservatives have 168 councils I believe. Labour have 113 and Reform...38. That's a lot of growth for Reform granted. But that is not a wipeout, Reform don't have the majoring in fact at 76 I believe the Liberal Democrats have nearly twice the councils Reform do. So I am thinking there is a lot more noise than signal going on here.
Now then let's talk about the law. It's an age restriction. We do it for cigarettes, **** and alcohol. This idea that some kids will find there way around it so it's not worth even trying is really really sad.
Hell we can't stop every murder. Should we stop trying there too? That is the logical conclusion.
Question
dana120864
I am using Dev-C++ and my code isn't working. When I compile it it stops at the code C=A. The error message states that I don't have a header and the program doesn't recognize C=A. This is the question and I will give you what code I have.
I do not know what I am doing wrong. Help Please.
Write a program that declares 2 constants A and B, Initialize A=1 and B=2.2, Declare an int named C and a float named D, Initialize C=A and D=B, Write statements to print C and D to the screen
Ok here is my code:
// abcddec.cpp
// example of printing C and D
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int C;
C=A;
A=1;
float D;
D=B;
B=2.2;
cout << "C\n";
cout << "D\n";
system ("PAUSE")
return 0;
}
Link to comment
https://www.neowin.net/forum/topic/660056-c-help-coding-problem/Share on other sites
31 answers to this question
Recommended Posts