15,300 Posted Topics

Member Avatar for bipin_baglung

Is your computer running antivirus program ? Is it up-to-date? Check here to see if there is a program that will start on bootup: C:\Documents and Settings\All Users\Start Menu\Programs\Startup Also similar directory, but with your user name instead of "All Users".

Member Avatar for Ancient Dragon
0
255
Member Avatar for prog77

>>Can someone help me out with this .. in C++?? Help? yes. c++ no. fopen() is a C function, not C++; [code] char *filenames[] = {"file1","file2","file3",NULL}; for(int i = 0; filenames[i] != NULL; i++) { FILE* fp = fopen(filenames[i], "r"); // do something // now close the file fclose(fp); } …

Member Avatar for prog77
0
179
Member Avatar for sittas87
Member Avatar for nikki123

you mean you want the program to read a *.c or *.cpp file then print all the function names ? Start out with a very simple program that just opens the file and prints out each line. Post your code for that much and then we can talk about the …

Member Avatar for vmanes
0
146
Member Avatar for zourlas

use setw() to force column width. [icode]cout << setw(2) << 12 << setw(6) << "Hello";[/icode]

Member Avatar for zourlas
0
150
Member Avatar for alnj

I wish I'd known about that Usability Studies link when I bought Vista os because I would have like to have given M$ a piece of my mind about that stupid packaging too. It took awhile for me to figure out how to open the damed thing too. Its terrible.

Member Avatar for jwenting
0
221
Member Avatar for Ancient Dragon

How can we use our member certificate on other web sites so that it is displayed on every post I make? For example, I thought I might be able to put it in my signature, but that doesn't work, and avatar doesn't work either. Any other way I can do …

Member Avatar for The Dude
0
150
Member Avatar for The Dude

I listen to talk radio when I'm in the car, otherwise I don't listen to it. If the station is talking sports then I turn it off and listen to CDs while driving.

Member Avatar for maydhyam
0
138
Member Avatar for williamnz

>> I need to access but can't because it is declared as private... In MyClassB write a get() function that returns the value of the private variable, and you can also write a put() variable that lets you change it. >>Could anyone also explain what & does? Depends on the …

Member Avatar for William Hemsworth
0
395
Member Avatar for Ancient Dragon

Please vote for your favorite avatar -- Too bad polls can't include graphics. I would have like to add more names, but max of 10 allowed, so if your favorite is not listed here just check Other and post the name you want. And you can vote for more than …

Member Avatar for peter_budo
0
217
Member Avatar for Imperial Advent

I don't know what your question is, or even if you have one. But this line is wrong: >>#include <iostream.h> Current c++ standards do not use the .h extension. So if you use a modern compiler than code it like this: [icode]#include <iostream>[/icode]

Member Avatar for falguni.panchal
0
378
Member Avatar for the reaper

>>i get the same box repeating itself twice It only appears to be the same box because you have the same identical text in each one. Change the text in one of the boxes and you should see the difference. You can't show them both at the same time. Message …

Member Avatar for the reaper
0
115
Member Avatar for Aia

[b]Must goverment be the center of our existence?[/b] Yes, it is. Without government there would be just chaos. Government, from the tiny village to the federal government affects our every day lives. I can't think of a thing I do (yes, even in the privacy of my bedroom and bathroom) …

Member Avatar for Aia
0
761
Member Avatar for friendlyguy

why don't you ask your "friend" how to compile it, afterall he wrote it.

Member Avatar for friendlyguy
0
146
Member Avatar for hassanahmad

>>My question is do softwares developed in VB 6.0 work on win vista or not? Maybe yes, and maybe no. It depends on the software. >>Do vista come with the visual basic runtime library I don't know. Tell me the dll name(s) and I'll look to see if its on …

Member Avatar for iamnoangel26
0
154
Member Avatar for reezin14

[QUOTE=needs_help;295493]What is a good language that can easily make applications, has the ability to read mouse clicks on certain places, can make highly detailed pictures, is just as mathematicaly abled as dev-pascal, and can easily make a program using Artificial Inteligence, a new compiler, or a user interface?[/QUOTE] :mrgreen: Is …

Member Avatar for swaira umar
0
589
Member Avatar for Wiki_Tiki

You have a couple options 1) store it in [URL="http://msdn.microsoft.com/en-us/library/ms724875(VS.85).aspx"]the registry[/URL]. This isn't very difficult to do and you should be abot to find pleanty of examples on the net via google. 2) store it in a normal data file

