Search Results

Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: AcidG3rm5
Forum: C++ Nov 29th, 2008
Replies: 3
Views: 259
Posted By AcidG3rm5
oppss. realize i didn't quote the whole program. Anyway, before i wrote the displayGame(myGame) had tested the program and it works.
I have found where the error lies which is preventing the...
Forum: C++ Nov 29th, 2008
Replies: 3
Views: 259
Posted By AcidG3rm5
Hi all. I was writing my program. And halfway through, i tried to compile and run. but got a blank output.

I tried doing a cout<<"hello"<<endl at the main() must still didn't get any display....
Forum: C Nov 26th, 2008
Replies: 4
Views: 1,515
Posted By AcidG3rm5
I've tried using fgets to read whole line.

However, it only reads the first line and end from there. Did i forget to put a loop or something?
Forum: C Nov 26th, 2008
Replies: 4
Views: 1,515
Posted By AcidG3rm5
I have the following in a text file

How old are you?:I am 1 year old.

Basically, the ":" is the delimiter. "How old are you?" is the question and "I am 1 year old" is what i will reply when i...
Forum: Shell Scripting Nov 24th, 2008
Replies: 1
Views: 884
Posted By AcidG3rm5
I have the following information in the text file:
1:boot
2:book
3:booze
4:machine
5:boots
6:bungie
7:bark
8:aardvark
9:broken$tuff
Forum: C++ Nov 23rd, 2008
Replies: 2
Views: 1,452
Posted By AcidG3rm5
i've read about that. actualyl am trying to get getline(a,b,';').

Any moderators around? Can help to shift this thread to c instead? Realised that i posted in the wrong section as i'm doing this...
Forum: C++ Nov 23rd, 2008
Replies: 2
Views: 1,452
Posted By AcidG3rm5
I am developing an interactive client and server system which can response to a typical Human's Interaction. This program is run in unix enviornment.

There's a Q&A text file stored, in this...
Forum: C++ Nov 13th, 2008
Replies: 6
Views: 1,056
Posted By AcidG3rm5
btw..if it helps. i only included these in my program.


#include <iostream>
#include <string.h>
using namespace std;
Forum: C++ Nov 13th, 2008
Replies: 6
Views: 1,056
Posted By AcidG3rm5
i have tried putting void getDate(int&, string& ,int&);

am still getting a compilation error. any other solution ?

error message is prototype for `void Date::getDate(int&, std::string&, int&)...
Forum: C++ Nov 12th, 2008
Replies: 7
Views: 428
Posted By AcidG3rm5
can you try this...


if(devisor==true)
{
cout << i << "is a devisor" << endl;
}
Forum: C++ Nov 12th, 2008
Replies: 6
Views: 1,056
Posted By AcidG3rm5
class Date
{
public : Date();
void getDate(int,string,int);

private : int day;
string mth;
int year;

};//end class
Forum: C++ Nov 12th, 2008
Replies: 3
Views: 2,044
Posted By AcidG3rm5
thanks for the tips. Still new to c++. Will be trying to improve my codes. :>
Forum: C++ Nov 12th, 2008
Replies: 3
Views: 2,044
Posted By AcidG3rm5
//checks for leap year
bool checkLeapYr(int year)
{
bool isLeap;
if ((year%4=0) && (year %100!=0) || (year%400=0)) //error here. Non-Ivalue assignment
{
isLeap=true;
return...
Forum: C++ Nov 9th, 2008
Replies: 4
Views: 353
Posted By AcidG3rm5
Thanks for the help. i made a reference variable to myDate and it worked.
Forum: C++ Nov 9th, 2008
Replies: 4
Views: 353
Posted By AcidG3rm5
#include <iostream>
#include <string.h>
using namespace std;

class Date
{
public : Date();
void setDate(int,string,int);
void printDate();
Forum: C++ Oct 18th, 2008
Replies: 0
Views: 784
Posted By AcidG3rm5
Hi guys. I'm doing a programming, whereby I have to display a prompt of my own on the linux terminal. Example commandprompt>.

The program will then wait for user's input, example "ls -ali | more"...
Showing results 1 to 16 of 16

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC