No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I'm trying to convert a String that I've read from the first line of a text file to integer this is how: String="8 12 10" and this is what I'd like to have: int x=8 int y=12 int z=10 parseInt doesn't work because it gives me some other number (perhaps … |
|
I have this code here: it uses text files and hash tables to keep some student records: can somebody help me with the 'FindEntry' Method, i don't really get why it doesn't work.... [CODE] public class HashTable { public static class StudentRecord implements Serializable { public String name,family; public int … |
|
hi everyone Im working on a program that includes hash tables and files. What i'm doing is that I save the information (Name, Student ID, Address, Phone No.) of some students in a text file. I use a hash table to work on the students' information. Things like showing the … |
|
HI all Can anyone help me with this algorithm (I ned to write the code in java)......The java code would also be helpful [B]Describe a recursive algorithm for enumerating all permutations of the numbers {1,2,...,n}. [/B] I'd appriciate it if somebody could explain this problem to me and give me … |
|
Hi all The program i'm trying to write is meant to take a series of HTML codes as input and check to see if the all the tags in that code are matched or not (it should basically check all the opening tags and see if they have been closed) … |
|
I'm trying to write a program in java...it's actually the famous game of "Knight's Tour" - I guess you're all familiar with it- just for a brief explanation what I have to do is to get from the user the row and the coloumn of the square on the board … |
|
hey all; is there a conversion from "char" to "int" or to "double" possible ? If yes, how? and if not, how do we work with numbers that have more than 32 digits, for instance a 500 digit number? thanks |
|
Re:
Hi, I am sure you have all seen the recursive factorial program. [code] int factorial(int number) { int temp; if(number <= 1) return 1; temp = number * factorial(number - 1); return temp; } [/code] " Once at 1, the values are returned to the previous factorial call and multiplied … |
|
hi, does anyone know if there is a code in c++ that allows print on paper instead of monitor? i mean instread of using [B]'cout<<'[/B] to see what you want on monitor, use a code to print your info on paper.......cheers |
|
i've created a linked list which stores some info about documents such as code,title,creator,filename,... i've also stored some info about some other documents in a *.txt file i've got a search function in my program that gets a code from the user and tries to find that code either in … |
|
hi i have an n*n page (n is a power of 2) with an empty place in it, and i want to fill in this sqaure with right trominos (a tromino has an 'L' shape) i want to show the empty spaces with zeros and the ones filled with trominos … |
|
i'm writing a program that reverses the first 600 characters of a bitmap picture (it basically swaps character 0 with char 599, 1 with 598 and ......) This is what i've written so far but it's not working [code] #include <iostream.h> #include <fstream.h> #include<conio.h> int main() { char c1,c2; int … |
|
i want to write an object oriented program using classes and sequential files there is a store which keeps record of its customers' info in a file: customer code char6 customer name char30 total cost of products bought so far long int owe long int date of last purchase char8 … |
|
i'm trying to write a program that reads a text from the user(keyboard) sentence by sentence and then prints the 'morse code' of them char bay char on a text file. I'm just testing it for the letter 'c' to start with, but it doesn't seem to be working well … |
|
i have text file with a series of words in it. some word contain the expression '.zip' , i'm trying to rerad the characters of the file and replace the .'zip' with '.rar' this is my prog, bu it's not responding [code=cplusplus] #include <iostream.h> #include <fstream.h> #include<stdlib.h> #include<conio.h> void main() … |
|
i'm trying to write a program that reads a text from the user(keyboard) sentence by sentence and then prints the 'morse code' of them char bay char on a text file. I'm just testing it for the letter 'c' to start with, but it doesn't seem to be working well … |
|
hey evryone; I've created a matrix class (called fmatrix), and im facin a problem with one of the functions: read()......i cannot fill the matrix through keyboard as an input device and keep getting this error: error C2679: binary '>>' : no operator defined which takes a right-hand operand of type … |