Search:

Type: Posts; User: Achillles

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,086

    Counter Heap Sort

    Hey I have this code and it counts 2 but i think it should count more then that see what you guys think


    #include <stdlib.h>
    #include <stdio.h>
    #define num_items 75

    int heapSort(int...
  2. Replies
    4
    Views
    1,711

    ok here is what i have and it works see if it...

    ok here is what i have and it works see if it works for you guys and yes i know that it wont compute irrational numbers.


    #include <iostream.h>
    int eval(char A[], int n)
    {
    if(n == 1)
    ...
  3. Replies
    4
    Views
    1,711

    Simple Calculator

    Hello all it's been a couple of weeks but wuts up ?? well anyway here is my problem... I have a program that i need to read from a string a set of number for ex.(1*2-3/4) i want the string to work...
  4. Thread: Matrix 2

    by Achillles
    Replies
    1
    Views
    754

    Matrix 2

    OK I got it to rotate but there is one problem for example it does this:
    123
    456
    789
    this is not the 2 dimensional array i'm working with keep that in mind... I'm just using it for an...
  5. Thread: Matrix

    by Achillles
    Replies
    4
    Views
    1,020

    Well i didn't get it to work i want to use 4 for...

    Well i didn't get it to work i want to use 4 for loops.. that makes it simple enough... and i was told that using 4 for loops would be the best option also here is my second question.. how could i...
  6. Thread: Matrix

    by Achillles
    Replies
    4
    Views
    1,020

    Matrix

    Ok heres my problem i need to take a matrix like these below and rotate the numbers.... How might i do this ?? i figure the code would have 4 for loops and each one would change the row and cololum...
  7. Replies
    12
    Views
    2,139

    Cpp1.cpp(28) : error C2679: binary '>>' : no...

    Cpp1.cpp(28) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (
    ...
  8. Replies
    12
    Views
    2,139

    didn't do nothing i got 14 errors in borland

    didn't do nothing i got 14 errors in borland
  9. Replies
    12
    Views
    2,139

    Ok here is the code so far #include...

    Ok here is the code so far


    #include <iostream.h>
    #include <fstream.h>
    #include "tstring.h"


    class WordCount
    {
  10. Replies
    12
    Views
    2,139

    ok that does nothing

    ok that does nothing
  11. Replies
    12
    Views
    2,139

    Word Count PlS HELP

    ok here is my code and the txt file contians
    the dog goes bark
    the cat goes meow

    i would like to count the words but i have no clue how ??? can anyone help ??? i know i should know how to do...
  12. Replies
    9
    Views
    4,553

    Ok this is what i have so far int...

    Ok this is what i have so far


    int WordCount::CountWords()
    {
    count = ' ';
    while(infile >> word)
    {

    count++;
  13. Replies
    9
    Views
    4,553

    Hey thanks guys that works now i just need to get...

    Hey thanks guys that works now i just need to get the program to count the words in the file. Cool Thanks elad
    and everyone for your help. How should I go about the counting of the words ?? should...
  14. Replies
    9
    Views
    4,553

    tstring.h allows me to use the String...

    tstring.h allows me to use the String indentifier...
  15. Replies
    9
    Views
    4,553

    Word Counting

    Hello all this is my first post here :-). I'm having trouble in a C++ program that I'm trying to write i have a text file with two lines in it that i've made up here are the following two lines.
    ...
Results 1 to 15 of 15