; DELETE - removes some substring from a string.
;
; On entry:
;
; DS:SI Points at the source string.
; DX Index into the string of the start of the substring
; to delete.
; CX Length o
// delete.cpp -- using the delete operator
#include
#include // or string.h
using namespace std;
char * getname(void); // function prototype
int main()
{
char *
REM delete.sql
REM Chapter 4, Oracle9i PL/SQL Programming by Scott Urman
REM This block illustrates the DELETE statement.
DECLARE
v_StudentCutoff NUMBER;
BEGIN
v_StudentCutoff := 10;
-
REM delete.sql
REM Chapter 8, Oracle9i PL/SQL Programming by Scott Urman
REM This block illustrates the DELETE collection method.
set serveroutput on
DECLARE
-- Initialize a table to 10 ele
/*将下标为j的位置上的元素删除,n为数组大小*/
#include "text3.h"
void Delete( int *a , int *n , int j)
{
int i;
for ( i = j ; i < *n-1 ; i++ )
{
a[i] = a[i+1];
}
(*n)--;
}