# Search:

Type: Posts; User: Zeus_

Page 1 of 8 1

1. ## Thread: Custom stack problems

by Zeus_
Replies
7
Views
156

### Yeah, I figured. It's a bad idea. I'm modifying...

Yeah, I figured. It's a bad idea. I'm modifying all my programs so that I can use them instead of the STL for practicing purposes and hobby projects. Thought it'd be a good idea to overload [] (I...
2. ## Thread: Custom stack problems

by Zeus_
Replies
7
Views
156

### This is my operator overload for retrieving the...

This is my operator overload for retrieving the element data of the i'th element. It's probably very inefficient for accessing the millionth element or something like that. What do you guys think I...
3. ## Thread: Bubblesorting Array elements

by Zeus_
Replies
34
Views
294

### Lol, if that's the truth, RIP the 94 people (in...

Lol, if that's the truth, RIP the 94 people (in the PCMC stream) who've learnt Bubble and Insertion sort at school and the thousands, probably millions of people, referring to GeeksforGeeks.
F
4. ## Thread: Bubblesorting Array elements

by Zeus_
Replies
34
Views
294

### > That is not bubble sort, it's insertion sort. ...

> That is not bubble sort, it's insertion sort.

I'm pretty sure that that is bubble sort. I looked up through three references after you said that and I can tell for sure that it is not insertion...
5. ## Thread: Bubblesorting Array elements

by Zeus_
Replies
34
Views
294

### See #4. You're missing a % before 'ist'

See #4. You're missing a % before 'ist'
6. ## Thread: Bubblesorting Array elements

by Zeus_
Replies
34
Views
294

### What's your input? (1,2,3,4,5) ? If that's the...

What's your input? (1,2,3,4,5) ? If that's the case, and you want 5,4,3,2,1, you need to change the > in if statement to <

> printf("\nDas ist der %i. Wert bei der sortierung: %i", e + 1, e + 1,...
7. ## Thread: Bubblesorting Array elements

by Zeus_
Replies
34
Views
294

### void BubbleSort (int* Array , int Size) { ...

void BubbleSort (int* Array , int Size)
{
int i , j , Temp;
bool SwapOccurred;

for (i = 0; i < Size - 1; i++)
{
SwapOccurred = false;
...
8. ## Thread: Bubblesorting Array elements

by Zeus_
Replies
34
Views
294

### I think your bubble sort is wrong... Ascending...

I think your bubble sort is wrong...

Ascending order bubble sort:

void BubbleSort (int* Array , int Size)
{
int Temp; // int ctr = 0

for (int i = 0; i < Size; i++)
9. ## Thread: Vectro clear function

by Zeus_
Replies
12
Views
117

### Oh, cool! The STL just got more interesting to...

Oh, cool! The STL just got more interesting to me. It's a brilliant solution tbh and yeah, I always wondered why the capacity was not 0 when I learnt vector for the first time. Makes a lot more sense...
10. ## Thread: #define directive

by Zeus_
Replies
8
Views
180

### I mean, you'd usually have an other.c file along...

I mean, you'd usually have an other.c file along with the other.h to contain the implementation details. So, when you include other.h that's added into project files, the correct linking occurs with...
11. ## Thread: Vectro clear function

by Zeus_
Replies
12
Views
117

### Thanks, I thought so though. So, does that mean...

Thanks, I thought so though. So, does that mean that it just re-writes over the already allocated memory? Cuz if that's so, then it's probably a brilliant idea.
12. ## Thread: Vectro clear function

by Zeus_
Replies
12
Views
117

### Why are you trying to find out what your PC knows...

Why are you trying to find out what your PC knows or doesn't know? When you are learning programming languages, you don't question how your computer is able to do something. You should focus more on...
13. ## Thread: #define directive

by Zeus_
Replies
8
Views
180

### If you're using an IDE, you need to add other.h...

If you're using an IDE, you need to add other.h along with main.c to your project files for the linker to make it work. Or, you should add the search directory for other.h to your compilers' default...
14. ## Thread: I cannot get one simple class to work

by Zeus_
Replies
6
Views
120

### Then my GCC is outdated because I sure do get an...

Then my GCC is outdated because I sure do get an error if I try to write code like that.
15. ## Thread: I cannot get one simple class to work

by Zeus_
Replies
6
Views
120

### > int NUMMENUS = 0; You can't initialise...

> int NUMMENUS = 0;

You can't initialise variables like that inside a class. Only const static qualified variables can.
16. ## Thread: C++ customized tutorial videos

by Zeus_
Replies
2
Views
102

### YouTube...

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...
17. ## Thread: 3D Tic Tac Toe How to Reset Boards?

by Zeus_
Replies
5
Views
142

### I don't see how you think he's being rude in any...

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...
18. ## Thread: Strange characters and spaces in file when I write a structure in it.

by Zeus_
Replies
5
Views
124

### If she's the one answering, it's probably the...

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...
19. ## Thread: Online learning C++ (in free as first step)

by Zeus_
Replies
3
Views
134

### You should really be buying a book or downloading...

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...
20. ## Thread: 3x3x3 Tic Tac Toe

by Zeus_
Replies
10
Views
165

### Awesome! Now, as John mentions, a lot of code is...

Awesome! Now, as John mentions, a lot of code is not needed. Look at post #8 and try fixing your code...
21. ## Thread: 3x3x3 Tic Tac Toe

by Zeus_
Replies
10
Views
165

### If you expect to return a pair where your return...

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()

...
22. ## Thread: Building a small debugging tool for myself

by Zeus_
Replies
14
Views
319

### It took me almost 10 mins to download the ZIP of...

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....
23. ## Thread: 3x3x3 Tic Tac Toe

by Zeus_
Replies
10
Views
165

### int main (void) { int i = 0; pair...

int main (void)
{
int i = 0;
pair <int , int> scores [10];
int SumOfScoresOfComp1 = 0;
int SumOfScoresOfComp2 = 0;
while(i < 10)
{
scores[i] =...
24. ## Thread: Input multiple floats directly to array

by Zeus_
Replies
18
Views
303

### Difference between %d and %i format specifier in...

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 -...
25. ## Thread: tell me how easy it is to compile the boost

by Zeus_
Replies
1
Views
75

### BoostWindowsQuickRef - CodeBlocks...

BoostWindowsQuickRef - CodeBlocks

This is where I learnt set up for Boost for my C::B. That link should, I think, have everything you need.
Results 1 to 25 of 184
Page 1 of 8 1