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...
Type: Posts; User: Achillles
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...
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)
...
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...
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...
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...
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...
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> >' (
...
didn't do nothing i got 14 errors in borland
Ok here is the code so far
#include <iostream.h>
#include <fstream.h>
#include "tstring.h"
class WordCount
{
ok that does nothing
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...
Ok this is what i have so far
int WordCount::CountWords()
{
count = ' ';
while(infile >> word)
{
count++;
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...
tstring.h allows me to use the String indentifier...
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.
...