Search:

Type: Posts; User: ariella

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,337

    A'right thanks to you all.!

    A'right thanks to you all.!
  2. Replies
    4
    Views
    1,337

    I didnt understand, can you write the code you...

    I didnt understand, can you write the code you meant instead of my line 17?
  3. Replies
    4
    Views
    1,337

    Cant figure out what's wrong with my code..

    I have an assignment:


    e.g
    Valid word: yyxyyxzxz
    Invalid word: xyxyxz

    Here is the code I wrote:
  4. Replies
    9
    Views
    26,990

    True. Thanks.

    True. Thanks.
  5. Replies
    10
    Views
    1,884

    Final code: #include using...

    Final code:



    #include <iostream>
    using namespace std;
    const int SIZE=5;

    void order (int arr[SIZE][SIZE])
    {
  6. Replies
    9
    Views
    1,011

    Thanks alot! That worked: #include...

    Thanks alot!
    That worked:


    #include <stdio.h>


    int single (int arr[], int size)
    {
    int count[512]={0}; //Looking for single value.
  7. Replies
    9
    Views
    1,011

    Here is my full new code: #include...

    Here is my full new code:



    #include <stdio.h>


    int maxValue (int arr[], int size)
    {
    int max_value=arr[0];
  8. Replies
    9
    Views
    1,011

    Thanks alot! Now what about a case I have a wide...

    Thanks alot!
    Now what about a case I have a wide range of numbers?
    Can I make a loop to find the highest number and then define count[max_value]={0};
    and run it?

    like this:
    (purple for changed...
  9. Replies
    9
    Views
    1,011

    I changed it this way: int single (int...

    I changed it this way:


    int single (int arr[], int size)
    {
    bool couple=false;
    for (int i=0, k=0;i<size;i++, k++)
    {
    couple=false;
    for (int j=1+k;j<size;j++)
  10. Replies
    9
    Views
    26,990

    corrected: (line 46) if (s[ind3] == 'i'...

    corrected:
    (line 46)


    if (s[ind3] == 'i' && ind3==length-2 && s[ind3+1] == 'l' && ind3+1 ==length-1) return 1;
    else return 0;
  11. Replies
    9
    Views
    26,990

    It has to end with 'il'. Here I corrected it: ...

    It has to end with 'il'.
    Here I corrected it:


    int isValid (char s[])
    {
    int length=strlen(s), ind1=0, ind2=0, ind3=0;


    if ( (s[0]<'a') || (s[0]>'z') ) return 0;
  12. Replies
    9
    Views
    26,990

    2. forgot about s[0] thanks. 3. on line 50 Im...

    2. forgot about s[0] thanks.
    3. on line 50 Im checking I and L

    4. lines 38-47: dot before il checked:


    for (int k=ind2;k<length;k++)
    {
    if (s[k]=='.')
    {
  13. Replies
    9
    Views
    26,990

    Valid Email address check.

    Hi, now I have to write a code which would determine whether
    an Email address is valid or not.

    In my exercise a valid address should look like this :
    ___@___.___.il (___ for any letters)
    ...
  14. Replies
    4
    Views
    2,653

    Okay toda :) Saw you are from Rashlatz, Im from...

    Okay toda :)
    Saw you are from Rashlatz, Im from Jerusalem :)
  15. Replies
    9
    Views
    1,011

    Simple 'Search-in-array' code question.

    I wrote a code which checks if there are any single numbers in an
    array.

    e.g.

    In the next array there is a single number - "3"


    4
    1
  16. Replies
    10
    Views
    1,884

    Thanks guys, I improved my code :)

    Thanks guys, I improved my code :)
  17. Replies
    4
    Views
    2,653

    Oh I'm sorry, didnt know that. I'm using C, why...

    Oh I'm sorry, didnt know that.
    I'm using C, why should I stop using cout?
  18. Replies
    4
    Views
    2,653

    Simple valid/invalid function problem.

    Hi,
    I have to write a code which would determine either a URL address
    is correct or not.

    Now, a valid address should look like: "www.something.something.uk".
    It has to have 3 dots, 3 w-s in the...
  19. Replies
    10
    Views
    1,884

    Yup that was it. Thank you very much! :)

    Yup that was it.
    Thank you very much! :)
  20. Replies
    10
    Views
    1,884

    Problem with matrix function.

    I have to convert a matrix like in the following image:

    12814

    The code I wrote doesn't work:



    #include <iostream>
    using namespace std;
Results 1 to 20 of 20