₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,003 members, 8,419,888 topics. Date: Thursday, 04 June 2026 at 06:27 AM

Toggle theme

Iarm's Posts

Nairaland ForumIarm's ProfileIarm's Posts

1 2 (of 2 pages)

ProgrammingRe: Abeg Guys What Is Wrong With This C Code by iarm(m): 10:44pm On Feb 12, 2010
Firstly, without even looking at the code, are you linking with -lm?

Secondly, after looking at the code, you clearly have a misunderstanding of how arrays (and pointers) work.

Your "string variable declarations" are stupid. Redeclare them as so:

char usrname[] = "dikachi";
char pass[] = "xerone";

This automatically creates storage for your string, plus your null character, what you seem to have done is try to place a string in a redeclaration, which is a character (and not an array) in other words, trying to fit a string into a character, which has already been declared wink

The second error you should be getting deals with the usage of this redeclaration; if((name == usrname) && (passr == pass) -- you're not allowing this to work properly; Kindly read error messages before trying to ask questions about code, maybe they can give you some direction in future.

Do you have a book? If not, get "The C Programming Language, by Kernighan and Ritchie".
ProgrammingRe: Chat Room For Nairaland? by iarm(m): 6:34am On Feb 10, 2010
Does it have to be interfaced within the site itself? And, if so -- what about some sort of java based client that interoperates with some IRC server (consider freenode.org) which doesn't have to rely on nairaland itself for configurations, et al, which would be simpler for the administrating team, being as they wouldn't need to administrate it wink
ProgrammingRe: Is C# Better Than C/C++? by iarm(m): 6:32am On Feb 10, 2010
There is no _better_ or _worse_ there is _objectives_ and desires, or, means to a certain end.

C is a language that was made to create the UNIX OS, and families. Some refer to it as high level assembly, where portability exists.

C++ is "aimed" at being a modern, object oriented C, with the incrementor operator suggesting that it's C + 1, but in actuality, it's probably C - 1, an extremely complex language that I'm not sure why so many people find wonderful (possibly boost?).

C# which is based on C++ (understandably so) focuses on Microsoft Windows based programming, originally made to manage .NET library frameworks, but so far has extended further. It has similar design goals as Java does (see the CLR) -- I don't have a lot to say about it.

Personally, learning C would be most beneficial, consider how much quicker you'd learn C++ and C# should you wish to veer into either one. It's a language that has small semantics and grammar, suitable for a learner to programming as a whole.

It's ultimately your choice, however it does depend again on your aspirations, maybe you could discuss them, further?

Also, there is no "ethical hacking". Your motivations for exploitation of a vulnerability are left aside, in my opinion.
Without C, your scope would be limited to web-based bugs, i.e sqli, rfi, etc. With C, web based exploitation would probably be easier to grasp, with the advantage of understanding system level programming concepts, and exploitation.

If you need any help -- message me.
ProgrammingRe: How To Make Search Engine Like Google: ? by iarm(m): 6:27am On Feb 10, 2010
Learn JS.
ProgrammingRe: Ms Sql Server by iarm(m): 6:24am On Feb 10, 2010
Personally, I prefer postgresql which is freely available.
Tech JobsRe: Programmers Needed by iarm(m): 6:24am On Feb 10, 2010
Might want to say what sort of jobs you have available.
Nairaland GeneralPossible Smf Forum Change? by iarm(op): 6:20am On Feb 10, 2010
It's known to those in the security field that SMF is not the most secure forum framework out there. SMF 2.0 has been released (as far as I know) with this forum running a version almost _three_ years old, I think at this particular juncture, it wouldn't come as a shock to any one if this particular forum has already been hacked.

Seun, I know you're not the sort of man that listens to such recommendations, but if any others would like to consider possible changes, or a framework alternate to this one, maybe it'd be worth starting up something similar, I was considering something along the lines of stackoverflow.com but with the general theme of ideas nairaland has.

I'm trying to keep this as short as possible, it's 6AM wink
ProgrammingRe: C++ Book by iarm(m): 6:14am On Feb 10, 2010
Look for `The Design and Evolution of C++ by Bjarne Stroustrup', there are ebooks that are available, but I'm unsure how easy it would be to acquire a real book, in Lagos.

1 2 (of 2 pages)