868 Posted Topics
Re: Nobody will help you unless you show what you have done upto now. We do not do others homework. | |
Re: [quote=shadevar] Will this work? [/quote]Why don't you try and see? | |
Re: [quote=dilip.mathews]contains 1,2,3 or 4.[/quote]Should all 1,2,3 [B]and[/B] 4 be in the array or is it enough to have only 1 out of those elements? | |
Re: Windows Programming is a bit advanced. Decide yourself if you have a solid programming background. Take a look at this [URL="http://www.winprog.org/tutorial/"]tutorial[/URL]. See if you understand the code. If you can't understand that code, learn C a bit more. Just being able to compile and execute will not be enough. You … | |
Re: [quote=Grunt]int main(int argc, char *argv[0]) That looks strange.[/quote] Yes, it should be [CODE]int main(int argc, char *argv[])[/CODE] | |
Re: Why don't you create a separate thread to read and wait for data in the COM port? When data is available, you can pass it to the parent process using a callback function. I think that is the easiest. This is called Multi-threaded IO. The thread that you are doing … | |
Re: [quote=Dave Sinkula]If x is less than or equal to 5, y is set to 1 -- otherwise y is set to 0; x is then incremented.[/quote]Is x incremented before or after the result of the comparison is assigned to y? Correct me if I am wrong in the explaination below. … | |
Re: [quote=mhakhubexxx][B]Create a flowchart that inputs an amount and output the denomination breakdown by 100,50,20,10,5,1. e.g. Amount: 237 Output: there are 2 100 peso there are 0 50 peso there are 1 20 peso there are 1 10 peso there are 1 5 peso there are 2 2 peso Hope you … | |
Re: Hi. This is not a C/C++ related problem. This is most probably regarding a malware problem. I will move this thread to the appropriate section. khost is not an essential process according to the searches I made. You can try the tool that can be downloaded [URL="http://www.securitystronghold.com/gates/spyware-adware-solutions/kdx_KHost.exe_solution.htm"]here[/URL] for free to … | |
Re: I am not a virus expert, and this is not the proper forum. There is an [URL="http://www.daniweb.com/techtalkforums/forum64.html"]anti virus forum[/URL] which specifically deals with anti-virus removal. Anyway try downloading this [URL="http://www.bitdefender.com/VIRUS-157247-en--Win32.Brontok.A@mm.html"]removal too[/URL]l and see what happens. Probably it should work. If it doesn't, post again in the proper forum. | |
Re: What is your problem? | |
Re: There should be a way of creating a template DLL in Bloodshed DevCP. Have you tried it? A DLL is nothing but a collection of functions. It does not have a main function. I dont have any DevC++ specific tutorials but I think you can get an idea by this … | |
| |
Re: What do you mean by unneccesary? You can use the [URL="http://www.cppreference.com/cppstring/index.html"]std::string[/URL] library. | |
Re: [URL="http://www.google.com"]www.google.com[/URL] [URL="http://www.samspublishing.com/library/content.asp?b=Visual_C_PlusPlus&seqNum=86&rl=1"]http://www.samspublishing.com/library/content.asp?b=Visual_C_PlusPlus&seqNum=86&rl=1[/URL] [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp"]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp[/URL] | |
Re: Should someone login for the program to run (example anti-virus program)? Or "is the computer running?" the only criteria (example Telnet Server)? Can you explain the type of program you are trying to create? | |
| |
Re: [quote=hollystyles]See! Flaming should be compulsory, not against the rules.[/quote] Hear Hear. | |
Re: I don't think there is a reason for GCC to give an error because of the missing [inlinecode]const[/inlinecode]. The assignment operator of [inlinecode]Class C[/inlinecode] can have any parameter of [inlinecode]C, C&, const C&, volatile C&, or const volatile C&.[/inlinecode]. It ought to be something else. But I dont know what. … | |
Re: try [code] ifstream file(filename); if (file) { while ( file.getline(line,SIZE) ) { tmp =static_cast<string>(line); vector <string> array; string token; istringstream iss(tmp); int i=1; while ( getline(iss, token, ',') ) { array.push_back(token); v_List.SetItemText(nItem, i, token.c_str()); i++; } } } [/code] | |
Re: Try this line [code]v_List.SetItemText(nItem, i, token.c_str());[/code] This is not a cast, but you will be able to access the C style characters in token. | |
Re: Haven't you even tried writing the merge function? You may have written the other parts, but that is not relevent here. Merging two lists can't be that hard. It is just a matter of connecting the tail of one list, with the head of the other list. Please remember that … | |
Re: lookup for the keyword [inlinecode]goto[/inlinecode] But using goto for looping is [B]very very[/B] bad practice. For looping you can use the [inlinecode]for[/inlinecode], [inlinecode]while[/inlinecode], [inlinecode]do-while[/inlinecode] keywords. It is much easier to understand and easier to maintain than [inlinecode]goto[/inlinecode]. | |
Re: [quote=dilip.mathews] [COLOR=blue][COLOR=black]Can you tell me where exactly compiler places that string?(which segment of memory)[/COLOR][/COLOR][/quote] This depends on the compiler, so you shouldn't worry about it. The standard has made this part implementation dependent. Infact it hasn't even said whether the same string literal used in two different places are equal … | |
Re: [tex]1+2+3+...+N[/tex] = [tex]N*(N+1)\over 2[/tex] Geometrical Series Addition = [tex] {N^2 \over 2} + {N \over 2}[/tex] [tex]\lim_{N\to\infty}{N^2 \over 2} + {N \over 2} = N^2[/tex] So it is [tex]O(N^2)[/tex] | |
Re: [url]http://www.daniweb.com/techtalkforums/announcement8-2.html[/url] | |
Re: [URL="http://www.cprogramming.com/tutorial.html#c++tutorial"]C++ Tutorial at CProgramming.com[/URL] [URL="http://www.cplusplus.com/doc/tutorial/"]C++ Tutorial at CPlusPlus.com[/URL] | |
Re: i want to know abt Ellips arugument passing to any funtion plz reply me quickly If you have a new question, create a new thread. | |
Re: Just out of curiosity, who wrote this code? [code] int main () { char board[NUM_ROWS][NUM_COLS]; // Message board // Initialize the message board to all periods. [COLOR=Red] fillRectangle(board,0,0,NUM_COLS,NUM_ROWS,'.');[/COLOR][/code] | |
Re: What are the error messages? Have you configured the OpenGL and DevC++ environments properly? | |
Re: Lerner's solution gave some runtime errors. Here is a modified version of the OPs class. I passed most of the parameters by reference so that a local copy of the parameter (thereby cluttering the output) is not called everytime a function is called. [code]#include <iostream> #include <cstring> using namespace std; … | |
Re: Yes it will work. Try and see for yourself. | |
| |
Re: [quote=ranaz]can any one guide me how to remove these errors[/quote] Usually just including [code]#define FAR[/code] in a common header file should do the trick. The common header file should be after all your other include files. [quote=ranaz]where can i find this old vc++ 1.52.[/quote] I think if you have an … | |
Re: [quote=jazzz]Can anyone tell wat does this do?? - [code]_FOpen(Time_File,"r",fp_time); _Fread(&st_Time,sizeof(TimeHead),1,fp_time,TimeFile);[/code] Thankx jazz[/quote]Where did you find these functions? | |
Re: We don't give Programming Lessons here. You can search for tutorials such as [URL="http://www.cprogramming.com/tutorial.html#ctutorial"]this[/URL] in the internet. | |
Re: You can pass character by character to [URL="http://www.cplusplus.com/ref/cstdlib/itoa.html"]itoa[/URL] with radix 16. If you only want to display the hex values, you can use printf with format specifiers %x or %X. | |
Re: Where are the variable declarations for treeInsert, leftchild and the such? | |
Re: You are not doing the calculation for m after getting the value for y from the user.Put [inlinecode]m =y*12;[/inlinecode] after the [inlinecode]cin >> y;[/inlinecode] part. | |
Re: [quote=joshilay]u can write in anyone c or c++ ..whichever is comfortable to you ..[/quote]Remember one thing. Nobody writes code for you. If you have a problem with code you have written, post it, and someone may point out the errors for you. Other than that, asking someone to write code … | |
![]() | Re: I think it is not a problem with replace as such, but it is a problem with your algorithm. Since you are replacing "-" with " - ", the next character after the original "-" will become "-". So your code will become an infinite loop. Try replacing "-" with … ![]() |
Re: [quote=Lalo1985]I KNow WC is over, but I just wanna get this out there: Brasil must've been paid bank to play like they did against France, because I think we all agree that Brasil is a better team than France, but their performance left much to whish for in their game. … | |
Re: You don't need anything complex. You will only have to use the <string>, <fstream> and <iostream> libraries. You will have to read some file input tutorials in C++. Even that is not that complex. | |
Re: We don't do school homework, and I am not joking either. [URL="http://www.daniweb.com/techtalkforums/announcement8-2.html"]http://www.daniweb.com/techtalkforums/announcement8-2.html[/URL] Edit. You are always ahead of me Dave. Edit: But I think I deleted the email first :cheesy: | |
Re: Maybe [URL="http://www.daniweb.com/techtalkforums/post166285-2.html"]this[/URL] is what you are looking for. | |
Re: On the contrary, I find them pretty useful. Both as a communicating tool, since pseudocode can differ according to the person, and as a tool to understand the algorithm better. For example I couldn't make head or tail out of the OP's pseudocode, since I am not used to pseudocode … ![]() | |
Re: Right now, I am not experiencing it, but I remember seeing those lines in my browser. Not always though. Either when my computer or network is on a heavy load. | |
Re: What do you mean by inheritance in real life? The child gets what his parents have if they let him have it. That is the same in programming too. If you have a class A, whose child is class B, class B gets the things class A that has been … |
The End.