View 1_Storage.sol
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.8.0; | |
/** | |
* @title Storage | |
* @dev Store & retrieve value in a variable | |
*/ | |
contract Storage { |
View lottery.sol
pragma solidity ^0.4.17; | |
contract Lottery { | |
address public manager; | |
address[] public players; | |
function Lottery() public { | |
manager = msg.sender; | |
} |
View FindFunctionDef.cpp
/* | |
FindFunctionDef finds function defination in a source code and returns its line number | |
*/ | |
#include <iostream> | |
#include <string.h> | |
using namespace std; | |
unsigned int FindFunctionDefn(char* strFunctionName, char* strSourceCode ) { | |
//getting position of function defination |
View 3DVector.cpp
/* | |
Coded by Chetanya Chopra | |
github : http://github.com/chetanyachopra | |
*/ | |
/*A basic 3d vector Class */ | |
#include<iostream> |