Dima
maybe you’ll stop asking every one and try to do soemthing
Anonymous
You must create a dynamic array
Dima
Arrays must have a defined number of elements
if its const it probably shouldnt matter
Anonymous
Im trying I did the entire code
Anonymous
the only thing that is not working is that
Dima
Show us the whole code.
শুভদীপ
Plz help me.. Tomorrow is my assignment
Anonymous
Try with #define MATCHES = 9
Anonymous
Try with #define MATCHES = 9
I did that and im getting errors in the functions
Anonymous
ok
Anonymous
Can you please send the full code?
Anonymous
via hastebin.com
Dima
if it’s small enough put it in `
Dima
tripple `
Anonymous
Or select all the code and press ctrl+shift+M
Anonymous
However it could just be that arrays just don't like variables at all
Dima
rip vla
Anonymous
Even if they're const
Anonymous
The only solution that's coming in my mind is dynamic arrays
Dima
1. you are missing the type specifier near main
Dima
2. you got function decl inside of a func
klimi
Dima do you know awk?
Dima
no
Anonymous
double declaration at line 28
buggybug
If it's a C language, it probably won't allow you to allocate static VLA (C99 extension AFAIR)
klimi
no
do you know someone who does?
klimi
i have something very strange
Dima
try to set the other c version
klimi
it prints to console but i cant redirect it
buggybug
In C default is int return type, it's a misc
buggybug
2. you got function decl inside of a func
Where? What function. Even if it takes place, it can't cause such issue George reported
Dima
yeah I just told what I saw kek
Dima
not related stuff
buggybug
where?
Use either the preprocessor definition or C++. I'm not sure whether C11 allows such array definitions
buggybug
buggybug
I mean what C std your compiler uses
buggybug
There are many std: C89, C99, C11
Anonymous
Dima
lol you should know
Dima
well.. you MUST know
buggybug
not sure about it
Check it. It should be easy. I don't know what compiler you are using
Anonymous
Dima
lol
Anonymous
im new in this
Anonymous
Would you please provide me links for c++ tutorials
buggybug
VC has a limited C std support. When the GCC and CLang are pioneers
Dima
Would you please provide me links for c++ tutorials
read the pinned message first before askin
Anonymous
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
Turbo C++ lmao
Anonymous
Who tf still uses Turbo C++
Anonymous
It's like some prehistorical ide
Anonymous
Dima Yushutin: read the pinned message first before askin Okay ma'am thank you
RS
Rokas urbelis
buggybug
Who tf still uses Turbo C++
Awful 90s - everything turbo. Turbo C, turbo C++, turbo Delphi, turbo ASM. They had even their own COM implementation
Roxifλsz 🇱🇹
Who tf still uses Turbo C++
Trust me, I put in that rule for a reason :D
Dima
also devc++
Anonymous
Hi
Ph!l😈
Help me write a C-program to count the number of characters of a sentence
mukesh
hoe to hack facebook voteing poll
MᏫᎻᎯᎷᎷᎬᎠ
int a = 1; a += ++a + a; in java 'a' is 5 In cxx 'a' is 6 Why? and which is correct (I hope cxx is correct lol)
MᏫᎻᎯᎷᎷᎬᎠ
Meen You wrote the standards?!!!! XD
Mat
Undefined behaviour
MᏫᎻᎯᎷᎷᎬᎠ
Hmm
MᏫᎻᎯᎷᎷᎬᎠ
Well The compiler gave me a warn about unused modification of ++ operator
BinaryByter
In CXX it is whatever the compiler wants
does the compiler not define an order of operation?
BinaryByter
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
According to this table, ++a would be evaluated first