5,237 Posted Topics

Member Avatar for lhei_mhei

Gee, 4 posts in 4 minutes. One wonders how you managed to find the time to read the intro threads. [url]http://www.daniweb.com/forums/announcement125-2.html[/url] Oh wait, that's right, you DIDN'T!

Member Avatar for Salem
0
92
Member Avatar for jproducer

Well your while not eof implies that you need to read input inside the loop. Did you even want a loop here?

Member Avatar for jproducer
0
605
Member Avatar for anuj_sharma
Member Avatar for Salem

[url]http://www.talklikeapirate.com/piratehome.html[/url] Here be a FAQ for ye all. Q: What's your favourite data structure? arrrray's me hearty! Q: Which virus scanner do you use? Avast!, and ye be free of the vermin. Q: What's your favourite syntax? Arrr, that'll be the main brace to keep your program on a steady …

Member Avatar for Nick Evan
1
353
Member Avatar for sneekula
Member Avatar for ZDS187
Member Avatar for Nick Evan
0
153
Member Avatar for IrishUpstart
Member Avatar for stilllearning
0
652
Member Avatar for Reset
Member Avatar for dhaval942

> i don't know where to start this, Were you born yesterday, and this is your first programming assignment? Sure you know how to begin. Look at the first statement and just think about it. Prompt for input, read some input, print out what was read in. Surely this was …

Member Avatar for Salem
0
74
Member Avatar for c++ prog
Member Avatar for Amit99531
Member Avatar for Salem
0
51
Member Avatar for DevC++4.9.9.2

Lines 32,33 of your code getData(data, a, counterA); getData(data, b, counterB); 1. counterA and counterB are both 0, and will remain so after the call. Is this counter a limit or a result? 2. the while eof() thing in the function will ensure a gets all the data, and b …

Member Avatar for Salem
0
182
Member Avatar for wolih

[url]http://www.newty.de/fpt/index.html[/url] Pointers to member functions need extra syntax. > action_index[name].call = (*function); If you're just storing it (it looks like you're trying to call it), it would be [ICODE]action_index[name].call = function;[/ICODE]

Member Avatar for wolih
0
139
Member Avatar for melissajohn718

[url]http://www.daniweb.com/forums/announcement8-2.html[/url] So how did you fare with hw1.cpp, hw2.cpp and hw3.cpp ?

Member Avatar for Narue
0
182
Member Avatar for moshe12007

I think the OP is trying to read the keyboard without blocking on a key being pressed. It's possible, but it depends on your OS and compiler as to how you do it.

Member Avatar for Salem
0
178
Member Avatar for ssharish2005

> But they never get back later. Yeah, agencies are like that, even for pros. Unless you're exactly what they're looking for, you're just padding for their database. The only way to get them to do stuff for you (it seems) is to keep calling them to the point they …

Member Avatar for ssharish2005
0
131
Member Avatar for godloverails
Member Avatar for Salem
0
156
Member Avatar for syuk

So what test case(s) does it fail on? - the first seat? - the last seat? - the spill-over when one class is full, and you give the option to book in the other class? Consider a utility function which searches for a free seat, or returns a flag if …

Member Avatar for Salem
0
146
Member Avatar for shamila08

> int *Value; Where does this point? Answer, nowhere. You need to allocate some space in your initialise function.

Member Avatar for stilllearning
0
108
Member Avatar for dmanw100
Member Avatar for dmanw100
0
109
Member Avatar for mauro21pl

You didn't include stdlib.h, so malloc is incorrectly prototyped. If this really is a C program, you don't need the cast.

Member Avatar for Salem
0
102
Member Avatar for SS7
Member Avatar for Hannahlv

Like for example, getting the source code for existing p2p clients? "p2p" isn't magic. It's just a pair of sockets (usually) and an understanding of the protocol (usually the hard part) of sending and receiving the right information, and knowing what to do with it.

Member Avatar for Hannahlv
0
447
Member Avatar for superdave421

Q1 are you learning C or C++? > char *temp =(char*)malloc((l+r)*size); You don't call free(temp) at the end. Also, if you start at 3 and end at 5, how many slots in the array do you need? Surely it's not 8 You're also modifying l in your code, and you …

Member Avatar for Salem
0
79
Member Avatar for Duvva
Member Avatar for zhinokin

You mean like a string say "128" into a numeric value say 128 (or 0x80, or 10000000) If you posted your code, we might have a better idea what it is you're trying to do, and maybe even suggest a quick fix to your own work.

Member Avatar for zhinokin
0
153
Member Avatar for zhinokin

Have you tried hard-coding two identical strings, calling 'compare' and checking the result? What about two different strings? What about strings of different length, or indeed not equal to 5 chars (a very speciifc case you would agree)

Member Avatar for zhinokin
0
107
Member Avatar for nagennaskar

Well no one will give you loads of money just because you think you're worth it. Without a good CV from well known companies (ie, people might be able to verify what you say), or an excellent online reputation at say elance or rentacoder, you're no different from the 1000's …

Member Avatar for Salem
0
102
Member Avatar for iamthwee

Create a std::vector of std::string with a size of argc. Then use this [url]http://www.richelbilderbeek.nl/CppCopy.htm[/url] Just a guess...

