Search Results

Showing results 1 to 40 of 52
Search took 0.01 seconds.
Search: Posts Made By: hashinclude
Forum: MySQL Jul 22nd, 2009
Replies: 8
Views: 587
Posted By hashinclude
sorry for the late reply....
although your code didn't quite work.. it did direct me to the right way in solving my problem so thanks you my friend :).

problem solved.
added to your rep. :)
Forum: MySQL Jul 21st, 2009
Replies: 8
Views: 587
Posted By hashinclude
Forum: MySQL Jul 21st, 2009
Replies: 8
Views: 587
Posted By hashinclude
Thank you for replying. let me explain with an example :)
let's say i have this table: (check attachment please)
i want to get a count for example like this :
CASE1:

OR CASE2:


in the first...
Forum: MySQL Jul 21st, 2009
Replies: 8
Views: 587
Posted By hashinclude
Hello,

please bear with me if this question is stupid.
I'm fairly new to this and i really need to know. is it possible to use "SELECT COUNT" to get the number of DIFFERENT values one column...
Forum: C++ Jan 22nd, 2008
Replies: 9
Views: 957
Posted By hashinclude
thanks
i checked the link dragon posted , but still if i output to more than one line , how do i return to the first line ?
the "\r" character would only take me to the beginning of the current...
Forum: C++ Jan 21st, 2008
Replies: 9
Views: 957
Posted By hashinclude
what would the "\b" character do?
Forum: C++ Jan 20th, 2008
Replies: 9
Views: 957
Posted By hashinclude
Hi,

is it possible to control the output so that one output would replace the one before it ?

let me explain, i made a countdown timer, the counting instance is printed out but normally i would...
Forum: C++ Jan 15th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
well actually i am using it for password input
Forum: C++ Jan 15th, 2008
Replies: 4
Views: 1,242
Posted By hashinclude
i would access the windows registry and get the username
Forum: C++ Jan 15th, 2008
Replies: 3
Views: 649
Posted By hashinclude
i don't know if it will help but you could try this:


int seconds=time (NULL);
string characters;
char seconds1[128];
itoa(seconds,seconds1,10);
string...
Forum: C++ Jan 14th, 2008
Replies: 4
Views: 1,608
Posted By hashinclude
does the std::noskipws make the >> operator ignore the rest of the whitespaces? because i dont want it to or i would have used getline instead.
Forum: C++ Jan 14th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
i compiled it with dev-c++ and the resulting exe file worked on the other machine
Forum: C++ Jan 14th, 2008
Replies: 4
Views: 1,608
Posted By hashinclude
HI,

if i have something like this

char string[16];
std::cin>>string;

and i type something and press "Enter" then std::cinwould terminate, how do i get it to terminate when my first key...
Forum: C++ Jan 14th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
i compiled the same code with dev-c++ and the exe file worked without giving me that error, but i still need to find out why its not working when compiled in visual c++ 2005 express edition
Forum: C++ Jan 13th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
when i take out the conio.h , it works without copying the manifest file but even when i had conio.h included , the manifest file didnt help
Forum: C++ Jan 13th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
i copied a file with the extension "manifest" , but it didn't help , in my code , if i don't include "conio.h" , i stop getting the error , so the "conio" header file is causing this ?
Forum: C++ Jan 13th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
indeed i was building in debug mode , i changed that and built in release mode but that didn't change anything and i still got the error
Forum: C++ Jan 13th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
the other computer's OS is the same and i must use getch()
Forum: C++ Jan 13th, 2008
Replies: 16
Views: 7,149
Posted By hashinclude
Hello everyone,

i have the following code

#include <iostream>
#include <conio.h>
using namespace std;

int main()
{
Forum: C++ Jan 6th, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
Forum: C++ Jan 6th, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
i have a question iamthewee,

why use if ( pos > -1 ) and not if ( pos != 0 ) ?
Forum: C++ Jan 5th, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
thanks iamthwee , your solution is not crappy at all its good , it does find the error line and that is exactly what i want it to do :)

thank you so much :)
Forum: C++ Jan 4th, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
ok check my post#36 , some character is added by system() to each line , the first line is supposed to be an empty line, but it contains that character, maybe if we strip that character out of each...
Forum: C++ Jan 4th, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
ok dragon change this statement if(strcmp(error,str)==0 || counter==24) to this if(strcmp(error,str)==0 && counter==24)

the reasen you got that output is because at least the counter condition was...
Forum: C++ Jan 3rd, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
i did try it with the code before the last one i posted , it did not work
Forum: C++ Jan 3rd, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
i am also using VC++ 2008 and it did not work for me , something strange i have noticed
here is a new code i used for the same file (or system() output)

char str[500];int i=0;...
Forum: C++ Jan 3rd, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
im not good with reading hex, but checking the code i posted you can see that both line do match and still the strcmp() wont detect it
Forum: C++ Jan 3rd, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
the txt file is created by this command system("ipconfig>output.txt");
and the string that i wanna look for and is called error is declared here char error[]="Windows IP Configuration";

so this...
Forum: C++ Jan 3rd, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
check the parameters being compared in this statement If strcmp(error,str) == 0 !!!!
if the condition is true then str EQUALS error and therefore error is found NOT AN ERROR IS FOUND !!
read the...
Forum: C++ Jan 2nd, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
thanks but i don't think you know what kind of a problem i have because your answer does not relate to it
Forum: C++ Jan 1st, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
ok here is something i have tried :


char str[500];
char error[]="Windows IP Configuration"; //error string to find
system("ipconfig>output.txt");
fstream file("output.txt",ios::in);
...
Forum: C++ Jan 1st, 2008
Replies: 45
Views: 6,206
Posted By hashinclude
although they look identical in notepad , i believe like you said, a space or tab character is added somewhere on each line by the system() function.
i tried removing spaces from the line created by...
Forum: C++ Dec 31st, 2007
Replies: 45
Views: 6,206
Posted By hashinclude
Forum: C++ Dec 26th, 2007
Replies: 11
Views: 1,652
Posted By hashinclude
sorry my code was wrong
try this

string A;
int B;
B=atoi(A.c_str());
Forum: C++ Dec 26th, 2007
Replies: 11
Views: 1,652
Posted By hashinclude
i think you use the atoi function for that

string a;
int b;
b=atoi(a);
Forum: C++ Dec 26th, 2007
Replies: 45
Views: 6,206
Posted By hashinclude
hi dragon, sorry for the late reply

here's my code


char str[5000];
system("mycommand>output.exe");
char error[]="the error line to be checked";
fstream...
Forum: C++ Dec 25th, 2007
Replies: 45
Views: 6,206
Posted By hashinclude
thanks dragon but i tried comparing the strings with a strcmp() function and it won't work

this is what happens, if the txt file was created by the running program this way...
Forum: C++ Dec 17th, 2007
Replies: 45
Views: 6,206
Posted By hashinclude
int main()
{

char str[5000];
char errorline[]="grab this text";
system("command>output.txt");
fstream file_op("output.txt",ios::in);
while(!file_op.eof())
...
Forum: C++ Dec 17th, 2007
Replies: 45
Views: 6,206
Posted By hashinclude
in that case can anyone point me to where there is a very detailed tutorial on how to use ifstream ?
Forum: C++ Dec 17th, 2007
Replies: 45
Views: 6,206
Posted By hashinclude
i did look hard enough to find and use the getline() method , and i was able to read the whole txt file, but i didn't know where to go or what to do after that, how to lookup a sentence by searching...
Showing results 1 to 40 of 52

 


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

©2003 - 2009 DaniWeb® LLC