Anonymous
C++ will be pretty overwhelming for newbies
No, it is not, if it's taught right
Anonymous
C++ can also be easier to learn than C
Totally, if it is taught in the right way
Anonymous
C++ is much better than c especially oops
Anonymous
Someone please send C++ best book pdf
/warn i can send a best C++ warn for free
yoav
g++ or even c++ Microsoft compiler can compiler a file.c a C language files?
Рома
#include <stdio.h> int main(void) { int firstVect[10]; printf("Enter 10 numbers for first Vector: \n"); for (int i = 0; i < 10; i++) { scanf("%d", &firstVect[i]); } printf("\n"); int secondVect[10]; printf("Enter 10 numbers for secnd Vector: \n"); for (int i = 0; i < 10; i++) { scanf("%d", &secondVect[i]); } for (int i = 0; i < 10; i++) { if (firstVect[i] = secondVect[i]) { int unitedVect[] = { firstVect[i] }; printf("%d \n", unitedVect); } } getch(); return 0; }
Рома
help me plz !!! where a problem ??
klimi
hm
Рома
Enter two vectors of integers from the keyboard. Create a new vector from the common elements of the two entered. The new vector should have no element repeats. Print the generated vector or display a missing element message
klimi
i think it works as written
klimi
ah description
Рома
It's working , but incorrect
Anonymous
You're printing array the wrong way
Anonymous
Please learn basics
Anonymous
Do u have this group channel
Investor_miner
I need credit card
klimi
Do u have this group channel
like channel for group?
Investor_miner
make one
Any one.
klimi
Tobias🐾🚲
I need credit card
Go to your bank, get one.
zack83
#include <stdio.h> int main(void) { int firstVect[10]; printf("Enter 10 numbers for first Vector: \n"); for (int i = 0; i < 10; i++) { scanf("%d", &firstVect[i]); } printf("\n"); int secondVect[10]; printf("Enter 10 numbers for secnd Vector: \n"); for (int i = 0; i < 10; i++) { scanf("%d", &secondVect[i]); } for (int i = 0; i < 10; i++) { if (firstVect[i] == secondVect[i]) { int unitedVect[i] = { firstVect[i] }; printf("%d \n", unitedVect); } This might work } getch(); return 0; }
zack83
It won't even compile
Well sir how iam too new at this
zack83
It won't even compile
Can u tell me the error
zack83
Well sir how iam too new at this
I mean iam also new at this
Ilya
help me plz !!! where a problem ??
If first vect(i) = second vec(I) Is incorrect
Ilya
Uh... Compiling C++ files?
All c++v compilers are c compilers, too
Рома
#include <stdio.h> int main(void) { int firstVect[10]; printf("Enter 10 numbers for first Vector: \n"); for (int i = 0; i < 10; i++) { scanf("%d", &firstVect[i]); } printf("\n"); int secondVect[10]; printf("Enter 10 numbers for secnd Vector: \n"); for (int i = 0; i < 10; i++) { scanf("%d", &secondVect[i]); } int isUnity = 0; for (int i = 0; i < 10; i++) { if (firstVect[i] == secondVect[i]) { isUnity++; } } if (isUnity == 0) { printf("There are no unity numbers"); } else { int vect[10]; for (int i = 0; i < 10; i++) { if (firstVect[i] == secondVect[i]) { vect[i] = firstVect[i]; printf("%d ", vect[i]); } } } getch(); return 0; }
Рома
I wrote a program, but how to make the numbers not recur in a new array ???
C.
All c++v compilers are c compilers, too
That is not actually obvious. So, not a dumb question as you'd think.
H̲i̲L̲e̲v̲e̲l̲
What does your program do?
I think its searching same numbers/chars
Рома
What does your program do?
My program creates one array of identical numbers from two other arrays
Рома
But if I enter two numbers in the first array and the same numbers will be in the second then I will create an array with two numbers. For example arr1 = {1,1}; arr2 = {1,1}; newArr = {1,1}. I need newArr {1};
H̲i̲L̲e̲v̲e̲l̲
And delete repeated chars
H̲i̲L̲e̲v̲e̲l̲
C.
And why is there a getch at the end?
Рома
so that the application does not close
C.
so that the application does not close
If it is a terminal application, it doesn't close automatically lol
Tokin
No, it is not, if it's taught right
Where would I find a guy who's willing to teach me right? 😅
Tokin
😔
Tokin
Tedious process
KHD
KHD
Hello guys, Can you help me with this code please ?
Anonymous
/warn read the rules
Mat
#howtoask
KHD
/warn
Tokin
This seems doable.. nothing complicated bruh
Anonymous
😳
Shlok
I wrote something here and now it is erased
Shlok
I heard purge command in sql
Shlok
So it got deleted
Shlok
I have a compilation problem in codblocks
Shlok
Can i ask it here
Anonymous
.
Shlok
I try to compile program "x" but program "y" gets compiled. I tried to look answer in google, asked friends but could find the solution
Shlok
I deleted program y but compiler is still looking for that program only
Shlok
/warn
Shlok
I clicked on it accidentally
Shlok
It is looking for exam.c, but i am trying to build pattern1.cpp
Shlok
So i just have to delete program named main?