868 Posted Topics
Re: 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. … | |
Re: [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 … | |
Re: Use code tags when posting code. | |
Re: It is rude to bump old threads like this. Thread Closed. | |
Re: [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 … | |
Re: 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 … | |
Re: Well, it looks pretty straightforward. Do you know any C++? | |
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: This [URL="http://www.daniweb.com/techtalkforums/thread40529.html"]thread[/URL] should explain. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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: | |
Re: [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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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 < … | |
Re: Where do you dig these 2 year old threads from? I am closing this thread. | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: The C code works for me. Output for input 3 is 6.0000 | |
Re: [QUOTE=Acidburn]when i type a[0]. [/QUOTE] You mean type a[0] like this? [CODE]Cell_Info a[0];[/CODE]??? | |
Re: [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 … | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
![]() | |
Re: 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. | |
![]() | Re: Maybe I am not understanding your question, but can't you use a std::list for that? ![]() |
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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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]. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 - … | |
Re: Most probably a missing semicolon somewhere. Can't say much without looking at code. Attach all the project files. | |
Re: 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 … |
The End.