Search found 264 matches

Return to advanced search

Re: First program

Remove the #include <iostream> and the using namespace std; and you have C.
C++ just builds on top of C, and adds object orientedness. You might be better off using/trying to learn C first if you have no idea about OOP and the sorts, to learn procedural style first.
by BhaaL
on Mon Jul 27, 2009 2:37 pm
 
Forum: C and C++
Topic: First program
Comments: 19
Views: 16881

Re: First program

Real advantage, formatting. Individual advantage, preference. You can do easy things like this with printf: printf("Number in hex, at eight digits: 0x%08x.\n", 4919); while C++ and ostream-modifiers look like that: std::cout << "Number in hex, at eight digits:...
by BhaaL
on Mon Jul 27, 2009 12:44 pm
 
Forum: C and C++
Topic: First program
Comments: 19
Views: 16881

Re: First program

I've been using: << endl; Ive started to use \n You might want to use endl if you plan to write portable code, since it becomes \n on *nix, \r on mac os and \r\n on windows if i'm not mistaken. but, where would I include the \n in the following code? cout << "First we will add:...
by BhaaL
on Mon Jul 27, 2009 11:52 am
 
Forum: C and C++
Topic: First program
Comments: 19
Views: 16881

Re: two questions - PasswordCracking - JavaScriptDoS-ing

First of all, not DoS-ing, it's DDoS-ing. There is actually a difference. Your browser will most likely cache that page so it won't do a thing. Plus, even if it did send tons of requests Humm, plain wrong. Once his code executes, the location is changed, and the script is gone. He will actually per...
by BhaaL
on Sun Jul 26, 2009 3:05 pm
 
Forum: Programming
Topic: two questions - PasswordCracking - JavaScriptDoS-ing
Comments: 10
Views: 8813

Re: First program

In particular, none. While int, char, float etc are types that hold values, void can be seen as type that is...well...void. The whole main() thing is just a defined entry point, so that the OS knows what to call when executing your app. You can use either int main() or int main(int argc, char **argv...
by BhaaL
on Sun Jul 26, 2009 3:30 am
 
Forum: C and C++
Topic: First program
Comments: 19
Views: 16881

Re: First program

It's print f ormatted, not print function. Try to avoid giving biased hints to newcomers that still don't know their way around, unless you give a good reason to do so. cout might lack the sophisticated formatting specifiers printf has, but it is simply the-C++-way. Plus, I doubt he knows about form...
by BhaaL
on Fri Jul 24, 2009 11:54 am
 
Forum: C and C++
Topic: First program
Comments: 19
Views: 16881

Re: First program

The best way to start is IMO to look for things you need. Small tools, medium sized helper applications, and soon after that larger programs that will do major tasks. Think of a goal, look up ways to achieve it, and just get into it. Trial and Error is a good way to learn things (especially learn of...
by BhaaL
on Thu Jul 23, 2009 11:02 am
 
Forum: C and C++
Topic: First program
Comments: 19
Views: 16881

Re: Stego 10

You might want to read that page about the cipher again, it seems you misunderstood something.
by BhaaL
on Sun Jul 19, 2009 6:02 am
 
Forum: Steganography
Topic: Stego 10
Comments: 63
Views: 166565

Re: Programming 2

xen wrote:with my program this picture: http://img195.imageshack.us/i/permprog2.png/

comes out as: "ti91ahoz"


W7YDUMOD21.

Check your morse tables, or whatever you use for morse-to-ascii conversion.
by BhaaL
on Thu Jul 09, 2009 6:00 pm
 
Forum: Programming
Topic: Programming 2
Comments: 17
Views: 15648

Re: Stego 12

The hint is plenty of information if you know where to look at.
by BhaaL
on Fri Jun 26, 2009 9:20 am
 
Forum: Steganography
Topic: Stego 12
Comments: 7
Views: 43025
PreviousNext

Return to advanced search