OK I shall not do that then. Thanks.
Type: Posts; User: ironfistchamp
OK I shall not do that then. Thanks.
No? What is wrong with that? Sorry must sound incredibly stupid but you don't learn if you dont ask.
Thanks makes more sense now.
Hi people
I got a C++ book and some of the example had multiple .cpp and .h files.
Can someone explain how that works as the book didnt explain very well. How can you have multiple cpp files? I...
Ah right now I understand it.
The main problem I actually have with ncurses and all that is the input and output. I suppose I can get my head round it but it took a while for me to get the hang of...
Right so whatever I can find for ncurses works for NDK.... so what is the point in NDK?
Remember people you are talking to a moron here ;)
No but seriously I do find this difficult to get my...
There doesn't seem to be any documentation other than namespace lists and the such like.
There is going to be no way I can use it without being taught how to one way or another. Do you know of...
Well if it is the same what is the point in NDK++. I am really confused. I don't understand the whole C and printf() way of printing variables and that.
I was exploring NCurses but it is used like C. Apparently there are C++ bindings but I cannot find any decent documentation for new users. Does anyone know of any or perhaps could help me get...
Ah good idea will do. If I was to put the struct in a header file that would be a good use for my own headers right?
Thanks again
Ironfistchamp
Wow thanks. OK I shall read more about headers. I looked for a tutorial here but couldn't see one dedicated to just headers. Is it included under a different name.
I really want to thank you for...
All I have is the main.cc and myfunc.h files. All the includes are in the main.cc file and the struct is defined right after that. The myfunc.h file only has the function we worked out before. Should...
Aha got ya. Ok new problem. I wanted to use my own header (want to get the hang of it and make my code more "modular"). So I put it in myfunc.h, put the #include "myfunc.h" at the top and went from...
Exceelent that's done the trick thanks. Does it matter having the struct outside main? I was told not to as it is like a variable and you should refrain from making global variables. True or not?
...
Hey again another question. How can I pass a struct to a function by reference.
int myfunction(*)
{
// will do stuff to struct
return 0;
Hehe thanks very much. I am sure you will be hearing a lot more from me with more obvious questions .
Thanks again
Ironfistchamp
Hi am trying to write a statement that checks a string using a while statment.
Basically while varA is not equal to "a" or "b" or "c" say "not a, b or c. try again"
Here is my first go.
...
Yup that works. Boy do I feel stupid.
Thanks
Ironfistchamp
I am quite new to programming and even newer to linux (does that make sense?). A while back I started to program in C++ and found it quite easy on linux. I just used the command
gcc hello.cpp...