15,300 Posted Topics

Member Avatar for jeffcogswell
Member Avatar for wallace900402

use sprintf() to format the file name [code] char filename[255]; int i; for(i = 1; i< 10; i++) { sprintf(filename,"p1%03d".state",i); printf("filename = %s\n", filename); } [/code]

Member Avatar for Ancient Dragon
0
43
Member Avatar for angelinrajeesha

Before you can use fieldarray you have to allocate memory for it. For example: [code] // allocate enough room to store two pointers filearray = malloc(2 * sizeof(char*)); [/code]

Member Avatar for Ancient Dragon
0
102
Member Avatar for pstrohma

c++ Forms [code] private: System::Windows::Forms::TextBox^ myText; <snip> String^ str = myText->Text; [/code]

Member Avatar for pstrohma
0
264
Member Avatar for msg

[QUOTE=msg;454093]Thanks for your reply. So, there is not a readstring command?[/QUOTE] Nope -- in assembly language you have to roll your own. You can use C library functions, but that would defeat the purpose of you writing assembly language.

Member Avatar for user543820
0
237
Member Avatar for jay1648

predeclare the structure [code] typedef struct tagPerson Person; struct tagPerson { // blabla }; [/code]

Member Avatar for hyperion
0
188
Member Avatar for sivaranga001

I reviewed your two thread and see that you have not answered people's questions. We are not mind readers, not is anyone here [URL="Thank You for running the software. Bye for now”,"]clairvoyant[/URL]. Would you go to an automobile repair shop and tell the mechanic "My car is broke. Fix it …

Member Avatar for ~s.o.s~
-1
117
Member Avatar for DonutsnCode
Member Avatar for DonutsnCode
0
139
Member Avatar for gagan bhagat
Member Avatar for Ancient Dragon
0
259
Member Avatar for a-hall

If you don't know how to calculate the SD, [URL="http://en.wikipedia.org/wiki/Standard_deviation"]read this wiki article.[/URL]. It provides some very simple examples.

Member Avatar for Fbody
0
144
Member Avatar for Beancounter5

[URL="http://www.cplusplus.com/reference/stl/list/erase/"]Example:[/URL]. What specifically don't you understand about it?

Member Avatar for Ancient Dragon
0
112
Member Avatar for #include<>

[code] const int SomeSize = 5; const int SomeOtherSize = 5; class ClassName { }; typedef ClassName SomeName[SomeSize][SomeOtherSize]; [/code]

Member Avatar for mrnutty
0
110
Member Avatar for sonsofliberty84
Member Avatar for sonsofliberty84
0
97
Member Avatar for KJLakshmi

Memory allocated in a dll must be free'ed in the same dll. Likewise, memory allocated in the application program must be realloc'ed or free'ed in that same application program. You can't allocate in one and realloc or free in the other. The reason is that they use different allocation pools …

Member Avatar for Ancient Dragon
0
174
Member Avatar for +_+man

A library of what? Cookbooks? Music? Or just anything? Microsoft has a walkthrough to teach you the basics of using that compiler. You should read it some time. [URL="http://www.google.com/#sclient=psy&hl=en&q=vc%2B%2B+2010+express+tutorial&aq=f&aqi=g2g-o1&aql=&oq=&gs_rfai=&pbx=1&fp=6248f386b3c06fd8"]Here[/URL] are other tutorials.

Member Avatar for Ancient Dragon
0
140
Member Avatar for yanz

>>I wonder if is it possible to link the GPRS modem and a I/O board together? I have no clue what you mean by that. you need to be more specific about what you want to do. >>I already have a VB6 coding Then why don't you just use it?

Member Avatar for benhowdle89
0
167
Member Avatar for user543820
Member Avatar for user543820
0
240
Member Avatar for Intrade

If you created the project as a DLL project then the configuration type will already be selected for you. You don't really have to do that step. At that point, just hit the Build Solution option If you don't see a Build menu option -- located just to the right …

Member Avatar for Intrade
0
272
Member Avatar for srinivasan106

Neither one is selection sort. [URL="http://en.wikipedia.org/wiki/Selection_sort"]Read this[/URL] for an algorithm. The second one is not a sort of any kind because it contains errors >>for(i=0;i<=n;i++) Arrays are numbered 0, 1, 2, ... N-1. So i <= n should be just i<n

Member Avatar for localinternet
0
326
Member Avatar for mannuel1021

There are litterally hundreds of examples all over the net. All you have to do is use google to find them. [URL="http://www.dreamincode.net/code/snippet2212.htm"]Here is one example[/URL].

Member Avatar for csurfer
0
195
Member Avatar for baltair
Member Avatar for Bobio
Member Avatar for fallen_prisoner

VC++ 6.0 will work on Vista but you will get a lot of compatability warning messages. VC++ 2008 Express runs perfectly on Vista. So if you are currently using VC++ 6.0 you should upgrade to VC++ 2008. I use Dev-C++ on Vista. But you may have to add full paths …

Member Avatar for asmail2020
0
177
Member Avatar for David_Omid

can you make SquareImage1 to SquareImage64 an array? Then you could do that in a simple for loop. And it might simplify other parts of the program. [icode]Image SquareImage[64];[/icode]

Member Avatar for David_Omid
0
99
Member Avatar for Tashgrl

operqating system? compiler? Is he printer connected directly to your computer or is it on a network ?

Member Avatar for Ancient Dragon
0
48
Member Avatar for The physicist

I've been working on that very thing the past few days -- learning Windows Forms. You can't call c++ new operator -- instead you have to use gcnew. [code] private: System::Void toolStripMenuOpen_Click(System::Object^ sender, System::EventArgs^ e) { if( openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK) { try { StreamReader^ myStream; if(openFileDialog1->FileName == nullptr) return; if …

Member Avatar for The physicist
0
521
Member Avatar for Talguy

You can do that only if you have security access rights on the target computer. Compile the program on your own computer then download it to the cgi folder on the target web server.

Member Avatar for Ancient Dragon
0
540
Member Avatar for chamnab

free vc++ 2007 Express (google and you will find the download link). But there are others, such as Code::Blocks, also free. Neither produce 64-bit pograms, but the 32-bit programs they produce run well on 64-bit Windows 7.

Member Avatar for alex55
0
153
Member Avatar for _aGt_

>>i'm an intern As an intern your prospects for getting full time work is retty slim because you don't even know how to read yet. Come back in about 10 years, after you have learned how to read and comprehend what you read. Geek's Lounge is not the place for …

Member Avatar for Ancient Dragon
0
78
Member Avatar for Yzk

This thread is 6 years old! The OP has probably replaced that old computer by now.

Member Avatar for Ancient Dragon
1
377
Member Avatar for nerdygirl118

about cin.ignore() -- read [URL="http://www.daniweb.com/forums/thread90228.html"]this thread[/URL] function arguments are paired by position, not by name.

Member Avatar for Ancient Dragon
0
88
Member Avatar for climberboy

put that in its own thread so that other processing can be done. In the thread put the code in an infinite loop. Call Sleep(1000) inside the loop so that the thread waiks up only once per second. Also you might want to add '\r' at the beginning of the …

Member Avatar for Ancient Dragon
0
214
Member Avatar for naz arif

>>i dnno how to insert in without using an array Please explain more exactly. Insert a value into the array?

Member Avatar for naz arif
0
86
Member Avatar for Rahul.menon

>>But i wanted to know if it could be done without using string array or string functn. plainly by using any numeric datatype Yes. use modf() to split the float into integer and fractional parts. The write a function that adds together the digits of each part. Finally main() should …

Member Avatar for Ancient Dragon
0
150
Member Avatar for Finarfin34

try Build-->Clean then rebuild the entire project. Correct all warnings and errors.

Member Avatar for Rishikeshan
0
90
Member Avatar for araujfrnk

>>printf("%d",a[x]); should be %f, not %d. Also put a space between the numbers [icode]printf("%f ", a[x]);[/icode]

Member Avatar for Ancient Dragon
0
117
Member Avatar for djhog
Member Avatar for Ancient Dragon
0
111
Member Avatar for Kosithc

>>For example when I want to read p2DArray[511][511][845646] it doesnt say me that I am out of dimensions Well duuh! the maximum is p2DArray[511][511][1]. c++ programs don't produce out-of-bounds error messages. They just crash and burn.

Member Avatar for Ancient Dragon
0
203
Member Avatar for keichi19

Homework??? Let's see the code you have started to solve all those problems. We are not here to do your homework for you.

Member Avatar for keichi19
-3
713
Member Avatar for gisek

>>How many threads can be created? (I know that if there is too many, they have to wait for their turn, but is there a limit?) Windows 2000: maximum is 65,535 handles. That will include threads, files handles, GDI object handles, etc. I have not found if XP, Vista or …

Member Avatar for Ancient Dragon
0
153
Member Avatar for fukki
Member Avatar for Ancient Dragon
0
549
Member Avatar for Ee Juan

line 10: int big=match[0]; That won't work because its declared as a global and vector match does not contain anything. >>void highest_range(vector<int>match, string range []) You should pass that vector by reference, not by value, so that the entire vector doesn't have to be duplicated. [icode]void highest_range(vector<int>& match, string range …

Member Avatar for Ee Juan
0
163
Member Avatar for neoraghav
Member Avatar for enja
Member Avatar for mitrious
Member Avatar for mitrious
0
178
Member Avatar for moonlight06

sprintf() will do all the conversions except binary. Google for binary to decimal convertions and you will find out how to do that too. If you are not allowed to use sprintf(), such as you must write the algorithms yourself, then use google because such algorithms are very common and …

Member Avatar for moonlight06
0
563
Member Avatar for manoj201jain

[QUOTE=~s.o.s~;284324]Even when I was in school, we were also asked to use the same thing, not because they didnt like other compilers but because they didnt know any other compiler existed other than MS Visual Studio and Turbo C.[/QUOTE] don't your university instructors ever use [URL="http://www.google.com/search?hl=en&q=c%2B%2B+compilers&btnG=Google+Search"]google[/URL] ? But I don't …

Member Avatar for Ancient Dragon
1
1K
Member Avatar for neoraghav
Member Avatar for neoraghav

I just do it like this: [code] void CMfctestDlg::Sum() { UpdateData (true); this->SetWindowText("Result"); Result obj; obj.Final_Result (m_arg1, m_arg2); obj.DoModal(); } [/code]

Member Avatar for Ancient Dragon
0
1K
Member Avatar for digimouse

A simple class [code] class MyClass { public: MyClass() { x = 0; } int Add(int n) { this->x += n; } private: int x; }; [/code] A normal function outside a class might look like this: [code] struct MyStruct { int x; }; int sum(int n, struct MyStruct* s) …

Member Avatar for LevyDee
0
115

The End.