868 Posted Topics

Member Avatar for moe1983

Nobody will help you unless you show what you have done upto now. We do not do others homework.

Member Avatar for WolfPack
0
375
Member Avatar for shadevar
Member Avatar for shadevar
0
116
Member Avatar for dilip.mathews

[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?

Member Avatar for WolfPack
0
135
Member Avatar for comp_sci11

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 …

Member Avatar for Ancient Dragon
0
176
Member Avatar for knorden

[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]

Member Avatar for knorden
0
111
Member Avatar for bkelly

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 …

Member Avatar for bkelly
0
183
Member Avatar for himanjim

[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. …

Member Avatar for Dave Sinkula
0
79
Member Avatar for mhakhubexxx

[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 …

Member Avatar for WolfPack
0
89
Member Avatar for Bajajim

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 …

Member Avatar for WolfPack
0
64
Member Avatar for Tiga

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.

Member Avatar for WolfPack
0
36
Member Avatar for priya123
Member Avatar for squadjot

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 …

Member Avatar for squadjot
0
150
Member Avatar for rxgmoral
Member Avatar for anyone

What do you mean by unneccesary? You can use the [URL="http://www.cppreference.com/cppstring/index.html"]std::string[/URL] library.

Member Avatar for Salem
0
109
Member Avatar for savyasachi1973

[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]

Member Avatar for WolfPack
0
96
Member Avatar for portege

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?

Member Avatar for Dave Sinkula
0
4K
Member Avatar for hollystyles
Member Avatar for yonne

[quote=hollystyles]See! Flaming should be compulsory, not against the rules.[/quote] Hear Hear.

Member Avatar for vicec64
0
487
Member Avatar for dilip.mathews

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. …

Member Avatar for WolfPack
0
105
Member Avatar for rdubey_jsr

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]

Member Avatar for WolfPack
1
290
Member Avatar for rdubey_jsr

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.

Member Avatar for rdubey_jsr
0
169
Member Avatar for CyberLev

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 …

Member Avatar for CyberLev
0
108
Member Avatar for wingwarp

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].

Member Avatar for server_crash
0
136
Member Avatar for dilip.mathews

[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 …

Member Avatar for dilip.mathews
0
268
Member Avatar for skeet123

[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]

Member Avatar for WolfPack
0
116
Member Avatar for nehareddy33
Member Avatar for portege
0
126
Member Avatar for wingwarp

[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]

Member Avatar for wingwarp
0
168
Member Avatar for shekharpw
Member Avatar for gurudatta.verma

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.

Member Avatar for ~s.o.s~
-1
174
Member Avatar for tefflox

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]

Member Avatar for ~s.o.s~
0
331
Member Avatar for wingwarp

What are the error messages? Have you configured the OpenGL and DevC++ environments properly?

Member Avatar for WolfPack
0
2K
Member Avatar for vicky_dev

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; …

Member Avatar for WolfPack
0
404
Member Avatar for wingwarp
Member Avatar for Simon268
Member Avatar for ranaz

[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 …

Member Avatar for Ancient Dragon
0
164
Member Avatar for jazzz

[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?

Member Avatar for WolfPack
0
234
Member Avatar for jamshid

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.

Member Avatar for ~s.o.s~
0
254
Member Avatar for sgriffiths

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.

Member Avatar for Dave Sinkula
0
2K
Member Avatar for schmidty169

Where are the variable declarations for treeInsert, leftchild and the such?

Member Avatar for schmidty169
0
171
Member Avatar for goldeagle2005
Member Avatar for lballans

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.

Member Avatar for lballans
0
98
Member Avatar for joshilay

[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 …

Member Avatar for Laiq Ahmed
0
169
Member Avatar for iamthwee

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 …

Member Avatar for iamthwee
0
201
Member Avatar for Lalo1985

[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. …

Member Avatar for pty
0
60
Member Avatar for tefflox

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.

Member Avatar for tefflox
0
230
Member Avatar for bkaau

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:

Member Avatar for WolfPack
0
232
Member Avatar for gampalu

Maybe [URL="http://www.daniweb.com/techtalkforums/post166285-2.html"]this[/URL] is what you are looking for.

Member Avatar for Dave Sinkula
0
117
Member Avatar for aeinstein

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 …

Member Avatar for iamthwee
0
363
Member Avatar for Dave Sinkula

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.

Member Avatar for hollystyles
0
172
Member Avatar for jitterson

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 …

Member Avatar for jitterson
0
104

The End.