No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Memory allocation. Pretty simple, but I guess there might be some people here who do not know what it is... [CODE]#include<stdio.h> #include<iostream.h> int main() { int *n = new int; *n=12; printf("n's value is %d\n",*n); *n=25; printf("n's value is %d\n",*n); delete n; printf("n was deleted\n"); system("PAUSE"); return 0; } [/CODE] |
|
Hello! I've got a little problem... I want to make a program which puts 10 random character, but the characters should NOT be digits. [CODE]#include <ctime> #include <stdio> #include <iostream> using namespace std; int main() { time_t t; time(&t); srand(t); int i,c; char ch; printf("Generating 10 random characters...\n"); for(i=1;i<=10;i++) { … |