Member Avatar for vijayan121
0
92
Member Avatar for PuQimX

You missed this on your way in [B][URL="http://www.daniweb.com/forums/announcement8-2.html"]We only give homework help to those who show effort[/URL] [/B] > I don't know to write this program because I'm new using C++ Did your previous assignment cause as much trouble? Or did you get someone else to do that for you …

Member Avatar for obj7777
0
112
Member Avatar for Azurea

That depends on your coding standards. [URL="http://www.misra-c2.com/"]MISRA C[/URL] for example disallows all of them except break; in the context of a switch statement.

Member Avatar for Salem
0
97
Member Avatar for akmittal

So is the "not working properly" related to the "add" part of the problem or the "lock" part of the problem? cli isn't going to do anything useful at all if you have multiple cores. AFAIK, it's a "per core" thing, so disabling it on one doesn't stop the other …

Member Avatar for Salem
0
156
Member Avatar for chiwawa10

> When the debug's DLL is used, the application does not crash when exit (running on Vista). > However, it crashes upon exit when the release's DLL is used instead (also running on Vista). That means there are bugs in your code for sure. Unless you post some code, then …

Member Avatar for Salem
0
118
Member Avatar for Parv_boy
Member Avatar for Prabakar

> that will constantly read a record from a database. Once a second? Or maybe once a minute? Make one (or several, for redundancy) the master which is responsible for reading the DB. When it changes, the master sends out a "UDP Broadcast" packet (or several, for redundancy) which basically …

Member Avatar for Prabakar
0
285
Member Avatar for AwesomeLord

Isn't it obvious? Your main returns void (which is wrong) The compiler tells you it must return int So change it to int main and be done with it.

Member Avatar for MelechM
0
81
Member Avatar for faisaly

An example would be certain aspects of the OS which deals with priviliged instructions. There are others, do you have any to suggest?

Member Avatar for Olof Forshell
0
655
Member Avatar for noktasizvirgul

Are you talking about actual assembler code, as written and commented by a human? Which is what the tool you referenced would seem to need. Or the disassembler output (devoid of comments) as output by say dumpbin ? In which case, you're pretty much hosed. Whilst decompilers exist, the result …

Member Avatar for Olof Forshell
0
1K
Member Avatar for Diode

Say [ICODE]char ch[10];[/ICODE] but make sure the array is big enough. Also, you can't do this either [ICODE]strcat( str, ch );[/ICODE] str is a string constant (it may be in read-only memory). Modifying it will kill your program. Use say [ICODE]char str[100] = "a string";[/ICODE]

Member Avatar for Diode
0
2K
Member Avatar for Ene Uran

Some of the stuff on those 419 busting sites is hilarious! That reminds me, I was selling some stuff online recently. I only got two hits, both scammers. So I told both of them to contact me on my alternative email address and just swapped the emails over. Then plonked …

Member Avatar for Lardmeister
0
161
Member Avatar for hiraksarkardg

Well that depends. Your average desktop doesn't allow you to just invent memory addresses and let you scribble all over it.

Member Avatar for Ancient Dragon
0
119
Member Avatar for alanchan

Read the next line of the manual page, update the code and tell us (if you still can't figure it out) what the extended error is. [quote=msdn] If the function fails, the return value is zero. For extended error information, call GetLastError. [/quote] Also, the function is available for windows …

Member Avatar for alanchan
0
72
Member Avatar for watercolour

Begin with the basics of declaring arrays with a meaningful amount of space, and using fgets() to read input. Then maybe move onto separating numbers from operators. Then finally proceeding to evaluation.

Member Avatar for watercolour
0
123
Member Avatar for hiraksarkardg

What sort of "help" did you have in mind? Reading a file and outputting say Found keyword "for" found token "(" found identifier "i" found token "=" etc would be a big step. This isn't exactly a trivial task.

Member Avatar for ssharish2005
0
99
Member Avatar for AlSal
Member Avatar for Gaming wiz

[url]http://en.wikipedia.org/wiki/RAID[/url] Disks "in series" increase storage capacity Disks "in parallel" improve read performance and data security.

Member Avatar for caperjack
0
151
Member Avatar for AlSal

> baseFrom != 2 || baseFrom !=5 So you type in 2 The first one becomes false (good) The second one (and all the others) remain true (not so good) You probably want && , not ||

Member Avatar for Salem
0
92
Member Avatar for KraMer

How many different operating systems do you plan to support? Is it a console only thing, or does it include a GUI? If it's a GUI, are you going "native" on all the platforms, or using a portable toolkit such as wxWidgets. What's so special about 1MB? Also, is that …

Member Avatar for KraMer
0
199
Member Avatar for vidit_X

> #include<iostream.h> This is old. The correct form is #include <iostream> If you (or your compiler) don't know about namespaces, then it's time you looked into it, or upgraded your compiler. namespaces have been standard issue since 1998, so there's really no excuse any more. > #include<conio.h> This is non-standard. …

Member Avatar for vidit_X
0
656
Member Avatar for urbancalli

Sure it does, you just need to add it. Tools->Package manager Then locate "Simple DirectMedia Layer" Install and enjoy.

Member Avatar for ArkM
0
257

The End.