Search:

Type: Posts; User: aromash

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    8,677

    web programming

    I was wondering if anyone can recommend a good book on web development. thanks, in advance
  2. Thread: compile error

    by aromash
    Replies
    1
    Views
    801

    nevermind, i figured it out. sorry for the...

    nevermind, i figured it out. sorry for the inconvenience
  3. Thread: compile error

    by aromash
    Replies
    1
    Views
    801

    compile error

    I'm having trouble trying to figure out what the compile error is for my program. When i compile my program [it's a class by the way] i get this message:


    g++ Date.cpp driver.cpp
    Date.cpp: In...
  4. Thread: magic square

    by aromash
    Replies
    1
    Views
    1,463

    magic square

    Good morning,
    I'm having trouble trying to debug my magic square program. Here is my code:



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

    using namespace std;
  5. Thread: syntax errors

    by aromash
    Replies
    8
    Views
    1,143

    can you show me an example of delete? do I always...

    can you show me an example of delete? do I always need to delete when an anonymous variable is looped?
  6. Thread: syntax errors

    by aromash
    Replies
    8
    Views
    1,143

    syntax errors

    Hello,
    I'm having a problem with with code. Here is my code


    #include <stdio.h>
    #include <iostream>
    #include namespace std

    main()
    {
  7. Thread: count bit loop

    by aromash
    Replies
    2
    Views
    1,442

    count bit loop

    Good morning,

    I am given the hamming distance algorithm in C which is


    int returnDistance(int x, int y)
    {
    unsigned dist = 0;
    unsigned val = x ^ y;
  8. Thread: explanation

    by aromash
    Replies
    3
    Views
    829

    thank you!

    thank you!
  9. Thread: toUpper

    by aromash
    Replies
    12
    Views
    1,593

    The problem is that it's returning a value for...

    The problem is that it's returning a value for all sorts of characters. Here's another sample run:


    Enter character: _
    Uppercase = ?

    the decimal for '_' underscore is 95
    the decimal for...
  10. Thread: explanation

    by aromash
    Replies
    3
    Views
    829

    explanation

    for this program, I prompt the use to enter a string. after the string is executed, the program will then execute to convert all lowercase letters into upper case.


    #include<stdio.h>
    #include...
  11. Thread: toUpper

    by aromash
    Replies
    12
    Views
    1,593

    Tried that as well. Same result :/

    Tried that as well. Same result :/
  12. Thread: toUpper

    by aromash
    Replies
    12
    Views
    1,593

    toUpper

    Morning,

    with this program, I prompt the user to enter a character and if it is a lower case letter, it would return its uppercase value.

    Here is my code:

    int toUpper(int x);

    main()
    {
  13. Replies
    2
    Views
    6,915

    those numbers are just arbitrarily chosen numbers...

    those numbers are just arbitrarily chosen numbers just to prove a point. I'll try that formula out, thanks!
  14. Replies
    2
    Views
    6,915

    Generating a random real number

    I was wondering how to generate a random REAL number within an array.

    I always generate an error with this equation

    n = 20.2 + rand() % 33.3

    due to the fact, I believe, that the modulus...
  15. Replies
    7
    Views
    1,044

    figured it out...thanks guys!

    figured it out...thanks guys!
  16. Replies
    7
    Views
    1,044

    Possible off by 1 error

    So i'm assigned to enter a list of real numbers and to enter -1 if I want to end the list. After that I must find the average of the numbers entered. Here is my code:



    main()
    {
    float num,...
  17. Replies
    6
    Views
    939

    i'm using windows xp 32-bit

    i'm using windows xp 32-bit
  18. Replies
    6
    Views
    939

    I'm using one that's provided by my school, but...

    I'm using one that's provided by my school, but you need to be logged onto their network to use it and it's mildy troublesome at times due to the lag it bring. I'm trying pelles C right now, but I'm...
  19. Replies
    6
    Views
    939

    C compiler suggestions

    Hey,
    I was wondering if anyone would recommend me a good compiler for C. Something simple for execution and whatnot.

    Thanks in advance
  20. Thread: Pointers

    by aromash
    Replies
    4
    Views
    904

    Pointers

    Does anyone have a website that shows several examples on how pointers are used especially when used in function prototypes?

    Thank you in advance
  21. Thread: Same birthday

    by aromash
    Replies
    18
    Views
    4,140

    I have another approach to this: main() ...

    I have another approach to this:


    main()

    initialize guest
    initialize party

    create loop for party
    call int party(int n) function //n being number of guests
  22. Thread: Same birthday

    by aromash
    Replies
    18
    Views
    4,140

    int bDays[Guests] doesn't work. I need a...

    int bDays[Guests] doesn't work. I need a constant. Maybe 366 will work lemme give it a shot
  23. Thread: Same birthday

    by aromash
    Replies
    18
    Views
    4,140

    it's telling me that I don't have enough...

    it's telling me that I don't have enough privilege to access private messaging
  24. Thread: Same birthday

    by aromash
    Replies
    18
    Views
    4,140

    Edit: Sorry, I'm only able to input what I've...

    Edit: Sorry, I'm only able to input what I've learned so far and I have yet to learn qsort :(.

    I've also haven't learned this:


    birthdays = malloc(sizeof(int)*guests);


    get input guests...
  25. Thread: Same birthday

    by aromash
    Replies
    18
    Views
    4,140

    So I did a sample run of 30 guests & 10000...

    So I did a sample run of 30 guests & 10000 parties.




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

    int party(int n, int p);
Results 1 to 25 of 34
Page 1 of 2 1 2