Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 390
Search took 0.03 seconds.
Search: Posts Made By: Adak
Forum: C++ Sep 5th, 2010, 10:16 AM
Replies: 32
Views: 659
Posted By Adak
Re: Arguments passed by reference . . . .

I try to avoid the "pass by reference" description. I prefer the "pass by copy" all the time, idea - but addresses just happen to lead back to the original item.

I'm not being picky, that's just the...
Forum: Community Introductions Sep 5th, 2010, 10:10 AM
Replies: 5
Views: 270
Posted By Adak
Re: Hi Everyone!!

Welcome to the forum, Aphex! ;)

I believe you've made a good choice with Python. Enjoy!
Forum: Coder's Corner Lounge Sep 3rd, 2010, 9:34 PM
Replies: 7
Views: 186
Posted By Adak
Re: Bugs

It goes back further than that - and it's a true story. Before all the integrated circuitry was invented, the computers used RELAYS, as switches. Relays are electro-mechanical switches, and they have...
Forum: C Aug 30th, 2010, 4:13 AM
Replies: 9
Views: 216
Posted By Adak
Re: Polish notation and variables (K&R 4-6)

Maybe ** that's ** what makes it beautiful? ;)

Beautiful to look at...

Delightful to hold...

If out of bounds - SOLD!!

:rolleyes:
Forum: Coder's Corner Lounge Aug 29th, 2010, 6:01 PM
Replies: 9
Views: 541
Posted By Adak
Re: I Need a Funny Video

Worst football play ever!

http://rivals.yahoo.com/highschool/blog/prep_rally/post/The-worst-high-school-football-play-ever?urn=highschool-265720

;)
Forum: C Aug 29th, 2010, 9:59 AM
Replies: 16
Views: 298
Posted By Adak
Re: Please help me with passing array as a pointer.

I agree 100%! I never would choose to code this way with arrays. Gawd No!
Forum: C Aug 29th, 2010, 9:11 AM
Replies: 16
Views: 298
Posted By Adak
Re: Please help me with passing array as a pointer.

In this printing loop, the two print statements are the same:

