Search:

Type: Posts; User: sjcc

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: need an example

    by sjcc
    Replies
    4
    Views
    815

    #include #include using...

    #include <iostream>
    #include <vector>
    using namespace std;



    double average(const vector<double>& a);

    double median(const vector<double>& a);
  2. Thread: need an example

    by sjcc
    Replies
    4
    Views
    815

    need an example

    blah blah blah
  3. Can anyone show me examples of these two questions.

    One approach is to subscript the array in a loop over the elements of the array.




    The other approach is to use a combination of advancing the pointer ptr thru the array and dereferencing it.
  4. Replies
    3
    Views
    1,367

    what is wrong in my code?

    #include <stdio.h>

    //x is a global variable
    int x; //QUESTION A:

    /**
    The parseInt() function returns a 1 (one) if the C string parameter
    num_str is formatted as a valid integer, otherwise...
  5. Thread: need help.

    by sjcc
    Replies
    3
    Views
    1,536

    need help.

    /**
    Random walk problem statement:
    ------------------------------
    Simulate the walk of a drunkard in a square street grid. Begin with
    a simulated inebriated person in the middle of the grid. ...
  6. Replies
    33
    Views
    3,447

    #include int main () { int x; ...

    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;
    int power;
  7. Replies
    33
    Views
    3,447

    i do not believe so. it is just part of my...

    i do not believe so. it is just part of my assignments.
  8. Replies
    33
    Views
    3,447

    #include int main () { int x; ...

    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;
    int power;
  9. Replies
    33
    Views
    3,447

    do i still need the if statement? i was thinking...

    do i still need the if statement? i was thinking can't i just take the if statement and put it in the while statement?
  10. Replies
    33
    Views
    3,447

    so instead of a while (1), do i just leave the...

    so instead of a while (1), do i just leave the while there by it self or take it out also?
  11. Replies
    33
    Views
    3,447

    hmm it is still not working. i've tried i =...

    hmm it is still not working.

    i've tried

    i = power * x;
    and int i = power * x;

    any suggestions?
  12. Replies
    33
    Views
    3,447

    my compiler keeps telling me that int i= int...

    my compiler keeps telling me that int i= int power * x is wrong..
  13. Replies
    33
    Views
    3,447

    #include int main () { int x; ...

    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;


    scanf(" %d", &x);
    scanf(" %d", &y);
  14. Thread: help

    by sjcc
    Replies
    4
    Views
    1,326

    help

    Assuming a 17-bit integer, does the following statement result in overflow? Explain your answer.

    int x = 50210;

    how would i solve this or find an answer to this?
  15. Replies
    33
    Views
    3,447

    how would I do that increment for i? i =??

    how would I do that increment for i?
    i =??
  16. Replies
    33
    Views
    3,447

    thanks. Am i any closer to finish it now? ...

    thanks.

    Am i any closer to finish it now?


    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
  17. Replies
    33
    Views
    3,447

    #include int main () { int x; int...

    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;
    int power=1;

    scanf( "%d", &x);
    scanf( "%d", &y);
  18. Replies
    33
    Views
    3,447

    [code]#include int main () { int...

    [code]#include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;
    int power=1;

    scanf( "%d", &x);
    scanf( "%d", &y);
  19. Replies
    33
    Views
    3,447

    #include int main () { int x; int...

    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;
    power =1;
    scanf("%d", &x);
    scanf("%d", &y);
  20. Thread: help

    by sjcc
    Replies
    3
    Views
    1,030

    #include int maximum ( int x, int y,...

    #include<stdio.h>

    int maximum ( int x, int y, int z);

    int main(void)

    {
    int number1;
    int number2;
    int number3;
  21. Replies
    33
    Views
    3,447

    from step D is where i am starting to get lost.

    from step D is where i am starting to get lost.
  22. Replies
    33
    Views
    3,447

    I have gotten that far I believe. this is what...

    I have gotten that far I believe.

    this is what i have so far

    #include <stdio.h>
    int main ()
    {
    int x;
    int y;
    int i =1;
  23. Thread: help

    by sjcc
    Replies
    3
    Views
    1,030

    help

    Write a program in C++ that takes three int values interactively
    from the user and prints them in ascending order. with max and min
  24. Replies
    33
    Views
    3,447

    i am a bit lost with this one

    [chapter three]
    Write single C or C++ statements that do the following:

    a. Input integer variable x with scanf.
    b. Input integer variable y with scanf.
    c. Initialize integer variable i to 1....
  25. Replies
    5
    Views
    1,293

    Write a program in C++ that takes three int...

    Write a program in C++ that takes three int values interactively
    from the user and prints them in ascending order.
Results 1 to 25 of 32
Page 1 of 2 1 2