Anonymous
thanks marie
Anonymous
I mean by degree decimal to deg/min/sec 40.3221° into 40°30'21"
Anonymous
the output show 40°30'21"
Igor🇺🇦
From radians to degrees?
Igor🇺🇦
Ok, got it
Anonymous
From radians to degrees?
no, it from degree to deg/min/sec
Anonymous
no, it from degree to deg/min/sec
Use atruct and escape sequences while printing
Anonymous
could you show me the coding, i dont know what is astruct or escape
Igor🇺🇦
no, it from degree to deg/min/sec
https://www.rapidtables.com/convert/number/degrees-to-degrees-minutes-seconds.html
Igor🇺🇦
They is an algorithm down the page
Anonymous
I would join but I won't use it
1. it can take lots of users there 2. we can share our codes with code view 3. we can create as many channels as we wanted 4. discord have roles, and voice channels BUT it's not encrypted
klimi
Does it matter?
Igor🇺🇦
server link?
https://discordapp.com/invite/vnyVmAE
Anonymous
Igor🇺🇦
what's your username?
I don't use discord
Anonymous
shp
Anonymous
shp
welcome...
Anonymous
I don't use discord
but that is our group server?
Igor🇺🇦
No, it's just a C/C++ group. Why does it matter who is there?
_̸̡͝͝This
Hi !
_̸̡͝͝This
I'm not sure if this is strictly related to c++, but I have a .so dll, is it possible to see what methods and classes are defined inside ?
Manish
Thanks ji
Manish
Please send me PDF books
Manish
Of programming
Anonymous
Anonymous
i try to run it but dont get the answer //deg to deg/min/se #include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { double dd; int d,m,s,ds; cout«"welcome to conversion of degree to deg/min/sec\n"; cout«"true deg/min/sec by calculator = 10°20'33\" = 10.3425\n"; cout«"please insert degree\n"; cin»dd; d=int(dd); m=int((dd-d)*60); ds=d+(m/60); s=(dd-ds)*3600; cout«"deg="«d«endl«"min="«m«endl«"sec="«s; return 0; }
Anonymous
Anonymous
the answer at second is wrong, it should get 33 not 1232
Igor🇺🇦
the answer at second is wrong, it should get 33 not 1232
I didn't check you code exactly, but I think you need to get "floor" operator instead of casting, and cast m to float before division
Anonymous
Anonymous
Why do you want discord over telegram btw?
Anonymous
I can make a poll if people are interested or not .. what say @themester ?
Anonymous
About?
A discord server
Anonymous
Why do you want discord over telegram btw?
i like the appearence. we can use code tags.
Anonymous
also, we can create related channel as many as we want
Anonymous
A discord server
I doesn't use discord
Anonymous
But you can do whatever you want xD
Anonymous
I do have a channel for C++
cool... share the link...
Anonymous
Anonymous
ok
Onur
can someone tell me time complexity of map::find and map::operator[] in terms of big-O ?
Onur
I am using gcc if it matters
Manas
Have is there an equivalent to this code Exp: Array[in.nextInt()] // in java // C++ ??
Onur
Have is there an equivalent to this code Exp: Array[in.nextInt()] // in java // C++ ??
in order to get next integer in c++, you need to define an int first so you can do this: int i; std::cin >> i; array[i]
Onur
for array you can use std::vector instead of raw arrays
Артём
Hello everyone. Could you help me what is better to give a function arguments: poiter or link? I know about syntax differences, but the question is what will work quicklier?
Anonymous
ex: borja(int &a)
Артём
Yes, I mean int main() { int a; f(&a); } void f(int * a) { /*code*/ } or int main() { int a; f(a); } void f(int & a) { /*code*/ }
Anonymous
Hello everyone. Could you help me what is better to give a function arguments: poiter or link? I know about syntax differences, but the question is what will work quicklier?
If you using C, the pointer is the unique way. In cpp, pass by reference is always interesting. However, in some cases the variables are pointers, and you don't need pass by reference
Anonymous
ex: borja(int &a)
Important to understand that this is a cpp code
Anonymous
Is there any chinese here
Anonymous
?
Anonymous
Ad
Ok bro... Fine
Anonymous
How are those two files conected when i include the .h in One of my program
I will try to tell you in simple language. When you write for example (#include<stdio.h>) compiler has a already given a path to check for that library file. So it will check there if that file is present if not it will give an error or it will automatically link to file in which you have included the header file. Try to find header file's folder remove on file out of it and try to add that header file in program
Anonymous
no
anyway, what kinda program you write now?
Anonymous
Hola buenas noches con todos quiero hacer que el resultado me lo muestre en el pie del arreglo que sume columna por columna e realizado mi codigo que me muestra los numeros aleatorios de un arreglo de 2 por 3 me podrian orientar de como sumar columna por columna por favor #include<iostream> #include<ctime> #include<cstdlib> using namespace std; int main (void) { srand(time(NULL)); int Vanessa[2][3], Suma=0; for(int f=0;f<2;f++)//Filas { for(int c=0;c< 3;c++)//Columnas { Vanessa[f][c]=10+rand()%(99-10);//GeneraNumeros aleatorios y lo almacena en las posiciones del vector cout<<"\t "<<Vanessa[f][c]<<"\t ";//Muestra los numeros generados } cout<<"\n ";//Saltos de linea for(int f=0;f< 3 ;f++) { Suma=0; for(int c=0;c<2;c++) { Suma+=Vanessa[c][f]; } } // cout<<"\t La Suma es: "<<Suma; } return 0; } Gracias de Antemano
Anonymous
English please
Anonymous
ok
Anonymous
English please
Hello, good evening with everyone I want to make the result show it to me at the bottom of the array that adds column by column and made my code that shows me the random numbers of a 2 by 3 array could guide me how to add column by column please #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main (void) { srand (time (NULL)); int Vanessa [2] [3], Sum = 0; for (int f = 0; f <2; f ++) // Rows { for (int c = 0; c <3; c ++) // Columns { Vanessa [f] [c] = 10 + rand ()% (99-10); // Generate random Numbers and store it in vector positions cout << "\ t" << Vanessa [f] [c] << "\ t"; // Shows the generated numbers } cout << "\ n"; // Line breaks for (int f = 0; f <3; f ++) { Sum = 0; for (int c = 0; c <2; c ++) { Sum + = Vanessa [c] [f]; } } // cout << "\ t The Sum is:" << Sum; } return 0; } Thanks in advance
Anonymous
there is no error, I want you to add the columns
Anonymous
btw, you can paste your code on ideone.com
Anonymous
what do you mean with "add the columns"? the columns is added by "\t", right?
Anonymous
oh you mean addition...
Anonymous
i guess this is the problem: for (int f = 0; f <3; f ++) { Sum = 0; //<——
Anonymous
you keep assign it to 0