Forum: C 1 Hour Ago |
| Replies: 4 Views: 49 Worked fine for me using vc++ 2008 express |
Forum: Windows Vista and Windows 7 1 Hour Ago |
| Replies: 5 Views: 85 Many games that run on XP will not run on Win7. So if you are a big gammer and like the games you are playing, then stick with XP. |
Forum: Windows Vista and Windows 7 1 Hour Ago |
| Replies: 17 Views: 177 I have HP OfficeJet All-In-One 6500. I just went to hp.com to find out if they have an updated program and it says |
Forum: C 1 Hour Ago |
| Replies: 4 Views: 49 >>while ((addr = ((void*(*)(void))addr)())
Didn't your compiler produce an error or warning on that line?? tryit() does not return a value, yet in the above addr is being assigned the return... |
Forum: C++ 1 Hour Ago |
| Replies: 3 Views: 68 line 61 in the code you posted: That function displays random/wrong values because it is using uninitialized variables. |
Forum: C++ 2 Hours Ago |
| Replies: 3 Views: 76 >>which c++ compiler is easy n best?
Those are two exclusive requests -- the best compiler/IDE is not necessarily the easiest to use. If you want ease of use then you will probably have to... |
Forum: Windows Vista and Windows 7 20 Hours Ago |
| Replies: 17 Views: 177 I have only seen a couple of incompatabilities -- one of my games that played ok on Vista Home will not play on Win7. Also, the other day I bought a blue-ray video that contained a file that I could... |
Forum: C++ 21 Hours Ago |
| Replies: 2 Views: 71 Yes, start out by opening the file and learning how to just read it. Just display the file contents on the screen.
After you get that going, you should be able to start reading the file contents... |
Forum: C++ 21 Hours Ago |
| Replies: 8 Views: 116 Why don't you solve them yourself? You won't learn anything by cheating. |
Forum: C++ 21 Hours Ago |
| Replies: 2 Views: 86 It returns gibberish because when that NextTag() returns the array radial is destroyed, which invalidates tags[1]. What you need to do is allocate memory for the text. Then main() will have to... |
Forum: C++ 21 Hours Ago |
| Replies: 2 Views: 74 If the item numbers are consecutive (no missing numbers) then you don't need to keep them in an array. Just use the array index of the text array as the item number. One way to do it is like this:... |
Forum: C 1 Day Ago |
| Replies: 1 Views: 85 >> line 20: fflush(stdin);
fflush() is only guaranteed to work with output streams, not input streams.
>> line 21: gets(p[i])
Two problems:
never ever use gets() because it may write... |
Forum: C 1 Day Ago |
| Replies: 2 Views: 97 Deposit $10,000.00 USD in my PayPal account and I will write one for you :) |
Forum: C++ 1 Day Ago |
| Replies: 4 Views: 119 Initialize the array by flooding it with all 0s. char title[10] = {0}; |
Forum: C++ 1 Day Ago |
| Replies: 1 Views: 90 lines 8 and 11 of the first code are using uninitialized variable ch |
Forum: C++ 1 Day Ago |
| Replies: 8 Views: 172 |
Forum: C++ 1 Day Ago |
| Replies: 1 Views: 149 1) Line 13 is wrong. It should use the == boolean operator, not the = assignment operator.
>>If not, specify a situiation in which this version will fail.
I can think of three kinds of data... |
Forum: C 1 Day Ago |
| Replies: 2 Views: 112 variable ptrA needs to have three stars
#define maxrows 2
#define maxcols 5
int main()
{
double a[maxrows][maxcols];
double ***ptrA = malloc(maxrows * sizeof(double*)); |
Forum: C++ 1 Day Ago |
| Replies: 2 Views: 88 You should not be using tabs but setw() method. Tabs may display differently on different computers/monitors. I think setw() will give you a consistent appearance. |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 101 If you are going to do this kind of advanced-level programming then you really need to learn how to debug your own errors. The problem is those two defines on lines 552 and 553. Delete them. |
Forum: C++ 2 Days Ago |
| Replies: 9 Views: 135 >>What should I use instead on void main()
int main() |
Forum: Geeks' Lounge 2 Days Ago |
| Replies: 41 Views: 1,003 Agree. But I don't think severs are what we are talking about. |
Forum: Geeks' Lounge 2 Days Ago |
| Replies: 8 Views: 146 Use this bandwidth test (http://www.bandwidthplace.com/) |
Forum: DaniWeb Community Feedback 2 Days Ago |
| Replies: 7 Views: 168 I noticed it was a little slow today but nothing like it has been in the past. |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 121 If you want the 2d vector to contains either strings or ints, then maybe you need to create a template class. |
Forum: C++ 2 Days Ago |
| Replies: 9 Views: 135 Look at line 42 as stated in the error message (line 32 of your post). Multi-line if statements have to be enclosed in { and } braces
if( something )
{
// blabla
}
else
{
// blabla
} |
Forum: C++ 2 Days Ago |
| Replies: 9 Views: 135 Post some of the compiler error messages.
>>void main()
NEVER EVER use void main() Here's why (http://www.gidnetwork.com/b-66.html) |
Forum: C 2 Days Ago |
| Replies: 2 Views: 108 There are options in VC++ to produce several kinds of assembly code from the C or C++ code. I don't use NetBeans but I would imagine it has an option too. |
Forum: C++ 2 Days Ago |
| Replies: 2 Views: 81 My guess is that you are using the wrong sql statement. If you are using Oracle then you need to read this article... |
Forum: C++ 3 Days Ago |
| Replies: 2 Views: 101 Read your textbook about how to write a c++ class. There are also millions of tutorials on the web you can read. Don't be so lazy and do a little research and reading. |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 181 1) Create another loop
int main()
{
while( true )
{
// blabla
}
} |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 181 Just as I suspected -- you can not include those two *.cpp files in main.cpp. Delete lines 2 and 3, then add function prototypes for each of those two functions. |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 181 post the entire main.cpp. |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 181 After line 12 or the code you originally posted, create a switch statement and call either BFP() or BMI().
switch( pnum )
{
case 1:
BFP();
break;
case 2:
... |
Forum: C++ 3 Days Ago |
| Replies: 1 Views: 124 SaveFileDialog() doesn't save anything -- it's just a dialog box that lets you nagivate to the folder where you want the file saved and give the file a name. After SaveFileDialog() returns to your... |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 41 Views: 1,003 Oh so you don't think *nix is not just a bunch of hacked together programs??? After I installed Ubuntu and Fedora 11 they both went to their respective web sites and downloaded updates. Even after... |
Forum: C++ 3 Days Ago |
| Replies: 3 Views: 89 Please ask more questions if you are still having problems with this -- someone is likely to answer them. |
Forum: C++ 3 Days Ago |
| Replies: 11 Views: 181 You can't call *.cpp files, but methods and functions that reside in the files. If you want to call IBM.cpp then call one of the functions or methods that is coded in that file. |
Forum: C++ 3 Days Ago |
| Replies: 3 Views: 160 We don't have the definition of your queue class so can't really tell if some of those are right or wrong.
2. Probably wrong. You are not supposed to delete the item from the queue. Just... |
Forum: DaniWeb Community Feedback 3 Days Ago |
| Replies: 7 Views: 180 |