Hi
As so many people think that there is a problem with my approach, then I think I would try to change it. Anyway, thanks for your advice.
Regards
Jackson
Type: Posts; User: jackson6612
Hi
As so many people think that there is a problem with my approach, then I think I would try to change it. Anyway, thanks for your advice.
Regards
Jackson
Thank you, AdrewHunter, rmatze.
@AndrewHunter: I do not intend to say that your intention was not to help me and do not wish to offend you. But referring someone to tutorials on very query is not...
Hi
Please help me with the code given below. I'm getting the errors alsp given at the bottom. The code also have two embedded questions. Please help me with them too. Thank you for your help.
...
Thank you, King Mir.
Please help me with some follow-on queries. Thanks.
I see that you used the word "public", what does it do? How would it differ if it were "private" instead?
You have...
Thanks a lot, Jim.
I'm going to learn classes and objects. Could anyone of you please translate the corrected code below into the one which uses concept of classes and objects? It would be kind of...
Hi
This code was working fine until I made some changes to it. Now it doesn't display the name. Below is given output for the student #1, you can see it doesn't display the entered name. It leaves...
Thank you, GReaper, grumpy.
GReaper said:
I'm sorry but I don't understand the red part. In my code I didn't call "Student read()" inside the "prnt()". Anyway, by this:
void prnt (const...
Thanks a lot, Elysia, King Mir, whiteflags.
@Elysia: I haven't read anything about vectors so I don't know how to use them.
What's the benefit of const'ing the data type Student?
void prnt...
Hi
I understand that object file is created before the executable. But why is object file called so? Why not simply, say, pre-executable file? What does the word "Object" signify? Please let me...
Hi :)
I have the compiled and run the code given below. I'm interested to know what changes you would like to make like changes in syntax, formatting of the code, etc? Please let me know.
...
Hi
Here is the screenshot of library file of MinGW compiler: http://img850.imageshack.us/img850/8098/mingwlibrary.jpg
Would you please tell me which of these files is for math related...
Thank you.
Hi :)
Please help me with queries below.
1: I understand that OOP is not a language rather it's a tool to better organization of data. It is said before most languages were procedural -...
I think I need to rephrase my question.
Is there a particular term to refer to the feature of C++ which requires one to define something before using it? For example, one cannot use a variable...
Thank you, Elysia.
Is there a particular term to refer to the feature of C++ which requires one to define something before using it? Please let me know. Thanks.
Regards
Jackson
Thank you, Elysia.
So, a macro (or, pre-processor directive) would be accessible from anywhere in the code. But still I have to define (or, write it) before using it. Correct?
I'm not an...
Thanks a lot.
I understand one shouldn't use #define for simple comstants as Elysia suggests. Anyway, won't it be a good idea to place the "#define pi 3.142" outside the main()?
Best wishes...
Thank you, whiteflags.
So, anything which follows "#" or hash sign is called preprocessor directive? One example is use of #include with header files.
I'm extremely sorry, Light. It works for me now. Actually this is what happened. In your first post in this thread you told me to use:
#define pi 3.142. I thought you just missed the semicolon at...
No, it didn't fix it; I mean changing float to double. I still get the same error about line #17: 17|error: invalid type argument of 'unary *'|
Someone please help me. Thanks.
Once again, thanks.
I replaced the line "#define pi = 3.142" with "#define pi 3.142" as you suggested. But I still get one error about the line #17. What's still wrong? Would you please give it a...
Thank you, Light.
Please also help me with this one. I remember when I started posting here people would tell me that my code isn't properly organized, like braces are not aligned etc.
By the...
Hi :)
My elementary programming skills which I acquired not long ago are very much rusty these days. I was practicing with the code below but I received those two errors about the line at #17 in...
Thank you, all of you.
I think when I wrote that code I was simply proving to myself that I could also use '|' instead of "|" to the same effect. I usually do this just to teach myself.
Thank you, AndrewHunter, laserlight.
Isn't a header file a kind of signal that one is going to certain library functions? e.g. When one uses the header <cmath> it signals that math library...