Ok thanks, would it be better to sort the text file or call a function to do it?
Type: Posts; User: cdonlan
Ok thanks, would it be better to sort the text file or call a function to do it?
I cannot get this anagram program to work. Does anyone have any ideas. It finds the words in the dictionary,but i doesnt find any anagrams. Does any see a bug. Ive looked at this thing for like 6...
Im trying to get a list of words off a text file into an iterator. I tried using the copy function from fstream but i havent had any luck.
#include<iostream>
#include <fstream>...
Regardless of where I call the initialize function it will still get an error in the function. I need throw it in the operator function.
Cause then you would reinitialize it everytime you used that operator.
I understand that, but how to I prevent having to initialize each element.
Well,l im working on an exercise using exception handling. So I want it to be a fixed size so I can cause it to have a run-time error.
Hey guys ive created an overload bracket operator. For some reason I had to create an initialize function to set the array value. After it is set, the overloaded operator works fine. I would like to...
Hi guys
Im trying to overload the [] operator so I can read and write into an object.
Ex.
Arrray_class <int> age;
age["Bob"]=30;
Hello everyone,
Im trying to scan in an several chars from the console using cin. The format will be one char sperated by a space. I want to put them in an array of chars. I dont want to have...
any ideas people?
Hey guys im working with a program that does manipulations to simple images( in PPM format). Im trying to crops an image by a rectangle thats (x1,y1),(x2,y2). The image is 38 by 39, but I started...
OK, that makes since. I dont know what I was thinking.
Again everyone thanks for the quick reply
Hey guys Im having a probelm with my algorithm . Im trying to copy data from a asci ppm file(which is just a text file really) into a 2-d array of structs. The order it should go in is...
Hi guys
Im having some problem calling a member function in my main.cpp file. The class is in a header file and the member function itself is located in an addational cpp file. Im getting a linker...
Hey guys Im wanting to change the execution command for a little c++ game ive made. Is there a way to change a.out to the title of the game?
Hey guys im writing a program that uses a speadsheet like map. I want to check when the person goes off the map but i dont know how to compare 2D arrays like I did 1Ds
I would do this...
if...
thanks
Hi guys, im having a segmentation fault in my program coming from an atoi.
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int num;
You the man Kleid-O! :)
So I have decided to put down the ms c++ and go linux for my first program this semester. It went well, got the hang of emacs,g++, and gtb. I was thinking "Hey , I can deal with this stuff. No need...
Thanks a lot guys
For some reason it does not like the strrev function. I included all the header files.
If I only need bases 3 ,5,7, and 9. And the largest the number could go up to is 1,000,000 I could cut out a lot of that stuff In the 10 to b-base function.
Im trying to convert a number to a different base. Does anyone know what library has the converter in it.
Thanks