Member Avatar for Wiki_Tiki
0
102
Member Avatar for surein

Welcome to DaniWeb, hope you enjoy your stay. The first computer I ever saw was in a [URL="http://www.computermuseum.li/Testpage/IBM-SAGE-computer.htm"]SAGE building [/URL]in McChord AFB, Tachoma WA in 1963 -- one computer occupied three stories of that building. But I'm sure you know about those monsters :) I wasn't into computers in those …

Member Avatar for MakeMoneyOnline
0
64
Member Avatar for Bazman76

>>I can change the result of the memory location that the pointer points to, but not the string that begins at that address. Those strings can not be changed because they string literals which reside in read-only memory.

Member Avatar for Ancient Dragon
0
128
Member Avatar for Ancient Dragon

[url]http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=39199906[/url]

Member Avatar for Lardmeister
0
27
Member Avatar for loken
Member Avatar for QuantNeeds

>>I can't find my hardware.dat file on the compute It will be in the same directory that contains the program *.exe file. >>the write in the updateRecord() function does not work. what makes you think it doesn't work? What does it do that it's not supposed to do, or what …

Member Avatar for Ancient Dragon
0
321
Member Avatar for sumaira_mcs

Click on the Welcome Guide at the top of every page and you will get a tutorial.

Member Avatar for lich
0
66
Member Avatar for QuantNeeds

you are doing too much work! [code] int main() { char name[10] = {0}; strncpy(name,"How Now Brown Cow", sizeof(name)); name[sizeof(name)-1] = 0; cout << name << "\n"; } [/code]

Member Avatar for QuantNeeds
0
141
Member Avatar for jhonnyboy

that loop is constructed incorrectly [code] while( getline(infile, line) ) { cout << line << "\n"; } [/code] >>give. I imagine we have to put a counter/loop inside the file so it can differentiate between the name's and All you have to do is put the name on the same …

Member Avatar for jhonnyboy
0
129
Member Avatar for integer*09

1) I'm not sure either, but probably the limit of an integer. See limits.h for that value. 2) you don't need to use clear() at all. getline() will do that for you unless it fails, such as at end-of-file. And you don't need to use clear() on sstrm either because …

Member Avatar for vmanes
0
124
Member Avatar for clutchkiller

Agree with what others have said. It might be easier to learn C before tackling c++. If you know fundamentals of C then C++ will be a snap. And if you know C++ C# and Java will also seem quite easy to learn.

Member Avatar for Ancient Dragon
0
113
Member Avatar for kneel

The simplest, but slowest, way is to do a linear search -- start from the beginning of the file, read each record until you get the one you want. For files written in text mode there isn't much more that can be done to speed up the searches. A more …

Member Avatar for Ancient Dragon
0
260
Member Avatar for Dave Sinkula

And what is the problem with that message? If you want 52 seconds you will be ok, right?

Member Avatar for MidiMagic
0
249
Member Avatar for 2fac323

Look at your function getData(). It isn't reading the data from the file -- all it is reading is two numbers called low and high. What its supposed to do is read all the numbers into the array [b]temp[/b]. You will have to add a loop so that it can …

Member Avatar for 2fac323
0
165
Member Avatar for Clockowl

>>I'm parsing this WaveFront .obj file WaveFront .obj is NOT a text file so it doesn't contain lines, all it contains is a bunch of binary data. You can't treat binary files as if they are text files. line 1 thru 3: remove the trailing \ character -- c language …

Member Avatar for Prabakar
0
383
Member Avatar for Lukezzz

This works for me [code] #include <vector> #include <string> using namespace std; typedef std::vector<string> String1D; typedef std::vector<String1D> String2D; typedef std::vector<String2D> String3D; int main() { String3D vector1; String3D::iterator OneDStart = vector1.begin(); String3D::iterator OneDEnd = vector1.end(); for ( ; OneDStart != OneDEnd; OneDStart++ ) { //1D String2D::iterator TwoDStart = OneDStart->begin(); String2D::iterator TwoDEnd …

Member Avatar for ArkM
0
2K
Member Avatar for invisal

>>Hacking = Writing? Only in VB. In C and C++ its [icode]Hacking == Writing?[/icode]

Member Avatar for Ancient Dragon
0
388
Member Avatar for dophine

looks like you are attempting to use GNU library non-standard time functions. [URL="http://www.gnu.org/software/libtool/manual/libc/Elapsed-Time.html"] See this article how to use it[/URL].

