代码搜索:increment
找到约 5,376 项符合「increment」的源代码
代码结果 5,376
www.eeworm.com/read/479166/6700100
h increment.h
// Fig. 10.7: Increment.h
// Definition of class Increment.
#ifndef INCREMENT_H
#define INCREMENT_H
class Increment
{
public:
Increment( int c = 0, int i = 1 ); // default constructor
www.eeworm.com/read/256102/12027905
cpp increment.cpp
// Fig. 10.5: Increment.cpp
// Member-function definitions for class Increment demonstrate using a
// member initializer to initialize a constant of a built-in data type.
#include
usin
www.eeworm.com/read/256102/12027913
h increment.h
// Fig. 10.4: Increment.h
// Definition of class Increment.
#ifndef INCREMENT_H
#define INCREMENT_H
class Increment
{
public:
Increment( int c = 0, int i = 1 ); // default constructor
www.eeworm.com/read/256102/12027943
cpp increment.cpp
// Fig. 10.8: Increment.cpp
// Attempting to initialize a constant of
// a built-in data type with an assignment.
#include
using std::cout;
using std::endl;
#include "Increment.h"
www.eeworm.com/read/256102/12027946
h increment.h
// Fig. 10.7: Increment.h
// Definition of class Increment.
#ifndef INCREMENT_H
#define INCREMENT_H
class Increment
{
public:
Increment( int c = 0, int i = 1 ); // default constructor
www.eeworm.com/read/117953/14893540
java increment.java
//Copyright (c) 1998, Arthur Gittleman
//This example is provided WITHOUT ANY WARRANTY either expressed or implied.
/* Uses the prefix and postfix increment and decrement operators */
p
www.eeworm.com/read/117953/14893541
class increment.class
www.eeworm.com/read/116739/14956375
do_increment
#!/bin/ksh
# Script name: increment
# Example 10.122
# Using the return Command)
function increment {
typeset sum # sum is a local variable.
(( sum = $1 + 1 ))
return $sum #
www.eeworm.com/read/116739/14956489
do_increment
#!/bin/sh
# Script name: do_increment
increment () {
sum=`expr $1 + 1`
return $sum # Return the value of sum to the script.
}
echo -n "The sum is "
increment 5 # Call function increment;