lesson c++ Prefix/Postfix
#include <iostream.h>
int a=10;
int b=10;
int c=0;
int d=0;
void main(void)
{
c = b++;
cout << "b:" << b << " c:" << c << '\n';
d = --a;
cout << "a:" << a << " d:" << d << '\n';
}
lesson OxygenBasic Prefix/Postfix
include "window.h"
def color 0xFFC8C8
setwindow "Prefix/Postfix",640,480,ws_overlapped
setfont 16,22,0,0
sys a=10,b=10,c,d
c = b: b = b+1
settext "b:" + b + " c:" + c,32,32,color
a = a-1
d = a
settext "a:" + a + " d:" + d,32,64,color
waitkey(vk_space)
winend
[attachment deleted by admin]