Cecilman

Members
  • Content Count

    11
  • Joined

  • Last visited

    Never

About Cecilman

  • Rank
    Member

Profile Information

  • Gender
    Not Telling
  1. I have been dabbling in C++ and am enjoying it, your videos were most helpful. I would like to learn as many languages as I can, without confusing myself of course. As far as C# goes, what kind of functions is it best suited for? Is it best for games or applications on windows or is it universal? I am curious because I was thinking of making it (or Python or java) my second language. Thanks for your reply :).
  2. So I was thinking along the line of more calculators in C++. I wanted to code a square root generator here the user inputs a number (float) and the computer gives the square root of that number. Unfortunately I cannot seem to find a single equation or algorithm that is universal to calculating the square root of any number, so this could wind up causing me to write many many lines of code and at my level that will be very tricky indeed especially seeing as I am no genius at maths. Does anyone know of such an equation? In the mean time I will continue playing with IF statements to try and create a prime number generator, basically just a program that when run lists every prime number up to the millions. :D Dunno if this is really as simple as I think it is but who knows.
  3. Cecilman

    Hello. Need Help

    This looks like fun actually, I am currently playing with a prime number generator and a square root calculator but once I have those and I move onto arrays and loops I might be in a better spot to help you out. You can add me on skype if you like, cecilman_69, and see how it all pans out :D.
  4. Is C# really that easy? or is it better to first have a grasp with some of the more basic forms of code such as C or C++?
  5. Python hurts my brain :D. I hope you find your answer soon and I wish I could be of more help. However I did notice that you mentioned (complete noob) in the title, do you mean you are new to Python or coding altogether? because from what I have read and understand Python is a fairly advanced language and it is best to start with a solid foundation of C++, C#, or java to get a flavor for noticing the tiny little errors in syntax that computers like to throw wobblies over. I wish you luck in your developing endevours! :D
  6. Hi there, hoping Kevin or another advanced code dev will see this and might be able to help me. I enjoyed the calculator program, it was something different without being too hard. The only issue for me is that I still don't feel ready to be playing with strings and arrays just yet and was wondering if there were any other "text book" basic programs on the same level as the calculator? I could probably sit here and keep writing the calculator in slightly different ways but I don't really get much out of repeating something over and over. I want to move onto strings and arrays but until I can be sure that all of the other basics are lodged firmly n my brain I will begin making more and more mistakes. I know mistakes are there to be learned from but when you are looking at a jumble of words it can be rather depressing lol. (for me anyway) I haven't checked the blog yet, I will shortly so if there is anything there in particular you think I should have a dabble at before moving on, to solidify my grasp of the basics, I would gladly prioritize them. Thanking you in advance.
  7. I am not 100% sure if it is necessary but to me it looks as though you are missing the return 0; before your final '}' I recall Kevin saying in one of his earlier videos that leaving this out can cause compiler issues. I am new to this too, but this is all I can pick up. Here is mine, it is different from the one Kevin made in his video but it works smoothly and with no errors. The differences were deliberate so that I had to actually think about each step, it also helped me with troubleshooting any errors by forcing me to re-read the area around the error and try and identify it without anything else to work from. It is now firmly lodged within my memory. #include <cstdlib> #include <iostream> using namespace std; float Add(float n1, float n2); float Sub(float n1, float n2); float Mult(float n1, float n2); float Div(float n1, float n2); int main() { float n1; float n2; int sel; cout << "Welcome to Leslie's Calculator!\nSelect one of the following functions:\n 1. Addition\n 2. Subtraction\n 3. Multiplication\n 4. Division\n Use the number corresponding to your selection: "; cin >> sel; if(sel==1) { cout << "\nYou have selected the addition function.\n please select the first number to add: "; cin >> n1; cout << " please select the second number to add: "; cin >> n2; cout << "The answer is equal to " << Add(n1,n2) << endl << endl; } else { if(sel==2) { cout << "\nYou have selected the subtraction function.\n please select the number to subtract from: "; cin >> n1; cout << " please select the number to subtract: "; cin >> n2; cout << "The answer is equal to " << Sub(n1,n2) << endl << endl; } else { if(sel==3) { cout << "\nYou have selected the multiplication function.\n please select the number to be multiplied: "; cin >> n1; cout << " please select the factor: "; cin >> n2; cout << "The answer is equal to " << Mult(n1,n2) << endl << endl; } else { if(sel==4) { cout << "\nYou have selected the diviion function.\n please select the number to divide: "; cin >> n1; cout << " please select the number to divide by: "; cin >> n2; if(n2==0) { cout << "Only Chuck Norris may divide by zero.\n"; } else { cout << "The answer is equal to " << Div(n1,n2) << endl << endl; } } else { cout << "\nYou must select a funcion using the numbers 1 to 4." << endl << endl; } } } } system("PAUSE"); return 0; } float Add(float n1, float n2) { return n1 + n2; } float Sub(float n1, float n2) { return n1 - n2; } float Mult(float n1, float n2) { return n1 * n2; } float Div(float n1, float n2) { return n1 / n2; }
  8. do you mean with using strings? I remember that if you #include <string> you should be able to set something up like int main() { string = x cout << "Hello! What is your name?" << endl; cin >> x; cout << "Hello " << x << endl; } I am still on messing with if statements so I may be way off but I hope it leans toward the right answer :3
  9. Cecilman

    Hello. Need Help

    I wish I could help you, I am not there yet myself but I am sure someone here will be able to help you with this. I actually have a lot of free time and expect to be learning rather rapidly so maybe soon (in a week or so) we could help each other to work on this sort of thing?
  10. I look forward to reading this, I have seen your videos and find them most helpful.
  11. Cecilman

    Hello!

    Hi there! I am new here, came here from Kevin's YouTube videos and thought the more the merrier :D. I am actually already part of a coding and general IT forum but the videos helped me get a basic understanding of C++ that I thought it would simply be the courteous thing to do as a sign of respect to jump on board here. It doesn't look too busy yet but maybe that will change as it looks like a lot of people here are keen on growing their knowledge in coding. I myself have only recently picked up C++ and am still playing with if statements and such, trying to get my head around all the things they can be made to do. I can't wait to get into using strings and arrays and especially loops. As I said before I am new to the coding world but if anyone has any questions and I happen to know the answer I would be more than happy to answer them for you, or maybe we could figure it out together; all part of the learning curve! :D.