Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

C++ Layers SDL


Jacquelinett
 Share

Recommended Posts

1) The code that "didn't run" is nested in an If/Then/Else conditional statement. It more than likely never ran due to your program never reaching that specific conditional branch, e.g. whatever the condition of your IF statement is the program is meeting it and never reaching the Else statement.

2) After seeing/hearing/watching you deal with all of these very simple problems I'd like to suggest something that will pay off for you in the long run: Please stop doing whatever you're trying to do in C/C++ and go learn the language from the ground up. 99% of the problems you have had could be remedied by simply doing what I'm suggesting. I understand that you're probably wanting to be productive while learning, but in my experience someone else writing code and solving your problems for you doesn't really have that much value relative to you doing it yourself.

Wish ya luck.

PS/Edit: Hope I didn't come off as rude. I'm simply making a suggestion that may benefit you a lot more and that may speed up your overall progress exponentially since you'll have a better understanding of the logical flow of a program by way of learning the language.
Link to comment
Share on other sites

> 1) The code that "didn't run" is nested in an If/Then/Else conditional statement. It more than likely never ran due to your program never reaching that specific conditional branch, e.g. whatever the condition of your IF statement is the program is meeting it and never reaching the Else statement.
>
> 2) After seeing/hearing/watching you deal with all of these very simple problems I'd like to suggest something that will pay off for you in the long run: Please stop doing whatever you're trying to do in C/C++ and go learn the language from the ground up. 99% of the problems you have had could be remedied by simply doing what I'm suggesting. I understand that you're probably wanting to be productive while learning, but in my experience someone else writing code and solving your problems for you doesn't really have that much value relative to you doing it yourself.
>
> Wish ya luck.
>
> PS/Edit: Hope I didn't come off as rude. I'm simply making a suggestion that may benefit you a lot more and that may speed up your overall progress exponentially since you'll have a better understanding of the logical flow of a program by way of learning the language.

but the first 2 statements inside the else run, only the loop itself doesnt run.

And no i dont take it as rude.
Link to comment
Share on other sites

> for (int l = 0; l < 12; l++)
>
> {
>
> for (int t = 0; t < maxxy; t++)
>
> {
>
> The first one should run fine. The second one might not run if maxxy is 0 or a negative.

I just realized im a dumbass who failed at using debugger .____________.

but i guess i figure out why but now i have a new problem

but it fine i guess xD

time to work on fixing bug
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...