Forum: C++ Jun 22nd, 2005 |
| Replies: 6 Views: 6,314 |
Forum: C++ May 31st, 2005 |
| Replies: 2 Views: 4,373 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 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 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 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 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 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 Visual C++ is an IDE, it's not a language... But C++ is... |
Forum: C++ Feb 23rd, 2005 |
| Replies: 2 Views: 13,487 Use code tags (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3) |
Forum: C++ Feb 23rd, 2005 |
| Replies: 4 Views: 5,656 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 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 It's not a little late for this? |
Forum: C++ Feb 18th, 2005 |
| Replies: 1 Views: 1,712 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 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 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 |
Forum: C++ Feb 7th, 2005 |
| Replies: 4 Views: 2,646 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 Read this (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=2) first. |
Forum: C++ Feb 4th, 2005 |
| Replies: 14 Views: 7,624 Yes, I know I was missing somethig :cheesy: Thx, vegaseat :D |
Forum: C++ Feb 4th, 2005 |
| Replies: 14 Views: 7,624 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 Try typing ./file1
Read this (http://forums.devshed.com/t224514/s.html) . |
Forum: C++ Feb 1st, 2005 |
| Replies: 2 Views: 4,127 Use code (http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3) tags. |
Forum: C++ Feb 1st, 2005 |
| Replies: 2 Views: 6,495 Read this:
http://www.daniweb.com/techtalkforums/announcement.php?f=8&announcementid=3 |
Forum: C++ Jan 31st, 2005 |
| Replies: 16 Views: 32,825 >>Is there any way to graphics in windows
Learn Windows API. |
Forum: C++ Jan 31st, 2005 |
| Replies: 16 Views: 32,825 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 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 Did you tested it? I really doubt about that... |
Forum: C++ Jan 24th, 2005 |
| Replies: 4 Views: 3,388 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 You're forgetting using namespace std; after #include |
Forum: C++ Jan 18th, 2005 |
| Replies: 5 Views: 2,244 >>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 >>#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 I see... For switch see jwenting's post.
For comparing strings, use strcmp not == |
Forum: C++ Jan 7th, 2005 |
| Replies: 15 Views: 11,743 |
Forum: C++ Jan 5th, 2005 |
| Replies: 47 Views: 158,642 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 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 This doesn't sound much like C++ :) |
Forum: C++ Jan 4th, 2005 |
| Replies: 19 Views: 6,505 Sorry, my bad, I wasn't paying attention. |
Forum: C++ Jan 4th, 2005 |
| Replies: 5 Views: 1,912 Sure it will...with your help :cheesy: |
Forum: C++ Jan 4th, 2005 |
| Replies: 5 Views: 1,912 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 First, use [ code ] [/ code ] tags (not <code>)
>>int ptr[n];
Don't declare an array with undefined dimention. |