No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi guys. I would like to ask several questions about this. Im on my final phase of the proj, will appreciate some information. Qn 1: How do i make the user continually input till he types 'exit' to exit? Qn 2: If he types wrongly, or database couldnt find the … |
|
hello, i want to parse a file that has the following log entries [code] 1183245991.961 0.079 137.157.56.34 200 1277 GET http://linux.pacific.net.au/linux/packman/suse/10.2/repodata/repomd.xml "text/xml" 1183327698.250 2.568 137.157.56.212 200 57891 GET http://csc3-2004-crl.verisign.com/CSC3-2004.crl "application/pkix-crl" 1183328737.107 0.570 137.157.56.223 301 777 GET http://www.starnet.com/expiredialog/demo.php?product_name=xwin32&time_remain=1800&version=8.0.2216&locale=en_AU&w32iso639ulang=en&uuid={dfe167ce-f51c-4fd4-af80-25f31246f6bc} "text/html" 1183328737.908 0.781 137.157.56.139 200 5696 GET http://www.starnet.com/expiredialog/demo.php/xwin32/1800?version=8.0.2216&locale=en_AU&w32iso639ulang=en&uuid=%7bdfe167ce-f51c-4fd4-af80-25f31246f6bc%7d "text/html" 1183328738.777 0.759 137.157.56.91 200 … |
|
Hi guys, i currently want to replace all spaces into another(or 2) special character, and vice versa. e.g (replacing spaces with 'xx' character and vice versa). Another way would be removing all spaces completely. Is there any method i can use to accomplish that? [code] #include <iostream> #include <vector> #include … |
|
hi guys, im currently working on playfair cipher. However i got a serious problem in implementing it on certain conditions You can find background information here [url]http://en.wikipedia.org/wiki/Playfair_cipher[/url]. The problem im facing is that when Playfair cipher decrypts by bigrams and encounters the same character e.g 'ee', my program adds a … |
|
Hello, would like to ask about this problem im facing. [code] #include <cstdlib> #include <iostream> #include <fstream> #include <ios> #include <string> #include <string.h> #include <vector> #include <sstream> #include <algorithm> #define MAX_MSG 30 using namespace std; vector<UserInit> ReadUsersInitial() { fstream file ("Users_initial.txt"); FILE *file1 = fopen("Users_initial.txt", "r"); string tempFile; if (file.good()) … |
|
Hi all, I have some problems with my program, as it always compiles with segmentation fault after it run finishes. ANy help is appreciated [code] Program received signal SIGSEGV, Segmentation fault. 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0x00375d37 in ?? () from /lib/tls/i686/cmov/libc.so.6 #1 0x0804992b in Chord::isValid(char*) … |
|
Hello guys im been tasked to do a series of complex functions. so far im able to complete addition, subtraction and multiplication, but currently stuck at division. Would appreciate any kind soul help on this [code] class Complex { public: Complex( double r, double i ) : re(r), im(i) {} … |
|
Hi guys, im having problems verifying date. My exact problem is that even if user inputs an incorrect condition, the system still stores it into the class. My question is, where do i put the conditions so that the error gets printed AND the user gets to reinput that value … |
|
Hi guys, i just written a simple program which requires some date verification. However im facing some trouble with the input Problem 1: if the input has more than 8 chars, garbage characters gets printed Problem 2: if input contains invalid values(like negative), error gets printed Problem 3: if input … |
|
Hi guys, this program is suppose to ask user input for up to 10 book titles and date published using classes. However im having trouble with a certain part of the output. My coding as follows [code] #include <iostream> #include <string> #include <sstream> using namespace std; class bookInput { private: … |
|
hi guys, am currently coding a multi threaded program to solve a maze. But firstly im having trouble saving the maze into 2d array. Any help is much appreciated [CODE] #include <stdlib.h> #include <iostream> #include <stdio.h> #include <fstream> using namespace std; void getMaze() { fstream readMaze("mazedata.txt"); string templine, line; while(getline(readMaze, … |
|
Hi guys, im experimenting with vector functions, but are unable to come up with anythin constructive. basically i have this file that contains information. sorta like a friends list. I need to store in an array, and i decided to use vectors for this. Any help please? data.txt [code] <div … |
|
hi guys, I found this code on the web but unable to integrate it into my code, can any1 help?. The problem is, it doesnt read till the eof, instead it stops when the condition is erroneously made. [code] #declare Line_Char_Buffer_Size 4000 #declare INPUT_FILE_NAME "Countries.txt" void readData () { FILE … |
|
Hi guys, am currently creating a client/server program. However im having trouble reading from a text file. Im not sure whether fgets or fread is better in my case. Basically my program requires user to input a country, and the program will display its details out.My question is, what method … |
|
Hi guys, i compiled a program but i have this vague error message that occured. Searching through google.com states that it might be due to many problems such as invalid pointers, etc, etc. Im a fairly new person to C prog, so i would like to seek your advise on … |