868 Posted Topics

Member Avatar for sagar arora

Welcome to Daniweb. This is how this forum works. There are several sections like software development, web development, etc. these sections are further divided to more specific areas like C/C++, PHP,Web Site Management etc. It is your responsibility to select the most appropriate section where you should post your question. …

Member Avatar for WolfPack
0
64
Member Avatar for Zilla32167

[QUOTE=Zilla32167]wrote it using Microsoft Visual C++ on a Linux operating system, [/QUOTE] Is this actually possible? MSVC runs on Linux? :eek: [QUOTE=Zilla32167]but one variable (the one monitered to determine when to stop iterating through the simulation) is jumping all over the place, instead of the expected steady decrease.The program makes …

Member Avatar for Zilla32167
0
83
Member Avatar for The Dude
Member Avatar for Kumal
Member Avatar for deadprogrammer
Member Avatar for uxohus2b

[QUOTE=uxohus2b]Thanks. I use Ubuntu and Windows. I'm looking for a shell script that does this. But I'll try what you're saying as well. Thanks.[/QUOTE] Shell scripting is much easier. But this is not the forum for that. There is a [URL="http://www.daniweb.com/techtalkforums/forum113.html"]UNIX support forum[/URL] for scripting in daniweb. But you could …

Member Avatar for uxohus2b
0
105
Member Avatar for zidane28

Okay that's it. Nobody is going to spoon feed you. If you are weak in C++, you study. If you can't do an assignment, you don't take it. If you have this assignment for a course you don't enroll in it. This is not anybody's free homework service. You try …

Member Avatar for WolfPack
0
148
Member Avatar for zidane28
Member Avatar for zidane28
0
119
Member Avatar for gil857

This [URL="http://www.daniweb.com/techtalkforums/thread856.html"]thread[/URL] should answer most of your questions. If you scroll down this page, there is a section called "similar threads" which contain additional info.

Member Avatar for WolfPack
0
52
Member Avatar for TuoPohc

I think the best way to do it is using a float array. float valueA[ 4 ] = { 12.2 , 11.5, 14.9, 17.9 }; For example when a == 3, cout << valueA[a - 1] ;//<<< this would be seen as valueA3 I think you understand why I put …

Member Avatar for TuoPohc
0
92
Member Avatar for jitterson

[QUOTE=jitterson]What is the difference between “overloading” and “overridding”? [/QUOTE] “overloading” is having the functions (methods) with the [B]same name but different signatures[/B]. You [B]can[/B] find overloading in non object oriented languages like C too. Overloading acts on different [B]data[/B] types in different ways. “overriding” is having a methods with [B]same …

Member Avatar for WolfPack
0
83
Member Avatar for dev.cplusplus

[QUOTE=dev.cplusplus]Thank you for your help, I read the it, and was very usefull, but still I need a function that can convert from escape URL to unescape with unicode chars, if this possible at all, or maybe I'm trying to do something that is not possible at all. Thanks[/QUOTE] UrlUnescapeInPlace …

Member Avatar for dev.cplusplus
0
307
Member Avatar for Scottg1989

This [URL="http://www.daniweb.com/techtalkforums/thread40529.html"]thread[/URL] should explain.

Member Avatar for Dani
0
111
Member Avatar for Dani

that means I lose my 3 stars? oh well. no big deal. who needs those stars anyway. Sour in the first place. no biggie. who cares. honest. I have my name in bold. Now that is something.

Member Avatar for WolfPack
0
342
Member Avatar for Bill Hughes

There used to be a dialog box style ([URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/aboutdialogboxes.asp"]DS_SYSMODAL[/URL]) that created a dialog box in system modal mode. But it is only there for compatibility with 16bit windows and doesn't prevent the user from clicking other items on the desktop. So I guess you will have to intercept the mouse …

Member Avatar for WolfPack
0
181
Member Avatar for gpta_varun

Q1. Who wrote the book 'Bread, Beauty & Revolution' ? (a) Karl Marx (b) Peter Halbraith (c) [B]Khwaja Ahmed Abbas[/B] (d) Jack Welch Q4. Which south American snake's name means 'Elephant' in Tamil ? (a) Sidewinder (b) Viper (c) [B]Anaconda[/B] (d) King Cobra Q5. Which famous footwear's name is taken …

Member Avatar for goldeagle2005
1
289
Member Avatar for Dani

Cool. Chat sessions on what topics? I have been to IRC chat a few times, but there were not much users, and the ones online didn't reply. :sad:

Member Avatar for Toba
0
281
Member Avatar for happygeek

[QUOTE=happygeek]If you don't have one, what's stopping you from starting? [/QUOTE] Well I guess I can't make the commitment of writing something down daily or at a decent frequency. And of course there is the slight problem of not having anything exciting to write about also. I tried keeping a …

Member Avatar for goldeagle2005
0
191
Member Avatar for dorsey_famu

Do you have data that should be backuped stored in that computer? If you dont have any data that you need, you can do a clean install by reformatting that hard drive. That will be the easiest. Keep me posted. Edit. Oh and tell me if it is a desktop …

Member Avatar for WolfPack
0
136
Member Avatar for SegFaultSoul

[QUOTE=SegFaultSoul]Will most Windows programming be done using .NET from now on? I mean, will any of the .NET languages be enough, or is there still a need to programme to a Windows API using something like C++? [/QUOTE] Yeah. .NET will be the future windows programming platform. C++ is also …

Member Avatar for Ancient Dragon
0
176
Member Avatar for jbuzz120

[code]#include <iostream> #include <string> using namespace std; int main() { // declare variables string firstName[5]; string lastName[5]; double totalSales[5]; double TotalSalesByAll = 0.0; double bonus[ 5 ] = { 0 }; double avgsales, // Read in the Names, and weekly sales for ( int i = 0 ; i < …

Member Avatar for Rashakil Fol
0
518
Member Avatar for fishman44
Member Avatar for WolfPack
0
167
Member Avatar for Drowzee

[QUOTE=Drowzee]Is there a way to unload, detach, or close a file from an application such that the parent directory can be moved without problems?[/QUOTE] Yes. Refer the [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/file_management_reference.asp"]File Management Functions[/URL] in MSDN. [QUOTE=Drowzee] How does the application/OS recognize that it cannot move the active file?[/QUOTE] When an application opens the …

Member Avatar for Drowzee
0
437
Member Avatar for cocojim
Member Avatar for cocojim

[QUOTE=cocojim]I am confused about what is the difference between: A: char *p="string"; B: char q[10]="string"; [/quote] See the diagram in this [URL="http://c-faq.com/aryptr/aryptr2.html"]link[/URL]. q will be like 6 squares filled with characters from 's' to 'g' and 4 squares filled with 0. [QUOTE=cocojim] For A: I can do "p++", which gives …

Member Avatar for WolfPack
0
230
Member Avatar for ~s.o.s~

[QUOTE=~s.o.s~] I) Its gives the warning that [INLINECODE] The function returns the addr. of a local variable[/INLINECODE] Can anyone explain the logic behind this?[/QUOTE] You are declaring temp as a local array of characters. You are returning the address of this array. When the function exit, the memory for this …

Member Avatar for WolfPack
0
121
Member Avatar for ~s.o.s~
Member Avatar for Acidburn

[QUOTE=Acidburn]when i type a[0]. [/QUOTE] You mean type a[0] like this? [CODE]Cell_Info a[0];[/CODE]???

Member Avatar for Dave Sinkula
0
109
Member Avatar for server_crash

[QUOTE=Narue]If scanf returns a certain value, it failed. Your documentation will tell you what values mean what failures.[/QUOTE] As you may know,scanf returns the number of items stored from the stream, and EOF only if the EOF character was read at the beginning. So when you input [INLINECODE]123.asdf[/INLINECODE] for a …

Member Avatar for WolfPack
0
850
Member Avatar for brale

Nobody will write code for you. If you have already written a postfix parsing function you will find infix easy. Try and post what you have done upto now. We will help you correct errors. Also you are typing J instread of I. [QUOTE]J need[/QUOTE] [QUOTE]J make[/QUOTE] Correct that.

Member Avatar for WolfPack
0
191
Member Avatar for brale

You will have to use [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/readconsoleinput.asp"]ReadConsoleInput[/URL] [URL="http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles5.html"]Tutorial[/URL]

Member Avatar for brale
0
112
Member Avatar for Mamata

I havent programmed in TurboC in my life, so I cant help you with your settings. But theoritically if the include, and library directories are configured properly, there shouldnt be any problem. Did you check that stdio.h is actually inside that directory? Anyway why do you think that Microsoft VC …

Member Avatar for WaltP
0
153
Member Avatar for CStallion
Member Avatar for Comatose

I think it is just you. :) Edit: ehehe I saw that you have posted in that thread after this post too.So I guess you also have solved it.

Member Avatar for Comatose
0
140
Member Avatar for iamthwee

Maybe I am not understanding your question, but can't you use a std::list for that?

Member Avatar for iamthwee
0
234
Member Avatar for WolfPack

I can't edit words that are selected by double clicking them. Cant change, delete, or anything. I have to highlight it by dragging the cursor, which is [B]very very [/B]inconvienient. Edit: If it matters I am using Firefox. But I didnt have this problem before the current VBBulletin (I think …

Member Avatar for Dani
0
229
Member Avatar for mikki2

[quote=mikki2]how do i make it save a whole sentence [/quote] replace [CODE]cin>>word;[/CODE]with [CODE]getline( cin, word );[/CODE] [QUOTE=mikki2]how do i write a program that can read from the file and print it on the screen? [/QUOTE] [CODE] ifstream fin("biscuit.txt", ios::in); while( fin>>word ) { cout<<word; }[/CODE] [quote=mikki2]how do i add data …

Member Avatar for mikki2
0
2K
Member Avatar for AhmedHan

[QUOTE=AhmedHan]Recently I installed Visual Studio 2005 .NET on my computer. I wrote a Win32 program. But my program doesn't run on PCs that doesn't have Framework 2 installed on. Is there any settings for VS 2005 .NET to make my code run on all PCs? Or what DLL file should …

Member Avatar for WolfPack
0
150
Member Avatar for vietbong87

To get the values from the file, you have to open the file. Your program takes values from cin ( which is the standard input ) and outputs results to cout ( which is standard output). To be able to get values from a file. you have to open the …

Member Avatar for WolfPack
0
125
Member Avatar for LieAfterLie

Can you explain a bit more on what you are trying to do? Better if you can post the code. Otherwise there will be a lot of answers based on a lot of assumptions.

Member Avatar for AhmedHan
0
435
Member Avatar for aeinstein

[QUOTE=aeinstein]Short story: How do you compile two .cpp files at once? [/QUOTE] Okay I will go with the short story. You RTF(ine)[URL="http://www.digitalmars.com/ctg/sc.html"]Manual[/URL]. Well any decent compiler should be able to compile multiple source files at once. You should be able to compile it by [INLINECODE]dmc sourcefile1.cpp sourcefile2.cpp [/INLINECODE], without any …

Member Avatar for aeinstein
0
369
Member Avatar for halloula

Welcome to Daniweb. The first hint will be to first start doing the assignment. Looks like you are intimidated by the assignment size, and are afraid to start. Once you start doing, you may find dead-ends, and then pose a specific question here. Since this looks like an assignment on …

Member Avatar for WolfPack
0
235
Member Avatar for lilynadia

You wont find much tutorials on that particular subject. So try searching for 1. Reading data from a file 2. Inserting data to a list. and then try combining those two. You will not get much help just by saying that you searched for this and that and you couldn't …

Member Avatar for WolfPack
0
34
Member Avatar for ArNy

You must be looking for a compiler. Better try [URL="http://www.bloodshed.net/devcpp.html"]Dev-CPP[/URL] which is good for a beginner. It can be downloaded [URL="http://www.simtel.net/product.download.mirrors.php?id=17456"]here[/URL].

Member Avatar for ArNy
0
101
Member Avatar for grautu

If you are a beginner better to do it by hand. Right click the command prompt shortcut in accessories, and select Properties. Then select the layout tab. There you can change the width and height. There are other options that can be set in the other tabs. Then when you …

Member Avatar for grautu
0
209
Member Avatar for Tamir

I would personally go for a Visual Basic Macro or use Visual Basic to write the addin. But maybe [URL="http://www.codeguru.com/cpp/com-tech/atl/tutorials/article.php/c3591/"]this[/URL] will help.

Member Avatar for Tamir
0
490
Member Avatar for newgurl

You have failed to use code tags in the 3 posts you have posted code. Use [COLOR="Black"][[/COLOR]code][/code[COLOR="Black"]] [/COLOR]tags the next time. There is a watermark in the message edit box telling you about it, so you can't say you didn't know.

Member Avatar for newgurl
0
359
Member Avatar for Joncamp

I had a similar problem. As it turned out 1. The firewall in the linux machine was blocking the samba service - stopped me from browsing the linux computer 2. This Security Enhanced Linux ( SE Linux ) thinga ma gingy which is in Fedora 5, was blocking samba - …

Member Avatar for WolfPack
0
110
Member Avatar for lette

Most probably a missing semicolon somewhere. Can't say much without looking at code. Attach all the project files.

Member Avatar for soniona
0
919
Member Avatar for yuzhang

You are passing the stk variable by value. You should pass it by reference if you want to update the original value after it is returned from the function. Try this [code] void push1(CStack[COLOR="Red"]&[/COLOR] stk) { stk.push(1); } int main(void) { CStack mystack; printf("Stack initially: "); mystack.print(); push1(mystack); printf("Stack after …

Member Avatar for yuzhang
0
122

The End.