4 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for QQnoobie

I am trying to write a function that will compute GPA. [CODE]#include "Student.h" #include "ClassInformation.h" Student* setupStudent(){ string f,l,idNo; double gPoint=0; Student *studPtr1; studPtr1 = new Student (); cout<<"Enter first name "; cin>>f; studPtr1->setfirstName(f); cout<<"Enter last name "; cin>>l; studPtr1->setlastName(l); cout<<"Enter A number"; cin>>idNo; studPtr1->setaNumber(idNo); cout<<endl; studPtr1->setGPA(gPoint); return studPtr1; } …

Member Avatar for QQnoobie
0
261
Member Avatar for plang007

How would I make this program that it tells me the number of odds or evens. I only have 1 number at the time, so I need it to either say 1 odd or 1 even. [CODE]#include <iostream> #include <fstream> using namespace std; void printInfo(); int nonNegative(int a, int k); …

Member Avatar for plang007
0
1K
Member Avatar for c++probeginner

Please Help Me! I cannot figure out what to do. I get an error that I don't understand. I posted my code and error below: #include <iostream> #include <string> #include <iomanip> #include <cctype> using namespace std; //prototypes int read_dials(char &d1, char &d2, char &d3, char &d4, char &d5, char &d6, …

Member Avatar for arkoenig
0
150
Member Avatar for sainiweb

Hi I ahve this code which is working on Chrome, Firefox and Safari But Its not working on IE Can any one help me <html> <script type="text/javascript" language="javascript"> function set_padd(){ var tt = document.getElementById("span_padding").innerHTML; var txt = new Array(); txt = tt.split("<br>"); var atxt = ''; for(var i = 1; …

Member Avatar for sainiweb
0
213

The End.