Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ correction

Name: Anonymous 2009-11-28 12:16

Hi /prog/

http://pastebin.com/meb2ac2d

Line 45, part of find_idea_id().

I want to give 'it' a default value, null pointer. It won't compile, can't understand how it should be typed differently.

Help me out :3

Name: Anonymous 2009-11-28 14:02

Alright, another question:

A functions returns unsigned long int&

unsigned long int& function()
{
...

return 0;
}

result: error: invalid initialization of non-const reference of type ‘long unsigned int&’ from a temporary of type ‘int’

lol, help plz.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List