for(i = 0; i < 3; i++) {
for(j = 0; j < 3; j++) {
printf("%d ", matrix[i][j]); //same as
printf("%d ",...
Forum: C Aug 29th, 2010, 7:42 AM
Replies: 16
Views: 298
Posted By Adak
Re: Please help me with passing array as a pointer.

arr = base address of the array
i = row number
6 = number of columns in each row
j = current column you're accessing in that row.

So *(arr + i*6+j) is how you can calculate your offset for each...
Forum: C Aug 29th, 2010, 2:17 AM
Replies: 16
Views: 298
Posted By Adak
Re: Please help me with passing array as a pointer.

This is probably not quite what you want, but it's "something close". (Maybe - this is NOT the kind of programming I have much experience with).


/* a 2D array is changed in a called function, using...
Forum: C Aug 28th, 2010, 7:34 AM
Replies: 16
Views: 298
Posted By Adak
Re: Please help me with passing array as a pointer.

This is how I do it:


#include <stdio.h>

void change(int matrix[3][3]); //the first 3 can be deleted

int main(void)
{
int matrix[3][3]={
Forum: Coder's Corner Lounge Aug 27th, 2010, 3:00 AM
Replies: 3
Views: 146
Posted By Adak
Re: How f***ed is my database?

Thanks TD, NOSQL had me rolling! ;)
Forum: Community Introductions Aug 26th, 2010, 10:49 PM
Replies: 2
Views: 1,113
Posted By Adak
Re: Technique Matching Hair Style System

I don't believe you've studied the problem sufficiently. EXACTLY what elements of hair are you classifying?

Length, color, amount of curl or wave, thickness of strand, population density on the...
Forum: Python Aug 26th, 2010, 12:57 AM
Replies: 13
Views: 366
Posted By Adak
Re: Python IDE whaaa!?!?

If you friend has found an IDE he likes, and it works for what you might want to do later on, with "construct", then I suggest trying the same IDE as your friend.

There are a lot of IDE's for...
Forum: Show Off Your Open Source Projects Aug 25th, 2010, 10:40 PM
Replies: 4
Views: 136
Posted By Adak
Re: [C++] Word search solver

Congrats! If the wheel is interesting, I don't mind reinventing it with code. :cool:

I did this in C awhile back. We got loops!

Now you're ready to count up the mines adjacent to every square, in...
Forum: Community Introductions Aug 15th, 2010, 10:03 AM
Replies: 1
Views: 208
Posted By Adak
Re: Moro Everybody!

Welcome to the forum, Jaakko! ;)
Forum: C Aug 14th, 2010, 1:19 AM
Replies: 2
Views: 120
Posted By Adak
Re: Bugs in the addition drill program!

scanf() leaves the newline char (produced whenever you hit the enter key), behind. So it's still in the keyboard buffer.

Along comes your scanf() for the char and *bingo!* it finds the newline char,...
Forum: Community Introductions Aug 13th, 2010, 10:25 AM
Replies: 1
Views: 136
Posted By Adak
Re: Nice to be here

Welcome to the forum, Kentona! :cool:

I should learn some PHP, myself.
Forum: Community Introductions Aug 9th, 2010, 11:19 AM
Replies: 4
Views: 213
Posted By Adak
Re: Hello!!

Welcome, Kr0nuz!

Look at it this way - your program must have been pretty useful, interesting, or fun, or they wouldn't still be using it! ;)

Well, better luck on this forum. :D
Forum: C++ Aug 9th, 2010, 8:50 AM
Replies: 18
Views: 656
Posted By Adak
Re: Where and How did you learn to program?

I walked into an upscale department store while Christmas shopping, and they had a demo of the first chess playing computer - a stand alone board and game.

I was enthralled, and read everything on...
Forum: Software Design and Algorithms Aug 9th, 2010, 7:54 AM
Replies: 5
Views: 397
Posted By Adak
Re: array sort problems space complexity

It needs distribution counting sort - you only need to access the value one time, and the range is within reason, with NO negative values or duplicate numbers. That's your clues, right there.

After...
Forum: Project Ideas Aug 7th, 2010, 7:03 PM
Replies: 5
Views: 198
Posted By Adak
Re: Programme Idea

Check around, Ryan. a lot of these formats must have programs or procedures for changing formats from one to another. After all, the music isn't released originally in these formats, many times?

If...
Forum: Project Ideas Aug 7th, 2010, 7:31 AM
Replies: 5
Views: 198
Posted By Adak
Re: Programme Idea

Welcome to the forum, Ryan! :)

Your program wouldn't be hard to do EXCEPT it would have to know how music was stored in each format of music file that you wanted it to check for a certain...
Forum: Community Introductions Aug 2nd, 2010, 8:12 PM
Replies: 2
Views: 140
Posted By Adak
Re: Hello there!

Welcome to the forum, Daniel! :)

Sounds like you've learned a lot of programming, already.
Forum: C Jul 30th, 2010, 5:58 PM
Replies: 31
Views: 1,183
Posted By Adak
Re: problem with SCANF!!!

I know he's not the OP. Figured he had the same problem, and just didn't want to read the whole thread.

Can I get away with using "you" and "your" in a collective sense, for anyone with the OP's...
Forum: C Jul 30th, 2010, 2:57 PM
Replies: 31
Views: 1,183
Posted By Adak
Re: problem with SCANF!!!

Dawei told you what was causing your problem with scanf(), in post #3 of this thread. I told you what was your problem in post #10 of this thread. Two solutions are suggested for you to use.

To...
Forum: C Jul 22nd, 2010, 12:45 PM
Replies: 10
Views: 349
Posted By Adak
Re: help learning arrays

I'd suggest:

1) int main() or int main(void), with return 0.

2) using 2-4 spaces for your indentation for code, instead of a tab. The way the forums work, is to give code a wider fixed width font....
Forum: C Jul 22nd, 2010, 12:20 PM
Replies: 31
Views: 1,183
Posted By Adak
Re: problem with SCANF!!!

Scanf is a function best avoided - but many texts and teachers use it, so it's hard to avoid it.

A classic problem is the menu choice. You want the user to select a number, and numbers are generally...
Forum: Project Ideas Jul 1st, 2010, 4:24 PM
Replies: 1
Views: 241
Posted By Adak
Re: Chess

Chess programs are not real easy to understand. Perhaps the simplest is one open source program called First Chess (google for it).

It plays poorly, but it's purpose is to show how a simple chess...
Forum: Coder's Corner Lounge Jun 25th, 2010, 11:22 PM
Replies: 7
Views: 244
Posted By Adak
Re: Just for laugh :)

Excellent! ;)
Forum: C++ Jun 25th, 2010, 11:09 PM
Replies: 143
Views: 3,666
Posted By Adak
Re: My Game Has Some Issues

Smj, I hope you didn't make all these changes to your program, for us. I hope you see that you made those changes because they helped your program (or will help it in the future), and helped your...
Forum: Community Introductions Jun 25th, 2010, 8:56 AM
Replies: 2
Views: 316
Posted By Adak
Forum: Community Introductions Jun 25th, 2010, 8:54 AM
Replies: 8
Views: 795
Posted By Adak
Re: intro

Welcome to the forum, Wannabeprogrammer. :)

When you post code you want help with:

1) surround it with code tags by clicking on the # icon in the advanced editor. That keeps code looking like code...
Forum: Coder's Corner Lounge Jun 24th, 2010, 7:18 PM
Replies: 31
Views: 882
Posted By Adak
Re: I had a huge stroke of genius!

Find a copy of "The Corbin Project" film:

"This is the voice of world control",

You'll love it!
Forum: Community Introductions Jun 8th, 2010, 5:15 AM
Replies: 2
Views: 185
Posted By Adak
Re: Hello And looking For help!

Welcome to the forum! I'm not sure what language would be best suited for you, but stay tuned for other suggestions.
Forum: Community Introductions Jun 7th, 2010, 7:28 PM
Replies: 10
Views: 1,224
Posted By Adak
Re: Never too old

Welcome, jonkets (Neil), and I believe you made a great choice for your language.

Enjoy!
Forum: Other Web Development Languages Jun 7th, 2010, 4:08 PM
Replies: 37
Views: 1,254
Posted By Adak
Re: Brute Force Protection?

At this point, I suggest you go to the Apache forums, and ask that question. No one knows more about how to work with their software than the people who wrote it, and the people who use it, all the...
Forum: Java Jun 6th, 2010, 11:03 AM
Replies: 6
Views: 306
Posted By Adak
Re: Problem with brute Force

Is your program not generating the possible passwords correctly, or is it not recognizing the correct password, even though it's been generated?
Forum: Other Web Development Languages Jun 6th, 2010, 8:21 AM
Replies: 37
Views: 1,254
Posted By Adak
Re: Brute Force Protection?

Instead of trying to understand it all, right now. Try to just implement a robust algorithm, that is highly recommended. You can pick up on the details of various attacks, later.

I would certainly...
Forum: Other Web Development Languages Jun 6th, 2010, 2:51 AM
Replies: 37
Views: 1,254
Posted By Adak
Re: Brute Force Protection?

What we know for sure is:

1) the passwords should be encrypted with a robust encryption algorithm, to stop attacks that are easier than brute force (collision attacks, being just one).

2) there is...
Forum: Other Web Development Languages Jun 5th, 2010, 7:42 PM
Replies: 37
Views: 1,254
Posted By Adak
Re: Brute Force Protection?

I thought your first question was most appropriate and needed, S.I.:

"What are you protecting?"

You can't even get into the problem, without knowing that answer.
Showing results 1 to 40 of 390

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC