On a recent quiz i got a question wrong but am unsure of it..
The problem passed an array to a function by value, without a reference (&), incremented the values by 1, then returned the array. If an array does not have a reference, does it still pass by reference?
void foo(int Arr[], int s)
{
for(int I=0; I<s; I++)
Arr[I]=Arr[I]+1
}
int a[5]={0,1,2,3,4};...
User Profile
Collapse
-
ya, i've heard that about c++, and have decided to keep going with it. What books would anyone suggest using next? codeguru.com people mainly thought the meyers effective c++ books, but I was also looking into game programming c++ books, such as
http://www.amazon.com/Game-Programming-C%2B%2B-Finish-Development/dp/1584504323/sr=1-1/qid=1165855767/ref=pd_bbs_sr_1/102-1384854-1040120?ie=UTF8 &s=books
opinions? -
My hangman program used mainly if/then/cout statements, so the problem is this book didn't really explain a real world use for the code. What sort of program (for my independent study class) should I try with a basic 21 Days knowledge of C++? Also, I was looking into possible going into other languages and not go too in depth with C++, probably more visual or web-based such as PHP, do you guys think I should try something else to see if that fancies...Leave a comment:
-
Nice, thanks. I'm on cprogramming.co m a fair amount, I don't know how I missed those....Leave a comment:
-
I am now done the book for the most part, just reviewing unclear sections. I made a hangman program a month or so ago, but now my teacher would like another program using basic c++ knowledge, after my 3 week book, any suggestions?Leave a comment:
-
is this an unreasonable thing to do? is that the reason for no responses?Leave a comment:
-
-
Making text scroll out
This seems easy, but I am having trouble anyways. How can I make text appear letter by letter and scroll out using c++? I am working on a program, but just to add some flare i would like to do this instead of just cout<<xxx. I think printf() should be used, but do not know. Thanks, -Brad -
What does printf do?
i have a question: what does printf do? i have seen it a lot, but cannot find a clear description of what it does. in my learn c++ in 21 days book, it states that it will not teach it in the book. thanks, -Brad -
examples?
Hello, I just purchased Sam's Teach Yourself C++ in 21 days book for my independent study, and was wondernig if anyone had examples of beginner programs that could be made after such a book was completed? TIA, -Brad -
Someone help this guy out. Not to steal your idea, but being even more of a noob myself, i would like to try to understand this too.Leave a comment:
-
in addition, i plan on doing a semester course of independent study (about 4 months). what would be a logical goal for what i will be able to do by then? I need to fill out a form saying what i will have accomplished by then, so what is logical by then? thanks, -BradLeave a comment:
-
Starting
Hello, I am starting a C and C++ study at my school, what is a good program/book to get me started? thanks.
No activity results to display
Show More
Leave a comment: