| | |
cout is too slow
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Thanks. I didnt think to use a matrix like that, so that i dont have to reference every solution individually, i can reference by number (which is sortof what i was looking for to begin with). I wouldn't need getSolution as a function, would I? Since it would only be called once in the program (or atleast only typed once)? Unless it has something to do with static? What does static do? Is it possible to return an array in a function, or only its pointer? And I still would like to know (even though i have no immediate need now) if its possible to store an array with {1,3,6,2....} while not initialising it. Tell me if i'm wrong, but i think i've noticed that you can use either an array or a pointer as an argument (they'd be used differently in the function, of course), and then you can pass either an array or a pointer and it will convert it according to the argument type.
•
•
•
•
Originally Posted by LieAfterLie
Thanks. I didnt think to use a matrix like that, so that i dont have to reference every solution individually, i can reference by number (which is sortof what i was looking for to begin with). I wouldn't need getSolution as a function, would I? Since it would only be called once in the program (or atleast only typed once)?
•
•
•
•
Originally Posted by LieAfterLie
Unless it has something to do with static?
•
•
•
•
Originally Posted by LieAfterLie
What does static do?
•
•
•
•
Originally Posted by LieAfterLie
Is it possible to return an array in a function, or only its pointer?
•
•
•
•
Originally Posted by LieAfterLie
And I still would like to know (even though i have no immediate need now) if its possible to store an array with {1,3,6,2....} while not initialising it.
![]() |
Similar Threads
- Internet Explorer Running SLOW (Web Browsers)
- C++ cout statement (C++)
- This site going very very slow (DaniWeb Community Feedback)
- ASP slow-down server script (ASP)
Other Threads in the C++ Forum
- Previous Thread: mid-chapter exercise inquiry - compile 2 files @ once?
- Next Thread: constructor with an array as an argument
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez graph homeworkhelp iamthwee ifstream input int java lib library lines list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg search simple sorting spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






