Posts

Showing posts from November, 2014

asp.net knockout.js to do list (data binding)

a secure connection for a simple web service http://msdn.microsoft.com/en-us/library/ff649205.aspx two data binding controls in the knockout framework http://www.asp.net/single-page-application/overview/introduction/knockoutjs-template ch 11 1 movie data write a program that uses a structure named moviedata to store the following information about a movie title director year released running time the program should create two moviedata variables store values in their members and pass each one in turn to a function that displays the information about the movie in a clearly formatted matter write a program that uses a structure to store the following data on a company division dicision name first quarter sales second quarter sales third quarter sales fourth quarter sales total annual sales average quarterly sales the program should use four variables of this structure each variable should represent one of the following corporate divisions. the user should be as...

mobile device and emerging technologies

multiple inheritance vs interfaces in java polymorphism make a derived class revised methods versus overloaded virtual keyword class specification

ch13 in class

//We made a header file for a car class #Ifndef CAR_H #define CAR_H //naming convention Class car { private: int speed; int miles; Public: car(int , int ); int Getspeed(); }; #endif //Then a source file //And include it #include "car.h" Car:: car(int s,int m){ Speed =s; Miles =m; } Into car::getspeed(){ return speed; } //Then another program to test car source Program #Include <iostream> #Include <car> using namespace std; Int main{ Car c1= new car(50,100); Cout<<"the speed is"<< c1.getspeed()<<endl; } //an interesting note is scope operator in comparison to ternary operator //http://www.cplusplus.com/forum/articles/14631/

CH11_4

http://www.chegg.com/homework-help/questions-and-answers/question-please-help-question-write-program-uses-structure-store-following-weather-data-pa-q3363800 https://www.daniweb.com/software-development/cpp/threads/395877/weather-structure-program // This program collects the weather statistics for a year. The data it collects is total rainfall, high temp, low temp, average temp. //Programming Challenge 11.4 #include <iostream> #include <string> #include <iomanip> using namespace std ; struct Weather { double rainfall ; double high_temp ; double low_temp ; double avg_temp ; }; // Function Prototypes /*double getTotalrain(double); double getAvgrain(double); double getAverageTemp(double); double getHighTemp(double); double getLowTemp(double);*/ int main () { const int NUM_MONTHS = 12 ; //Number of Months Weather months [ NUM_MONTHS ]; //Array of 12 months int index ; //Loop counter doubl...

ch11_1 movie data

// //http://www.cplusplus.com/doc/tutorial/structures/ // example about structures #include <iostream> #include <string> #include <sstream> using namespace std; struct movie_data { string title; string director; int year; int running_time; } movie1, movie2, movie3; void printmovie (movie_data movie); movie_data make_movie(); int main () { string mystr; movie_data movie1 ={"Aliens","James Cameron",1986,137}; make_movie();   /* cout << "Enter title: "; getline (cin,movie3.title); cout << "Enter director: "; getline (cin,mystr); stringstream(mystr) >> movie3.director; cout << "Enter year: "; getline (cin,mystr); stringstream(mystr) >> movie3.year; cout << "Enter running time: "; getline (cin,mystr); stringstream(mystr) >> movie3.year...

printing contents of a file

#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ int linecount=0; string filename; fstream infile; cout<<"enter a filename :"<<endl; cin>>filename; infile.open(filename, ios::in); if (infile) { string line; getline (infile, line); while (infile) { cout<<line<<endl; getline(infile, line); linecount++; if ((linecount==10) && (infile)) { cout<<"first ten records printed"<<endl; cin.ignore(); break; } } if(!infile) { cout<<"entire file printed"<<endl; cin.ignore(); } } cin.ignore(); return 0; }

destructors

Physically deletes cleans anything especially in dynamic memory that the constructor did So detractors are called automatically when the program ends and can be used with syntax delete [object] which should be used in the main function What are constructors Its a function to initialize objects of the same type with different properties http://en.wikipedia.org/wiki/Property_(programming ) http://msdn.microsoft.com/en-us/library/z0w1kczw.aspx There can also. Be private member functions which have limited scope A class or constructor of an object like a strict is also an abstract data type We have uml again Which is just Class name member variables Member functions Plus signs for public and private members are indicated by negatives A colon AND the data type Can be appended to each to indicate further the context of the class Constructors of course can be listed as well as the detractors for a complete model of a class

for sale

Ps3 250gb two controllers one cord charger one move and the other motion move controller Toy story 3 dead space 2 special edition version for move Skyrim Play station all stars Skate 3 Resident evil raccoon city Zone of the enders hd collection God Of war origins collection God OF war collection Create  dark souls demons souls Offer up Mass effect collection payday 3 Collection edition miCoach uncharted 3 Rage Naruto niNja storm 3 Little big planet 2 Dark kingdom Assassins creed 3 Assassins creed ezIo trilogy Never dead Inversion Ufc undisputed 3 Rocksmoth 2014 Infamous Game of thrones Dbz ultimate tenkAichi Heavy rain Mib Alien crisis Haze defiance Xbox original Four or six controllers Lord of the Rings third age Lord of the Rings Return of the king Samurai warriors Future tactics Metal arms glitch in the sYstem King Arthur Tao feng WWF raw Slugfest 2003 NHL rivals NFL street vol 2 NF...

cplus plus fstream contents of file

#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ int linecount=0; string filename; fstream infile; cout<< "enter a filename :" <<endl; cin>>filename;   infile.open(filename, ios ::in); if (infile) {   string line; getline (infile, line);   while (infile) { cout<<line<<endl; getline(infile, line); linecount++;   if ((linecount=10) && (infile)) {   cout<< "first ten records printed" <<endl; break ; } }   if (!infile) {   cout<< "entire file printed" <<endl; } } }  

cross page posting

http://msdn.microsoft.com/en-us/library/ms178139(v=vs.90).aspx http://msdn.microsoft.com/en-us/library/x3x8t37x(v=vs.90).aspx http://msdn.microsoft.com/en-us/library/ms178125(v=vs.90).aspx http://www.iis.net/downloads/microsoft/url-rewrite http://www.microsoft.com/web/wordpress