I also do not understand the "it is programming"-what it means. My question is about how to insert for example from console (command line) such elements of binary tree-1, 5,6, 15 etc. I understand...
Type: Posts; User: send
I also do not understand the "it is programming"-what it means. My question is about how to insert for example from console (command line) such elements of binary tree-1, 5,6, 15 etc. I understand...
Sorry for massive. About c or c++. The first option has too many errors so i need use cin or gets. But how. I need also use function insert so maybe there are no need to use cin. So question is very...
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;
struct node // the tree node
{
int key;
I have such task. There is such alpahbeth as {a, b} in markow algorithm concept. So I need to find out which letters (a or b) are more in word "p". If a then to retrieve the word with letter a,...
I have such task: create binary tree. Than I need to add massive there. After it i need sort out the elements of massive and then turn iut them to massive-but sorted. How to do it. How to find...
The allocation is only a part of task. But i don not know low to do it correctly. If it would be not with 2d massive. I think it is too much to use function to do it. I need such memory allocation...
Thank you for your notes. They are valuable. But how correctly initialize with malloc two-dimension massive. I have an example, but it is specially malformed in tiny way, and it uses pointers that is...
Codepad show three errors:
Line 18(for (i=0; i<k; i++)
{
printf("%d",&mas[i][j]);--opposite "{"): error: iostream: No such file or directory
Line 17(look at previous ;ine --opposite "for"):...
#include<iostream>
#include<conio.h>
#include<time.h>
int main()
{
int i,j,k, **mas[i][j];
printf("Enter matrix size\n");
scanf("%d", &k);
*mas[i][j]=new int [k*k]
if (p==NULL) {
If you about "Vvedit rozm.."-it is about the size of matrix in my local language. I forget it to change. The **pd should be also be changed simply by *p. Or maybe it should be without pointers. So i...
#include<iostream>
#include<conio.h>#include<time.h>using namespace std;int main(){ int i,j,k, **pd; printf("Vvedit rozmirnist matryci:\n"); scanf("%d", &k); *p=new int [k,k] ³f (p==NULL) { ...
incorrect input
Here is the draft of code that i desighned/ Of cause it has a several mistake. But would you be pleased to corect it a few to make it workable. My task is here to create the matrix, allocate the...