This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKE_MINIMUM_REQUIRED(VERSION 2.6) | |
PROJECT(micromax) | |
SET (WT_CONNECTOR "wthttp" CACHE STRING "abc") | |
ADD_SUBDIRECTORY(source) | |
SET(WT_PROJECT_SOURCE | |
shaina.cpp | |
) | |
SET(WT_PROJECT_TARGET f1) | |
ADD_EXECUTABLE (${WT_PROJECT_TARGET} ${WT_PROJECT_SOURCE}) | |
TARGET_LINK_LIBRARIES(${WT_PROJECT_TARGET} ${WT_CONNECTOR} wt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
main() | |
{ | |
char *p[6] = {"paper", "pen", "pencil", "book"}; | |
char *str; | |
cout << "enter what you want to purchase? " << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wt/WApplication> | |
#include <Wt/WContainerWidget> | |
#include <Wt/WPainter> | |
#include <Wt/WPaintedWidget> | |
#include <Wt/WPaintDevice> | |
using namespace Wt; | |
using namespace std; | |
class PaintApplication : public WPaintedWidget //Paint class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
main() | |
{ | |
vector<int> v; | |
int number; | |
auto c = 0; | |
cout <<"Input some numbers and then end the input\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class student | |
{ | |
string name; | |
float marks; | |
public: //simple constructor with parameters | |
student (const string n, const float m){ | |
name = n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g++-4.8 -Wall -std=c++0x -c session.C | |
In file included from /usr/include/boost/signals/trackable.hpp:14:0, | |
from /usr/include/Wt/WObject:14, | |
from /usr/include/Wt/Auth/Login:10, | |
from session.h:15, | |
from session.C:16: | |
/usr/include/boost/signals/connection.hpp: In member function ‘boost::shared_ptr<boost::signals::detail::basic_connection> boost::signals::connection::get_connection() const’: | |
/usr/include/boost/signals/connection.hpp:102:16: error: use of deleted function ‘boost::shared_ptr<boost::signals::detail::basic_connection>::shared_ptr(const boost::shared_ptr<boost::signals::detail::basic_connection>&)’ | |
{ return con; } | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "showpost.h" | |
Showpost::Showpost(WContainerWidget *parent) : WContainerWidget(parent),sqlite3("datadb") | |
{ | |
session_.setConnection(sqlite3); | |
session_.mapClass<Post> ("post"); | |
session_.mapClass<Category> ("category"); | |
sqlite3.setProperty("show-queries","true"); | |
try{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> <title> form </title> | |
</head> | |
<body> | |
<form action="insert.php" method="post"> | |
Firstname: <input type="text" name="firstname"> | |
Lastname: <input type="text" name="lastname"> | |
Age: <input type="text" name="age"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <GL/glut.h> | |
using namespace std; | |
unsigned char get_col[50][50][3]; | |
void init(void) | |
{ | |
glClearColor(1.0, 0.0, 0.0, 0.0); | |
// glClear(GL_COLOR_BUFFER_BIT); | |
glMatrixMode(GL_PROJECTION); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <GL/glut.h> | |
#include <cmath> | |
void line(float x, float y) | |
{ | |
glClearColor(1.0, 1.0, 1.0, 1.0); //defining for background color | |
glClear(GL_COLOR_BUFFER_BIT); //assigning the defined color to background | |
glColor3f(0.0, 0.0, 0.0); // color of the object to be displayed | |
glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);//representing the real world dimensions in 2D screen and defining the coordinate limits | |
glPointSize(2); | |
glBegin(GL_LINES); //start drawing polygon |
OlderNewer