YouTube
YouTube
YouTube
YouTube
YouTube
https://www.youtube.com/user/lefticus1
I watch videos from these channels all the time, there are some in regional languages too but there'd be no...
Type: Posts; User: Zeus_
YouTube
YouTube
YouTube
YouTube
YouTube
https://www.youtube.com/user/lefticus1
I watch videos from these channels all the time, there are some in regional languages too but there'd be no...
I don't see how you think he's being rude in any way at all. He's helping and implying sarcasm is not being rude. If someone takes the time to help you in learning to code better, what you should do...
If she's the one answering, it's probably the best there is in the thread, just saying. Also, no, there is no way, not that I know of, to mark someone's response the best (in case you were thinking...
You should really be buying a book or downloading a PDF to refer to whenever you have to. A lot of online tutorials are utter nonsense however some really try their best to get through to the...
Awesome! Now, as John mentions, a lot of code is not needed. Look at post #8 and try fixing your code...
If you expect to return a pair where your return type is int, then obviously you'd get an error. Also, you're using wrong brackets in the return statement.
Change this:
int playgame()
...
It took me almost 10 mins to download the ZIP of the repository :frown:. Comparing this to downloading a 100 MB game that takes about 7 seconds, I can only imagine how hugely giga-monolithic it is....
int main (void)
{
int i = 0;
pair <int , int> scores [10];
int SumOfScoresOfComp1 = 0;
int SumOfScoresOfComp2 = 0;
while(i < 10)
{
scores[i] =...
Difference between %d and %i format specifier in C language - GeeksforGeeks
Maybe this will help.
I don't see a lot of people using %i...
Also, why is it this?
for (int i = 0; i < len -...
BoostWindowsQuickRef - CodeBlocks
This is where I learnt set up for Boost for my C::B. That link should, I think, have everything you need.
The format specifier for int is %d.
Format Specifiers in C
EDIT: Lol, why the delete ;). There's nothing to be worried. No one will judge you and even if they do, it doesn't matter. We're all...
> The basic meaning of + is not an overload and they are definitely intrinsic to the compiler. They are pretty much just single assembly code instructions since the basic types correspond generally...
Are the implementations of the operator overloads for basic types like int, float, char etc present in the STL in some header files or is it intrinsic to the compiler? If the implementations are...
Thanks for clearing that! It's technically the same but not same, I see. @HelpMeC, sorry for the wrong info.
@laserlight, can you link me to the C Standard you use? I think I have the wrong one...
> He can use google himself.
Damn, why you so salty most of the time?
He mentions "I didn't find a lot of good and complete examples of generic data structures in C, so maybe someone here can...
> Both of the main functions are the same - In what manner they are the same?
In the first main, you've written c = ((a - 2) / 2) in one line. In the second main, you've written c = a - 2 in one...
C doesn't have the kind of support C++ has for generic data structures. templates in C++ are a very, very, very powerful tool for generic implementations.
I googled and tried to find something good...
First thing, both your main functions are the same.
An integer on most systems I've used is 4 bytes so let's consider it to be 4 bytes for now. 4 bytes is 32 bits where each bit can be a 0 or 1...
Yea..... I don't know why I never did that in any of my programs when I first wrote them, but I'll change them to not assume that the Stack/Queue/Tree/CircQueue is not empty. Actually, when I started...
Since a lot of people have been posting about Linked Lists and Stacks and Queues recently, I thought of paying visit to one of my old Stack programs (I have three more for Queues, Circular Queues and...
> BTW, %s doesn't get whitespaces?
Nope, you'd probably have to do something like scanf ("%[^\n]s", string) to input a string with spaces until the user hits enter
> I didn't use the %[^\n]...
scanf reads until it encounters a whitespace, a newline or an eof character. So, when you type in that space b/w 1 and 0.55, scanf stops taking in input for the first float (which is 1 and also your...
> What's wrong with this scenario? That I'm trying to point to some integer value which does not really exist in the memory as integer?
Yes, text[i] + '0' produces a temporary and you cannot take...
text[i] is a character as she explains, not an integer.
Write a simple program to understand characters.
char c = '1';
cout << c << " " << (int) c;
Can't blame y'all. I myself don't remember what his name was and can't find him either. Neither is my YouTube watch history useful as I cleared it up some time. I can get the syntax to work with some...