Search Results

Showing results 1 to 40 of 89
Search took 0.01 seconds.
Search: Posts Made By: frrossk ; Forum: C++ and child forums
Forum: C++ Jun 22nd, 2005
Replies: 6
Views: 6,314
Posted By frrossk
Portability, first...
Forum: C++ May 31st, 2005
Replies: 2
Views: 4,373
Posted By frrossk
int remove (const char *filename)
It's a C function for removing a file, declared in stdio.h.
Forum: C++ May 24th, 2005
Replies: 10
Views: 4,307
Posted By frrossk
Z_rand=rand()%ZzZz_percents;
...........................................
if_perf_div=Z_rand%(100/Z_rand);

What if Z_rand == 0 ?
Forum: C++ Feb 28th, 2005
Replies: 6
Views: 4,229
Posted By frrossk
If you want to create cross-platform GUI applications, try something like wxWidgets (http://www.wxwindows.org/) .
Forum: C++ Feb 28th, 2005
Replies: 6
Views: 4,229
Posted By frrossk
1. Yes
2. Yes
3. Assuming 1 and 2, go to Windows API; there are some other ways too.
4. No.
Forum: C++ Feb 24th, 2005
Replies: 10
Views: 2,755
Posted By frrossk
Since your code is so small, you should post it between code tags (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3) , not to attach the file.
using namespace std; must be...
Forum: C++ Feb 24th, 2005
Replies: 2
Views: 2,691
Posted By frrossk
missy\assign3.cpp: error C0001: missing code tags (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3)
Forum: C++ Feb 24th, 2005
Replies: 2
Views: 3,895
Posted By frrossk
Visual C++ is an IDE, it's not a language... But C++ is...
Forum: C++ Feb 23rd, 2005
Replies: 2
Views: 13,487
Posted By frrossk
Use code tags (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3)
Forum: C++ Feb 23rd, 2005
Replies: 4
Solved: c++ homework
Views: 5,656
Posted By frrossk
Don't use void main; it's always int

while(name != "end");
{
..........

The while statements never ends with a semicolon.
You are comparing in fact 2 strings (or char arrays); for this, you...
Forum: C++ Feb 22nd, 2005
Replies: 2
Views: 3,935
Posted By frrossk
char choice=' ';//one char

If I enter sqrt, does this fit into one char?
Never use void main; it's always int.
Forum: C++ Feb 18th, 2005
Replies: 9
Views: 10,841
Posted By frrossk
Forum: C++ Feb 18th, 2005
Replies: 1
Views: 1,712
Posted By frrossk
1. Don't post twice the same question.
2. You should have posted the code (it's not so big)
3. Some errors (not compiler, but logical errors):

if (plan == 'A')
{
BASE_PRICEA;
...
Forum: C++ Feb 16th, 2005
Replies: 6
Views: 6,553
Posted By frrossk
As your code is so small, you should post it betwen code tags (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3).
Some errors I noticed:
- at the end of include...
Forum: C++ Feb 11th, 2005
Replies: 14
Views: 7,624
Posted By frrossk
Instead of

if (hours_worked > 0 , hours_worked < 40)

you need

if (hours_worked <= 40)

because you reach this statement only if hours_worked > 0 (tested in the while loop)
The...
Forum: C++ Feb 7th, 2005
Replies: 9
Views: 7,272
Posted By frrossk
Forum: C++ Feb 7th, 2005
Replies: 4
Views: 2,646
Posted By frrossk
Maybe this will help you: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=532
Forum: C++ Feb 4th, 2005
Replies: 8
Views: 2,387
Posted By frrossk
Read this (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2) first.
Forum: C++ Feb 4th, 2005
Replies: 14
Views: 7,624
Posted By frrossk
Yes, I know I was missing somethig :cheesy: Thx, vegaseat :D
Forum: C++ Feb 4th, 2005
Replies: 14
Views: 7,624
Posted By frrossk
If you want your program to run more than once (the while loop), you should put

cout << "\nInput hours worked(0 to quit):";
cin >> hours_worked;

inside the loop:

do
{
cout << "\nInput...
Forum: C++ Feb 3rd, 2005
Replies: 2
Views: 2,376
Posted By frrossk
Try typing ./file1
Read this (http://forums.devshed.com/t224514/s.html) .
Forum: C++ Feb 1st, 2005
Replies: 2
Views: 4,127
Posted By frrossk
Use code (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3) tags.
Forum: C++ Feb 1st, 2005
Replies: 2
Views: 6,495
Posted By frrossk
Read this:
http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3
Forum: C++ Jan 31st, 2005
Replies: 16
Views: 32,825
Posted By frrossk
>>Is there any way to graphics in windows
Learn Windows API.
Forum: C++ Jan 31st, 2005
Replies: 16
Views: 32,825
Posted By frrossk
Jwenting says:
"graphics.h is a very old library for doing graphics in DOS with Borland C++ 3.x.
It's not supported under Windows, and the compiler isn't supported either."

I guess you are using...
Forum: C++ Jan 25th, 2005
Replies: 3
Views: 15,134
Posted By frrossk
First you have to know the format of a bitmap file. Read this: http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html
Forum: C++ Jan 25th, 2005
Replies: 12
Views: 57,543
Posted By frrossk
Did you tested it? I really doubt about that...
Forum: C++ Jan 24th, 2005
Replies: 4
Views: 3,388
Posted By frrossk
Every linux distribution comes with gcc compiler.
For compiling with gcc at the command line, read http://www.faqs.org/docs/ldev/0130091154_81.htm
If you want an IDE, there is Kdevelop, also...
Forum: C++ Jan 19th, 2005
Replies: 5
Views: 1,833
Posted By frrossk
You're forgetting using namespace std; after #include
Forum: C++ Jan 18th, 2005
Replies: 5
Views: 2,244
Posted By frrossk
>>Could you tell the best method of learining programming
Sure... read a lot, and write a lot of code, too...
Forum: C++ Jan 18th, 2005
Replies: 11
Views: 3,835
Posted By frrossk
>>#include <iostream.h>
First it's about C++, not DevC++...
<iostream.h> is deprecated; use <iostream> instead; this implies using namespace std; right after include headers section.
...
Forum: C++ Jan 7th, 2005
Replies: 15
Views: 11,743
Posted By frrossk
I see... For switch see jwenting's post.
For comparing strings, use strcmp not ==
Forum: C++ Jan 7th, 2005
Replies: 15
Views: 11,743
Posted By frrossk
Forum: C++ Jan 5th, 2005
Replies: 47
Views: 158,642
Posted By frrossk
Open file, read a line, if this line contains "The" substring - that's a record you want, get to the next line, if again... until end of file. Simple, right?
Forum: C++ Jan 5th, 2005
Replies: 6
Views: 3,299
Posted By frrossk
It looks like you missed the Dave's post...
Why did you switch to void main() ?
Forum: C++ Jan 5th, 2005
Replies: 5
Views: 3,078
Posted By frrossk
This doesn't sound much like C++ :)
Forum: C++ Jan 4th, 2005
Replies: 19
Views: 6,505
Posted By frrossk
Sorry, my bad, I wasn't paying attention.
Forum: C++ Jan 4th, 2005
Replies: 5
Views: 1,912
Posted By frrossk
Sure it will...with your help :cheesy:
Forum: C++ Jan 4th, 2005
Replies: 5
Views: 1,912
Posted By frrossk
Add to the end of the program, just before the closing bracket

getchar ();


Aha...C++...
It should be something like

...
using namespace std;
Forum: C++ Jan 4th, 2005
Replies: 19
Views: 6,505
Posted By frrossk
First, use [ code ] [/ code ] tags (not <code>)

>>int ptr[n];
Don't declare an array with undefined dimention.
Showing results 1 to 40 of 89

 


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

©2003 - 2009 DaniWeb® LLC