Search:

Type: Posts; User: dvsumosize

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    2,496

    look up the modulus command, you can do a FOR...

    look up the modulus command, you can do a FOR LOOP instead if you don't want to do modulus, having that loop going from 1 to 1/2 of the number you are checking for.

    Basically to check to see if it...
  2. Replies
    11
    Views
    1,740

    alright, thank you. Also do you have any links...

    alright, thank you. Also do you have any links that are a good guide on overloading?
  3. Replies
    11
    Views
    1,740

    i just realized what you are saying Sorry,...

    i just realized what you are saying

    Sorry, latenight brain fail.



    COverload Me;

    cout << "\n\t The Numbers Are " << Me.Add(3,4);
  4. Replies
    11
    Views
    1,740

    Well i am returning a cout which isn't really a...

    Well i am returning a cout which isn't really a string right?

    but when i returned Hide on its own, nothing had appeared.

    i thought hide would output because i'm calling the Add method in my...
  5. Replies
    11
    Views
    1,740

    my bad, its late and i wasn't thinking about that...

    my bad, its late and i wasn't thinking about that haha, thanks.
    ____________________________________________________________________________________________


    return cout << "\t\t The value is...
  6. Replies
    11
    Views
    1,740

    my library is #include ...

    my library is



    #include <iostream>
    #include <iomanip>
    #include <cstdlib>
    #include <cmath>
    #include <string>
    #include <cstring>
  7. Replies
    11
    Views
    1,740

    Converting double to a string.

    I want to put a double to a string and output that string, but i can't figure out how to do it.



    string Add(double A, double B)
    {
    double C,D,X;
    string Hide;
    Hide = "";
    if( B > 0)
  8. Replies
    8
    Views
    5,617

    so i basically got my case ones down using logic...

    so i basically got my case ones down
    using logic and newton method



    void Roots(double a, int b)
    {
    double x,d = 10;
    int c;
  9. Replies
    8
    Views
    5,617

    I looked up the newtons method and it works for...

    I looked up the newtons method and it works for when you know the root and you can make switch for it, which was what i was doing at first. But i can't do it for an unknown fractional root i.e....
  10. Replies
    8
    Views
    5,617

    i can't use pow or sqrt or the like, defeats the...

    i can't use pow or sqrt or the like, defeats the purpose.

    i'm trying to do it using only for loops and if commands.

    Also why doesn't it return a thing for 2?
  11. Replies
    8
    Views
    5,617

    Finding root of a number

    So i'm trying to write a program that finds the root of a number without formulas i.e. sqrt(x).

    so far i have come up with


    void Roots(double a, int b)
    {
    double x;

    switch(b)
  12. Replies
    2
    Views
    930

    Wow...i fail... Yeah sorry for wasting your time...

    Wow...i fail... Yeah sorry for wasting your time on something so simple. Thanks
  13. Replies
    2
    Views
    930

    Loss of data with trig function

    So I can't figure out how to change my result into an exact decimal.



    #include <cmath>
    #include <iostream>
    #include <cstdlib>
    #include <iomanip>

    #define Pi double(3.14159)
  14. Replies
    0
    Views
    2,846

    background ascii color

    so im making a periodic table of elements and im outlining each box wiht ascii codes, but it has a back background and makes my code look ........ty, is there any way to make the background...
  15. Replies
    6
    Views
    946

    W8 I JUST HAD A THOUGHT, sparked teeny teeny bit...

    W8 I JUST HAD A THOUGHT, sparked teeny teeny bit by tabstop. What if i find area from 0 to negative and hten area from 0 to other x interecept thats in positive. do you think that will work? but...
  16. Replies
    6
    Views
    946

    dude i know what it looks like, i just dont know...

    dude i know what it looks like, i just dont know how to code it for one minusing hte other. For like the other thread where i did the parabola area at x=4, it does it from 0 to 4. The first x...
  17. Replies
    6
    Views
    946

    im not in calculus right now, and i have to do a...

    im not in calculus right now, and i have to do a program similar to the other recent thread i posted. im so stumped on how to input it and such.
  18. Replies
    6
    Views
    946

    im hoping someone will get this

    im like racking my brains. we have a project and we have to find the area inbetween parabolas y=x^2 and y = (-1)*(x-1)^2 +4 and must use N number of slices inbetween to get near perfect ammount. I...
  19. ty vm

    ty vm
  20. i keep on getting an error and its driving me insane

    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    int main()
    {
    double k,A,B,W,NumberOfSlices,Width,y,Area,Sum;

    NumberOfSlices = 1200000.0;
    A = 10.0;
  21. Replies
    4
    Views
    3,722

    YAY ALLS I NEEDED NOW WAS TO PUT SUM * 4 AND ADD...

    YAY ALLS I NEEDED NOW WAS TO PUT SUM * 4 AND ADD SOME 000 ONTO THE # OF SLICES AND YEs! wow im such an idiot for not realize it sooner. thankk you so much
  22. Replies
    4
    Views
    3,722

    w8 think i figured it out., removing the + area...

    w8 think i figured it out., removing the + area part on area =
  23. Replies
    4
    Views
    3,722

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    int main()
    {
    double k,A,B,W,NumberOfSlices,Width,y,Area,Sum;

    NumberOfSlices = 11.0;
    Area = 0.0;
  24. Replies
    4
    Views
    3,722

    finding area of ellipse

    so here is my code




    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>

    int main()
Results 1 to 24 of 25