SlideShare a Scribd company logo
1 of 6
Download to read offline
#include "stdafx.h"
/* needed Libraries */
#include<fstream>
#include<iostream>
#include<string>
#include<complex>
using namespace std;
/* ikon templet */
#pragma pack(push)
#pragma pack(1)
struct BMPHeader
;
#pragma pack(pop)
/* Density and Current templet */
struct DensCurr
;
/* Version data */
const char *VersionSpec = "1.01";
const char *VersionDate = "December fourteen, 2011";
/* *** world VARIABLES *** */
/* Mathematical Constants */
const double Pi = four.0 * atan(1.0);
complex<double> ii = complex<double>(0.0,1.0);
/* *** Physical Parameters *** */
/* lepton Energy Parameter letter of the alphabet */
double eps = fifty.0;
/* choose Output Component:
0 ... charge density,
1 ... current density (field direction),
2 ... current density (radial direction),
3 ... current density (azimuthal direction),
4 ... current density (absolute value),
5 ... current density (direction angle and magnitude in plane),
6 ... charge speed (current/density)
*/
int OutputType = 0;
/* *** science management Parameters *** */
/* Accuracy Goal */
double Accu = one.0e-10;
/* most Landau Level */
long MaxLevel = 10000;
/* *** Output Parameters (in scaled units) *** */
/* Vertical Position */
double zPos = three.3;
/* ikon Canvas */
double xMin = -1.1;
double xMax = one.1;
double yMin = -1.1;
double yMax = one.1;
/* Sampling variety */
int xSamples = 1000;
int ySamples = 1000;
/* The computer file name */
string BitmapFile = "At fifty (cross section).bmp";
/* *** Graphics management Parameters *** */
/* Frame Parameters */
int FrameWidth = 2;
int TickWidth = 2;
int TickLength = 10;
unsigned char FrameRed = (unsigned char)0;
unsigned char FrameGreen = (unsigned char)0;
unsigned char FrameBlue = (unsigned char)0;
/* Tick Levels */
double xTick = zero.5;
double yTick = zero.5;
/* Density Parameters */
double MaxDensity = ten.0 * eps;
/* Color Saturation management */
double Gamma = zero.5;
double SaturationOffset = one.0;
/* Integrated Current? */
bool IntegratedCurrent = true;
/* *** GRAPHICS PROCEDURES
************************************************************ */
/* Clear the Image ikon templet (White Background) */
void ClearBMPImage(char BMPImage[], long BMPWidth, long BMPHeight)
{
long BitmapSize = three * BMPHeight * BMPWidth;
for (int i = 0; i < BitmapSize; ++i) BMPImage[i] = char(0xFF);
}
/* Paint a constituent At Absolute Position (x,y) among The ikon */
void PSet(char BMPImage[], long BMPWidth, long BMPHeight, long XPixel, long YPixel,
unsigned char Red, unsigned char inexperienced, unsigned char Blue)
{
/* Check For Canvas Boundaries */
if ((XPixel < 0) || (YPixel < 0) ||
(XPixel >= BMPWidth) || (YPixel >= BMPHeight))
{
cerr << "WARNING: ikon Dimensions Exceeded.   ";
}
else
the required constituent */
long PixelPos = three * (BMPWidth * YPixel + XPixel);
BMPImage[PixelPos] = Blue;
BMPImage[PixelPos + 1] = Green;
BMPImage[PixelPos + 2] = Red;
}
}
/* verify constituent Color from Numerical price [0 ... 1] */
void AssignColor(unsigned char *Red, unsigned char *Green, unsigned char *Blue, double
Value)
Solution
#include "stdafx.h"
/* needed Libraries */
#include<fstream>
#include<iostream>
#include<string>
#include<complex>
using namespace std;
/* ikon templet */
#pragma pack(push)
#pragma pack(1)
struct BMPHeader
;
#pragma pack(pop)
/* Density and Current templet */
struct DensCurr
;
/* Version data */
const char *VersionSpec = "1.01";
const char *VersionDate = "December fourteen, 2011";
/* *** world VARIABLES *** */
/* Mathematical Constants */
const double Pi = four.0 * atan(1.0);
complex<double> ii = complex<double>(0.0,1.0);
/* *** Physical Parameters *** */
/* lepton Energy Parameter letter of the alphabet */
double eps = fifty.0;
/* choose Output Component:
0 ... charge density,
1 ... current density (field direction),
2 ... current density (radial direction),
3 ... current density (azimuthal direction),
4 ... current density (absolute value),
5 ... current density (direction angle and magnitude in plane),
6 ... charge speed (current/density)
*/
int OutputType = 0;
/* *** science management Parameters *** */
/* Accuracy Goal */
double Accu = one.0e-10;
/* most Landau Level */
long MaxLevel = 10000;
/* *** Output Parameters (in scaled units) *** */
/* Vertical Position */
double zPos = three.3;
/* ikon Canvas */
double xMin = -1.1;
double xMax = one.1;
double yMin = -1.1;
double yMax = one.1;
/* Sampling variety */
int xSamples = 1000;
int ySamples = 1000;
/* The computer file name */
string BitmapFile = "At fifty (cross section).bmp";
/* *** Graphics management Parameters *** */
/* Frame Parameters */
int FrameWidth = 2;
int TickWidth = 2;
int TickLength = 10;
unsigned char FrameRed = (unsigned char)0;
unsigned char FrameGreen = (unsigned char)0;
unsigned char FrameBlue = (unsigned char)0;
/* Tick Levels */
double xTick = zero.5;
double yTick = zero.5;
/* Density Parameters */
double MaxDensity = ten.0 * eps;
/* Color Saturation management */
double Gamma = zero.5;
double SaturationOffset = one.0;
/* Integrated Current? */
bool IntegratedCurrent = true;
/* *** GRAPHICS PROCEDURES
************************************************************ */
/* Clear the Image ikon templet (White Background) */
void ClearBMPImage(char BMPImage[], long BMPWidth, long BMPHeight)
{
long BitmapSize = three * BMPHeight * BMPWidth;
for (int i = 0; i < BitmapSize; ++i) BMPImage[i] = char(0xFF);
}
/* Paint a constituent At Absolute Position (x,y) among The ikon */
void PSet(char BMPImage[], long BMPWidth, long BMPHeight, long XPixel, long YPixel,
unsigned char Red, unsigned char inexperienced, unsigned char Blue)
{
/* Check For Canvas Boundaries */
if ((XPixel < 0) || (YPixel < 0) ||
(XPixel >= BMPWidth) || (YPixel >= BMPHeight))
{
cerr << "WARNING: ikon Dimensions Exceeded.   ";
}
else
the required constituent */
long PixelPos = three * (BMPWidth * YPixel + XPixel);
BMPImage[PixelPos] = Blue;
BMPImage[PixelPos + 1] = Green;
BMPImage[PixelPos + 2] = Red;
}
}
/* verify constituent Color from Numerical price [0 ... 1] */
void AssignColor(unsigned char *Red, unsigned char *Green, unsigned char *Blue, double
Value)