Member Avatar for Salem
0
202
Member Avatar for vedmack

>>::ZeroMemory(buf, 256); Since you declared buf as TCHAR you need to use the sizeof operator, like this: [icode]::ZeroMemory(buf, sizeof(buf));[/icode] >>strlen(buf) Can't use strlen() in TCHAR because it won't work when compiled for UNICODE. Use the macro _tsclen() instead, which will get correctly converted to either strlen() or wsclen(), depending on …

Member Avatar for Ancient Dragon
0
140
Member Avatar for JackDurden

1) The while statement is incorrect [code] while( inData>>lastname>>firstname>>identity[number] ) { // other code here } [/code] 2) you don't want that i loop because it is attempting to read (rows*cols) number of numbers for each name. All you want it to do is read the columns for each name. …

Member Avatar for JackDurden
0
82
Member Avatar for alekhya

depends on whether its a string or numeric value. If you code it to always enter data as strings then you can easily test for empty string, then convert the string to some numeric value if needed.

Member Avatar for Daveodolph
0
115
Member Avatar for file sharer

>>How can I get daily classes for C? At your local university, but if you didn't know the answer to that question then I question your ability to become a programmer!

Member Avatar for Ancient Dragon
0
120
Member Avatar for 2fac323

[QUOTE=joshmo;659697]Secondly, you do not need to pass the file stream through a function. if it has already been declared in main then you just have to use it the same way you use your cin statements. [/QUOTE] If the stream is declared in main(), how do you expect to use …

Member Avatar for joshmo
0
176
Member Avatar for fmwyso

1) Depends on the compiler and whether you compile the program for debug or release. Most modern compiler will make them the same code, despite the errors in the code snippets you posted. 2) Speed has nothing to do with it -- the { and } are there to block …

Member Avatar for fmwyso
0
108
Member Avatar for coveredinflies

[QUOTE=coveredinflies;657198]Incidently when you get stuck on little problems like this and can't figure them out where do you look for help?[/QUOTE] DaniWeb :)

Member Avatar for coveredinflies
0
187
Member Avatar for Nemoticchigga

If running MS-Windows check Task Manager to see CPU time in use -- if its approaching 90% then you have too many threads.

Member Avatar for Salem
0
83
Member Avatar for kneiel

The compiler adds code to the program to call the constructor. [edit]^^^ What Jerry said too. [/edit]

Member Avatar for kneiel
0
97
Member Avatar for rppprez

See [URL="http://msdn.microsoft.com/en-us/library/aa363196(VS.85).aspx"]Communications Resources[/URL] in MSDN for explaination how to do that on MS-Windows. What you might want to do is set up a callback function that windows will call when incomming data is available at the comm port.

Member Avatar for rppprez
0
116
Member Avatar for bpacheco1227

I used VC++ 2008 Express and had a couple errors. There are two functions that are supposed to return values but don't. You have to correct that problem before attempting to run the program. error C4716: 'getWeaponSelection' : must return a value error C4716: 'fileHighScore' : must return a value …

Member Avatar for mitrmkar
0
200
Member Avatar for wussa

line 10: that is a function prototype and should appear outside any function, such as on line 6. And the parameters in the function prototype on line 10 doesn't match the parameters in the actual function on line 35. The two must match exactly.

Member Avatar for Daveodolph
0
147
Member Avatar for Quarck

[QUOTE=niek_e;653071]I like VS2008 (VC++ Express) the best. ... and it's backwards-compatible with VC6. [/QUOTE] No it isn't backward compatible because VC++ 6.0 did not support the c++ standards very well. Code written with VC++ 6.0 will encounter some porting problems when compiled with VC++ 2005 or newer compilers. Don't bother …

Member Avatar for Tigran
0
191
Member Avatar for adRiaNn

you could have subclass3 be derived from both subclass1 and subclass2 [code] class subclass3 : public subclass1, subclass2 { // blabla }; [/code]

Member Avatar for adRiaNn
0
82
Member Avatar for aannjjaallii

[URL="http://www.codecodex.com/wiki/index.php?title=Calculate_an_integer_square_root"]have you ever heard of google[/URL] ?

Member Avatar for iamthwee
0
122
Member Avatar for jstonewell

There are legatimate uses for such software, for example at help desks there the helper can see that the client is doing so that the helper can help the client. We had software something like that at my last job. I think it was commercial program, possibly Norton PC Anywhere …

Member Avatar for GrimJack
0
86

The End.