Thread: Help , please !

  1. #1
    Registered User Haibara's Avatar
    Join Date
    Feb 2015
    Posts
    5

    Help , please !

    Hello , everyone !
    I was wondering if it is possible to make
    A C++ program that takes some values of 2 variables from the user
    And gives a graph of the relation between them both ?!
    If yes , I want to know how !
    If no , is there any other programming language that would help me create such a program ?!
    I just need something to start with.
    Thanks in advance

  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Yes it is possible. What type of graph are you looking to make? Sounds like you need to familiarize yourself with the C++ programming language. A good starting point is our C++ tutorial.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  3. #3
    Registered User Haibara's Avatar
    Join Date
    Feb 2015
    Posts
    5
    Quote Originally Posted by AndrewHunter View Post
    Yes it is possible. What type of graph are you looking to make? Sounds like you need to familiarize yourself with the C++ programming language. A good starting point is our C++ tutorial.
    Something like what is shown in the image !
    It is actually an assignment for " Electrical Circuits " , we were asked to create a program !
    C++ , I started learning it ,, but I'm not aware of all of its uses yet !
    http://www.physics.udel.edu/~watson/...s/LC-graph.gif

  4. #4
    Registered User
    Join Date
    May 2014
    Posts
    121
    Were you asked to create it in C++? It sounds like a pretty pointless exercise for a course like that to be honest. In real life you would just use a program like Matlab or similar if you wanted to plot something. Plotting with Wolfram Alpha: Wolfram|Alpha Examples: Plotting & Graphics

  5. #5
    Registered User Haibara's Avatar
    Join Date
    Feb 2015
    Posts
    5
    Quote Originally Posted by MOS-6581 View Post
    Were you asked to create it in C++? It sounds like a pretty pointless exercise for a course like that to be honest. In real life you would just use a program like Matlab or similar if you wanted to plot something. Plotting with Wolfram Alpha: Wolfram|Alpha Examples: Plotting & Graphics
    No , I was asked to create it with any programming language
    But I said C++ , since I know it !
    that's the thing , I could simply use matlab or something
    but he wants codes , he wants a program from point zero.

  6. #6
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Well if you are not familiar with C++, I would not attempt this project using it. I would have to suggest something like MATLAB as well. Or VB.NET with a chart control would work as well.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  7. #7
    Registered User
    Join Date
    May 2014
    Posts
    121
    Why on earth would you be asked to do something like this in a course about electrical circuits?

  8. #8
    Registered User Haibara's Avatar
    Join Date
    Feb 2015
    Posts
    5
    Quote Originally Posted by AndrewHunter View Post
    Well if you are not familiar with C++, I would not attempt this project using it. I would have to suggest something like MATLAB as well. Or VB.NET with a chart control would work as well.
    I'm familiar with C++
    It would be better than any of the other programming languages , since I know its basics

  9. #9
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Haibara View Post
    I'm familiar with C++
    It would be better than any of the other programming languages , since I know its basics
    Based on your initial question, no you are not familiar with C++. Go with VB.NET if you need to make a "program from scratch". If not use MATLAB. This will save you a lot of frustration in the long run.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  10. #10
    Registered User Haibara's Avatar
    Join Date
    Feb 2015
    Posts
    5
    Quote Originally Posted by MOS-6581 View Post
    Why on earth would you be asked to do something like this in a course about electrical circuits?
    Hahahahaha , that's a good question
    I'm a first year electrical engineering student !
    And here , we study generals in this year and will specialize in one department next year .
    so , I'm actually studying subjects from three different electrical departments .. And maybe the prof. of the electrical circuits is
    trying to make use of the programming course we're taking !
    however , I think it's pointless too.

Popular pages Recent additions subscribe to a feed

Tags for this Thread