V
Do you have the google search? It has many interesting e-libraries, for example, libgen
Ariana
wut
Anonymous
#freeprogrammingbooks
Ariana
I would promote libgen and scihub if there arent ppl actively vetoing mdr
V
Damn, I've forgotten that google doesn't show libgen
V
Is the codingame really appropriating for coding practice? It's just question, no sarcasm
Anonymous
#howtoask
Anonymous
#findprojects
Anonymous
#bingo
Anonymous
#gcc9
Anonymous
#hownottoask
Anonymous
#meta
Anonymous
#ot
Ankit Shrivastava
make a program of hello world in c++
Jakup
can you help me to do this program? Write a program that calculates the sum of the numbers in the range from 1 to n.
Jakup
thanks a lot
swarnim
Why are we doing series question?
swarnim
Ok got it...😁
Anonymous
/report
Hatim
Is there a way to return an NULL string in cpp
Hatim
??
Mat
There is NULL
Mat
What's your question?
Anonymous
Is there a way to return an NULL string in cpp
What is a "NULL string"?
EinSpaten
You Variable basicly doesn`t have a value -> the value is Null -> notthing
Anonymous
I know the concept of NULL or better nullptr, but the term "NULL string" is new. So, you want to return NULL on a function which return type is std::string?
Anonymous
Hm dunno, the asking person should answer what he really wants.
Anonymous
Cause I call something like that empty and not NULL
EinSpaten
yeah I know ... mystring.empty();
BinaryByter
Anonymous
Vishu
Ok
Dima
lol
Dima
/ban ad
klimi
¯\_(ツ)_/¯
Anonymous
It's const int
Did it but is the same
Mihail
Babarinde
#include <stdio.h> int main() { int Birthyear ; int Currentyear = 2019; int age = Birthyear - Currentyear ; printf("enter your year of birth \n "); scanf("%d" &Birthyear); printf("You are %d years old" age); return 0 ;
Babarinde
Anybody to help am getting error
Anonymous
scanf(... Is missing a comma between the paraneters
Anonymous
And there are many syntactic errors
Mat
Anybody to help am getting error
You can try to understand the errors instead of asking randoom help. Learning how to read them will save you a lot of time
@monster@creature
Yeah I read that pinned message
Dima
welcome
Anonymous
I need recommendations for website that can teach me about programming. Paid/free no problem
Dima
www.google.com
Dima
it’s free
Anonymous
www.google.com
Dima, do you know about this? main() { int const MATCHES = 9; int teamOne[MATCHES][2]; it says "expressions must have a constant value"
Anonymous
I put const int and it is the same
Dima
const placement doesnt matter in this context try to initialize array implicitly
Anonymous
Why the bot is sending me that message? I have been here gor a while
Dima
no
Dima
teamOne[x][x] = ...
Anonymous
teamOne[x][x] = ...
But is not the same the way i have it?
Dima
it’s uninitialized
Anonymous
it’s uninitialized
Mm so i should remove int const MATCHES And use teamOne[10][2]
Babarinde
Thank you all
Elnee
/get best-book
Elnee
Oh noooooooo 😨
Babarinde
I have rewrite the code
Babarinde
But am still getting error
Babarinde
#include <stdio.h> int main() { int Birthyear ; int Currentyear = 2019; int age = Currentyear - Birthyear ; printf("enter your year of birth \n "); scanf("%d", &Birthyear); printf("You are %d years old", age); return 0 ; } Am getting 0 after I entered the current year
Anonymous
Heh
Anonymous
Babarinde Kolade Johb Kollybright: #include <stdio.h> int main() { int birthYear ; int currentYear = 2019; int age; age = currentYear - birthYear ; printf("enter your year of birth \n "); scanf("%d", &birthYear); printf("You are %d years old", age); return 0 ; }
Babarinde
Anonymous
#include <stdio.h> int main(int argc, char const *argv[]) { int Birthyear ; int Currentyear = 2019; printf("enter your year of birth \n "); scanf("%d", &Birthyear); int age = Currentyear - Birthyear ; printf("You are %d years old", age); return 0; }
Anonymous
Yeah
Anonymous
fabio
Anonymous
The problem is it that you initialized the age variable before the actual values
main() { const int MATCHES = 9; int teamOne[MATCHES][2]; int choice; int getChoice(); int counter = 0; do { choice = getChoice(); switch (choice) { case 'A': gameResults(&counter, teamOne, MATCHES); break; case 'B': in MATCHES It says "expressions must have a constant value"
Anonymous
Arrays must have a defined number of elements