| | |
cout is too slow
![]() |
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
Views: 4479 | Replies: 23
| Thread Tools | Search this Thread |
Tag cloud for C++
6 algorithm array arrays assignment beginner binary c++ c++borland c/c++ calculator char class classes code compile compiler constructor conversion convert count delete dll dynamic encryption error file files filestream forms fstream function functions game givemetehcodez graph graphics gui homework iamthwee input int integer lazy link linker list loop loops map math matrix member memory network newbie number object objects opengl operator output parameter pointer pointers problem program programming project qt random read reading recursion recursive reference return server sort spoonfeeding string strings struct student studio template templates text time tree variable vc++ vector video visual win32 window windows winsock wxwidgets