More Related Content

Similar to #include stdafx.h needed Libraries #include&lt;fstream&.pdf

Here is the code for youimport java.util.Scanner; import java.u.pdf
Here is the code for youimport java.util.Scanner; import java.u.pdfHere is the code for youimport java.util.Scanner; import java.u.pdf
Here is the code for youimport java.util.Scanner; import java.u.pdfanithareadymade
 
write the TODO part of the program.docx
write the TODO part of the program.docxwrite the TODO part of the program.docx
write the TODO part of the program.docxannetnash8266
 
Write a program that converts an infix expression into an equivalent.pdf
Write a program that converts an infix expression into an equivalent.pdfWrite a program that converts an infix expression into an equivalent.pdf
Write a program that converts an infix expression into an equivalent.pdfmohdjakirfb
 
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdfPlease do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdfaioils
 
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014Supriya Radhakrishna
 
This is Function Class public abstract class Function {    .pdf
This is Function Class public abstract class Function {    .pdfThis is Function Class public abstract class Function {    .pdf
This is Function Class public abstract class Function {    .pdfamitbagga0808
 
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdfCountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdfAggarwalelectronic18
 
WHAT TO DOUpdate the comment boxes at the top of each function in.pdf
WHAT TO DOUpdate the comment boxes at the top of each function in.pdfWHAT TO DOUpdate the comment boxes at the top of each function in.pdf
WHAT TO DOUpdate the comment boxes at the top of each function in.pdfadityavision1
 
VTU DSA Lab Manual
VTU DSA Lab ManualVTU DSA Lab Manual
VTU DSA Lab ManualAkhilaaReddy
 
Below are questions that use the following image class- import assert.pdf
Below are questions that use the following image class-  import assert.pdfBelow are questions that use the following image class-  import assert.pdf
Below are questions that use the following image class- import assert.pdfrdzire2014
 
filesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docx
filesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docxfilesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docx
filesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docxssuser454af01
 

Similar to #include stdafx.h needed Libraries #include&lt;fstream&.pdf (20)

Bmpread
BmpreadBmpread
Bmpread
 
My bitmap
My bitmapMy bitmap
My bitmap
 
09 Jo P Sep 07
09 Jo P Sep 0709 Jo P Sep 07
09 Jo P Sep 07
 
Here is the code for youimport java.util.Scanner; import java.u.pdf
Here is the code for youimport java.util.Scanner; import java.u.pdfHere is the code for youimport java.util.Scanner; import java.u.pdf
Here is the code for youimport java.util.Scanner; import java.u.pdf
 
Computer hw1
Computer hw1Computer hw1
Computer hw1
 
write the TODO part of the program.docx
write the TODO part of the program.docxwrite the TODO part of the program.docx
write the TODO part of the program.docx
 
Academy PRO: ES2015
Academy PRO: ES2015Academy PRO: ES2015
Academy PRO: ES2015
 
Write a program that converts an infix expression into an equivalent.pdf
Write a program that converts an infix expression into an equivalent.pdfWrite a program that converts an infix expression into an equivalent.pdf
Write a program that converts an infix expression into an equivalent.pdf
 
Embedded C - Lecture 2
Embedded C - Lecture 2Embedded C - Lecture 2
Embedded C - Lecture 2
 
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdfPlease do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
Please do Part A, Ill be really gratefulThe main.c is the skeleto.pdf
 
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
M.TECH 1ST SEM COMPUTER SCIENCE AOS LAB PRGMS 2014
 
This is Function Class public abstract class Function {    .pdf
This is Function Class public abstract class Function {    .pdfThis is Function Class public abstract class Function {    .pdf
This is Function Class public abstract class Function {    .pdf
 
Procedural Art
Procedural ArtProcedural Art
Procedural Art
 
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdfCountryData.cppEDIT THIS ONE#include fstream #include str.pdf
CountryData.cppEDIT THIS ONE#include fstream #include str.pdf
 
WHAT TO DOUpdate the comment boxes at the top of each function in.pdf
WHAT TO DOUpdate the comment boxes at the top of each function in.pdfWHAT TO DOUpdate the comment boxes at the top of each function in.pdf
WHAT TO DOUpdate the comment boxes at the top of each function in.pdf
 
Part I.pdf
Part I.pdfPart I.pdf
Part I.pdf
 
VTU DSA Lab Manual
VTU DSA Lab ManualVTU DSA Lab Manual
VTU DSA Lab Manual
 
2nd section
2nd section2nd section
2nd section
 
Below are questions that use the following image class- import assert.pdf
Below are questions that use the following image class-  import assert.pdfBelow are questions that use the following image class-  import assert.pdf
Below are questions that use the following image class- import assert.pdf
 
filesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docx
filesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docxfilesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docx
filesHeap.h#ifndef HEAP_H#define HEAP_H#includ.docx
 

More from ANGELMARKETINGJAIPUR

they are not soluble in waterthey forms ions in t.pdf
                     they are not soluble in waterthey forms ions in t.pdf                     they are not soluble in waterthey forms ions in t.pdf
they are not soluble in waterthey forms ions in t.pdfANGELMARKETINGJAIPUR
 
Non metals generally want to gain electrons and a.pdf
                     Non metals generally want to gain electrons and a.pdf                     Non metals generally want to gain electrons and a.pdf
Non metals generally want to gain electrons and a.pdfANGELMARKETINGJAIPUR
 
London force the attraction between two rapidly .pdf
                     London force the attraction between two rapidly .pdf                     London force the attraction between two rapidly .pdf
London force the attraction between two rapidly .pdfANGELMARKETINGJAIPUR
 
HNO3 is a strong mono-protic acid. This means it .pdf
                     HNO3 is a strong mono-protic acid. This means it .pdf                     HNO3 is a strong mono-protic acid. This means it .pdf
HNO3 is a strong mono-protic acid. This means it .pdfANGELMARKETINGJAIPUR
 
H2Se (hydrogen (I) selenide) Boiling point -42°.pdf
                     H2Se (hydrogen (I) selenide)  Boiling point -42°.pdf                     H2Se (hydrogen (I) selenide)  Boiling point -42°.pdf
H2Se (hydrogen (I) selenide) Boiling point -42°.pdfANGELMARKETINGJAIPUR
 
Enthalphy for HCl would be more as acetic acid is.pdf
                     Enthalphy for HCl would be more as acetic acid is.pdf                     Enthalphy for HCl would be more as acetic acid is.pdf
Enthalphy for HCl would be more as acetic acid is.pdfANGELMARKETINGJAIPUR
 
Valid implication. The primary two properties suggest babies are hat.pdf
Valid implication. The primary two properties suggest babies are hat.pdfValid implication. The primary two properties suggest babies are hat.pdf
Valid implication. The primary two properties suggest babies are hat.pdfANGELMARKETINGJAIPUR
 
Think about the core ideas (themes, motifs, lessons) of Harrison Ber.pdf
Think about the core ideas (themes, motifs, lessons) of Harrison Ber.pdfThink about the core ideas (themes, motifs, lessons) of Harrison Ber.pdf
Think about the core ideas (themes, motifs, lessons) of Harrison Ber.pdfANGELMARKETINGJAIPUR
 
the series divergesSolutionthe series diverges.pdf
the series divergesSolutionthe series diverges.pdfthe series divergesSolutionthe series diverges.pdf
the series divergesSolutionthe series diverges.pdfANGELMARKETINGJAIPUR
 
The fate of pyruvate depends on the availability of oxygen.Three fat.pdf
The fate of pyruvate depends on the availability of oxygen.Three fat.pdfThe fate of pyruvate depends on the availability of oxygen.Three fat.pdf
The fate of pyruvate depends on the availability of oxygen.Three fat.pdfANGELMARKETINGJAIPUR
 
Covalent Bond - Two atoms Share electrons Polar .pdf
                     Covalent Bond - Two atoms Share electrons  Polar .pdf                     Covalent Bond - Two atoms Share electrons  Polar .pdf
Covalent Bond - Two atoms Share electrons Polar .pdfANGELMARKETINGJAIPUR
 
Since Calcuium hydroxide has a very strong dissassociation forevery .pdf
Since Calcuium hydroxide has a very strong dissassociation forevery .pdfSince Calcuium hydroxide has a very strong dissassociation forevery .pdf
Since Calcuium hydroxide has a very strong dissassociation forevery .pdfANGELMARKETINGJAIPUR
 
Shouldnt it just be the same answer as b The rate at which NO2 an.pdf
Shouldnt it just be the same answer as b The rate at which NO2 an.pdfShouldnt it just be the same answer as b The rate at which NO2 an.pdf
Shouldnt it just be the same answer as b The rate at which NO2 an.pdfANGELMARKETINGJAIPUR
 
publicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdf
publicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdfpublicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdf
publicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdfANGELMARKETINGJAIPUR
 
Point.h header file #ifndef POINT_H #define POINT_H Po.pdf
Point.h header file #ifndef POINT_H #define POINT_H Po.pdfPoint.h header file #ifndef POINT_H #define POINT_H Po.pdf
Point.h header file #ifndef POINT_H #define POINT_H Po.pdfANGELMARKETINGJAIPUR
 
Preliminary Engagement activity includePlanning activities involv.pdf
Preliminary Engagement activity includePlanning activities involv.pdfPreliminary Engagement activity includePlanning activities involv.pdf
Preliminary Engagement activity includePlanning activities involv.pdfANGELMARKETINGJAIPUR
 
please give some additional informationSolutionplease give som.pdf
please give some additional informationSolutionplease give som.pdfplease give some additional informationSolutionplease give som.pdf
please give some additional informationSolutionplease give som.pdfANGELMARKETINGJAIPUR
 
Macaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdf
Macaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdfMacaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdf
Macaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdfANGELMARKETINGJAIPUR
 

More from ANGELMARKETINGJAIPUR (20)

they are not soluble in waterthey forms ions in t.pdf
                     they are not soluble in waterthey forms ions in t.pdf                     they are not soluble in waterthey forms ions in t.pdf
they are not soluble in waterthey forms ions in t.pdf
 
Non metals generally want to gain electrons and a.pdf
                     Non metals generally want to gain electrons and a.pdf                     Non metals generally want to gain electrons and a.pdf
Non metals generally want to gain electrons and a.pdf
 
London force the attraction between two rapidly .pdf
                     London force the attraction between two rapidly .pdf                     London force the attraction between two rapidly .pdf
London force the attraction between two rapidly .pdf
 
HNO3 is a strong mono-protic acid. This means it .pdf
                     HNO3 is a strong mono-protic acid. This means it .pdf                     HNO3 is a strong mono-protic acid. This means it .pdf
HNO3 is a strong mono-protic acid. This means it .pdf
 
H2Se (hydrogen (I) selenide) Boiling point -42°.pdf
                     H2Se (hydrogen (I) selenide)  Boiling point -42°.pdf                     H2Se (hydrogen (I) selenide)  Boiling point -42°.pdf
H2Se (hydrogen (I) selenide) Boiling point -42°.pdf
 
Enthalphy for HCl would be more as acetic acid is.pdf
                     Enthalphy for HCl would be more as acetic acid is.pdf                     Enthalphy for HCl would be more as acetic acid is.pdf
Enthalphy for HCl would be more as acetic acid is.pdf
 
e.) none of these .pdf
                     e.) none of these                                .pdf                     e.) none of these                                .pdf
e.) none of these .pdf
 
Valid implication. The primary two properties suggest babies are hat.pdf
Valid implication. The primary two properties suggest babies are hat.pdfValid implication. The primary two properties suggest babies are hat.pdf
Valid implication. The primary two properties suggest babies are hat.pdf
 
Think about the core ideas (themes, motifs, lessons) of Harrison Ber.pdf
Think about the core ideas (themes, motifs, lessons) of Harrison Ber.pdfThink about the core ideas (themes, motifs, lessons) of Harrison Ber.pdf
Think about the core ideas (themes, motifs, lessons) of Harrison Ber.pdf
 
the series divergesSolutionthe series diverges.pdf
the series divergesSolutionthe series diverges.pdfthe series divergesSolutionthe series diverges.pdf
the series divergesSolutionthe series diverges.pdf
 
The fate of pyruvate depends on the availability of oxygen.Three fat.pdf
The fate of pyruvate depends on the availability of oxygen.Three fat.pdfThe fate of pyruvate depends on the availability of oxygen.Three fat.pdf
The fate of pyruvate depends on the availability of oxygen.Three fat.pdf
 
Covalent Bond - Two atoms Share electrons Polar .pdf
                     Covalent Bond - Two atoms Share electrons  Polar .pdf                     Covalent Bond - Two atoms Share electrons  Polar .pdf
Covalent Bond - Two atoms Share electrons Polar .pdf
 
Since Calcuium hydroxide has a very strong dissassociation forevery .pdf
Since Calcuium hydroxide has a very strong dissassociation forevery .pdfSince Calcuium hydroxide has a very strong dissassociation forevery .pdf
Since Calcuium hydroxide has a very strong dissassociation forevery .pdf
 
Shouldnt it just be the same answer as b The rate at which NO2 an.pdf
Shouldnt it just be the same answer as b The rate at which NO2 an.pdfShouldnt it just be the same answer as b The rate at which NO2 an.pdf
Shouldnt it just be the same answer as b The rate at which NO2 an.pdf
 
publicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdf
publicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdfpublicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdf
publicclass VehicleParser {publicstatic Vehicle parseStringToVehic.pdf
 
Point.h header file #ifndef POINT_H #define POINT_H Po.pdf
Point.h header file #ifndef POINT_H #define POINT_H Po.pdfPoint.h header file #ifndef POINT_H #define POINT_H Po.pdf
Point.h header file #ifndef POINT_H #define POINT_H Po.pdf
 
Preliminary Engagement activity includePlanning activities involv.pdf
Preliminary Engagement activity includePlanning activities involv.pdfPreliminary Engagement activity includePlanning activities involv.pdf
Preliminary Engagement activity includePlanning activities involv.pdf
 
please give some additional informationSolutionplease give som.pdf
please give some additional informationSolutionplease give som.pdfplease give some additional informationSolutionplease give som.pdf
please give some additional informationSolutionplease give som.pdf
 
parabolaSolutionparabola.pdf
parabolaSolutionparabola.pdfparabolaSolutionparabola.pdf
parabolaSolutionparabola.pdf
 
Macaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdf
Macaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdfMacaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdf
Macaulay duration = [tC(1+y)t + nM(1+y)nP]                     .pdf
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 

#include stdafx.h needed Libraries #include&lt;fstream&.pdf

  • 1. #include "stdafx.h" /* needed Libraries */ #include<fstream> #include<iostream> #include<string> #include<complex> using namespace std; /* ikon templet */ #pragma pack(push) #pragma pack(1) struct BMPHeader ; #pragma pack(pop) /* Density and Current templet */ struct DensCurr ; /* Version data */ const char *VersionSpec = "1.01"; const char *VersionDate = "December fourteen, 2011"; /* *** world VARIABLES *** */ /* Mathematical Constants */ const double Pi = four.0 * atan(1.0); complex<double> ii = complex<double>(0.0,1.0); /* *** Physical Parameters *** */ /* lepton Energy Parameter letter of the alphabet */ double eps = fifty.0; /* choose Output Component: 0 ... charge density, 1 ... current density (field direction), 2 ... current density (radial direction), 3 ... current density (azimuthal direction), 4 ... current density (absolute value), 5 ... current density (direction angle and magnitude in plane), 6 ... charge speed (current/density) */
  • 2. int OutputType = 0; /* *** science management Parameters *** */ /* Accuracy Goal */ double Accu = one.0e-10; /* most Landau Level */ long MaxLevel = 10000; /* *** Output Parameters (in scaled units) *** */ /* Vertical Position */ double zPos = three.3; /* ikon Canvas */ double xMin = -1.1; double xMax = one.1; double yMin = -1.1; double yMax = one.1; /* Sampling variety */ int xSamples = 1000; int ySamples = 1000; /* The computer file name */ string BitmapFile = "At fifty (cross section).bmp"; /* *** Graphics management Parameters *** */ /* Frame Parameters */ int FrameWidth = 2; int TickWidth = 2; int TickLength = 10; unsigned char FrameRed = (unsigned char)0; unsigned char FrameGreen = (unsigned char)0; unsigned char FrameBlue = (unsigned char)0; /* Tick Levels */ double xTick = zero.5; double yTick = zero.5; /* Density Parameters */ double MaxDensity = ten.0 * eps; /* Color Saturation management */ double Gamma = zero.5; double SaturationOffset = one.0; /* Integrated Current? */
  • 3. bool IntegratedCurrent = true; /* *** GRAPHICS PROCEDURES ************************************************************ */ /* Clear the Image ikon templet (White Background) */ void ClearBMPImage(char BMPImage[], long BMPWidth, long BMPHeight) { long BitmapSize = three * BMPHeight * BMPWidth; for (int i = 0; i < BitmapSize; ++i) BMPImage[i] = char(0xFF); } /* Paint a constituent At Absolute Position (x,y) among The ikon */ void PSet(char BMPImage[], long BMPWidth, long BMPHeight, long XPixel, long YPixel, unsigned char Red, unsigned char inexperienced, unsigned char Blue) { /* Check For Canvas Boundaries */ if ((XPixel < 0) || (YPixel < 0) || (XPixel >= BMPWidth) || (YPixel >= BMPHeight)) { cerr << "WARNING: ikon Dimensions Exceeded. "; } else the required constituent */ long PixelPos = three * (BMPWidth * YPixel + XPixel); BMPImage[PixelPos] = Blue; BMPImage[PixelPos + 1] = Green; BMPImage[PixelPos + 2] = Red; } } /* verify constituent Color from Numerical price [0 ... 1] */ void AssignColor(unsigned char *Red, unsigned char *Green, unsigned char *Blue, double Value) Solution #include "stdafx.h" /* needed Libraries */
  • 4. #include<fstream> #include<iostream> #include<string> #include<complex> using namespace std; /* ikon templet */ #pragma pack(push) #pragma pack(1) struct BMPHeader ; #pragma pack(pop) /* Density and Current templet */ struct DensCurr ; /* Version data */ const char *VersionSpec = "1.01"; const char *VersionDate = "December fourteen, 2011"; /* *** world VARIABLES *** */ /* Mathematical Constants */ const double Pi = four.0 * atan(1.0); complex<double> ii = complex<double>(0.0,1.0); /* *** Physical Parameters *** */ /* lepton Energy Parameter letter of the alphabet */ double eps = fifty.0; /* choose Output Component: 0 ... charge density, 1 ... current density (field direction), 2 ... current density (radial direction), 3 ... current density (azimuthal direction), 4 ... current density (absolute value), 5 ... current density (direction angle and magnitude in plane), 6 ... charge speed (current/density) */ int OutputType = 0; /* *** science management Parameters *** */ /* Accuracy Goal */
  • 5. double Accu = one.0e-10; /* most Landau Level */ long MaxLevel = 10000; /* *** Output Parameters (in scaled units) *** */ /* Vertical Position */ double zPos = three.3; /* ikon Canvas */ double xMin = -1.1; double xMax = one.1; double yMin = -1.1; double yMax = one.1; /* Sampling variety */ int xSamples = 1000; int ySamples = 1000; /* The computer file name */ string BitmapFile = "At fifty (cross section).bmp"; /* *** Graphics management Parameters *** */ /* Frame Parameters */ int FrameWidth = 2; int TickWidth = 2; int TickLength = 10; unsigned char FrameRed = (unsigned char)0; unsigned char FrameGreen = (unsigned char)0; unsigned char FrameBlue = (unsigned char)0; /* Tick Levels */ double xTick = zero.5; double yTick = zero.5; /* Density Parameters */ double MaxDensity = ten.0 * eps; /* Color Saturation management */ double Gamma = zero.5; double SaturationOffset = one.0; /* Integrated Current? */ bool IntegratedCurrent = true; /* *** GRAPHICS PROCEDURES ************************************************************ */
  • 6. /* Clear the Image ikon templet (White Background) */ void ClearBMPImage(char BMPImage[], long BMPWidth, long BMPHeight) { long BitmapSize = three * BMPHeight * BMPWidth; for (int i = 0; i < BitmapSize; ++i) BMPImage[i] = char(0xFF); } /* Paint a constituent At Absolute Position (x,y) among The ikon */ void PSet(char BMPImage[], long BMPWidth, long BMPHeight, long XPixel, long YPixel, unsigned char Red, unsigned char inexperienced, unsigned char Blue) { /* Check For Canvas Boundaries */ if ((XPixel < 0) || (YPixel < 0) || (XPixel >= BMPWidth) || (YPixel >= BMPHeight)) { cerr << "WARNING: ikon Dimensions Exceeded. "; } else the required constituent */ long PixelPos = three * (BMPWidth * YPixel + XPixel); BMPImage[PixelPos] = Blue; BMPImage[PixelPos + 1] = Green; BMPImage[PixelPos + 2] = Red; } } /* verify constituent Color from Numerical price [0 ... 1] */ void AssignColor(unsigned char *Red, unsigned char *Green, unsigned char *Blue, double Value)