5,237 Posted Topics

Member Avatar for bhavya_talluri
Member Avatar for movingforward

Why are you presuming that it's the compilers' fault, and not your code? Your first time success is at best 90% skill and 10% luck. > The program is very complex, and big, so I do not want to recompile it Well that's what you'll have to do.

Member Avatar for StuXYZ
0
155
Member Avatar for karthisargunan

It's quite simple, you take char phone[] = "0000000"; Then write a function to do addition like you would on paper. char phone[] = "0000001"; When you get to char phone[] = "0000009"; the next one will be char phone[] = "0000010";

Member Avatar for Ancient Dragon
0
511
Member Avatar for Logi.
Member Avatar for Salem
0
91
Member Avatar for meabed

> //A quicker method is to simply use the value as an Except your other two methods never risk an out of bounds memory access. > 1. unsigned int arithmatic is faster than signed int. Where's your evidence? > 2. registers are registers ! They're simply faster than memory access. …

Member Avatar for Lisa1110
3
1K
Member Avatar for clutchkiller

> is there a reason why you WOULD NOT want to use wxwidget? As opposed to the dozens of other UI toolkits out there, with more or less portability. If you already know another UI toolkit, and are happy with it's level of portability, then why bother with another one?

Member Avatar for Nick Evan
0
81
Member Avatar for godnseeker
Member Avatar for Rashakil Fol
0
82
Member Avatar for bh7322

> wrd = (char*)realloc(wrd, (wrd_len+1)*sizeof(char)) 1. was it really worth dropping a single letter? 2. wrd_len never gets incremented. 3. you're assuming the memory returned by realloc is zero filled - it isn't. 4. your use of realloc is unsafe, but more on that later no doubt.

Member Avatar for bh7322
0
135
Member Avatar for arunprabhu.1

Start with fgets() to read each line. Then say strncmp() to find the temp lines. Then see what else you can figure out. Post code here when you're stuck. Don't forget to read the "how to post code" threads, and code tags, and all that jazz.

Member Avatar for me_ansh
0
82
Member Avatar for rciprogrammer

Who knows, unless you post your actual code. Perhaps you've got the serial port set to 7-bit characters, so the MSB is stripped.

Member Avatar for death_oclock
0
121
Member Avatar for jake88
Member Avatar for jake88
0
289
Member Avatar for riahc3

In dev-c++, add these options for the compiler [ICODE]-W -Wall -ansi -pedantic[/ICODE] Then it won't compile under dev-c++ either.

Member Avatar for riahc3
0
134
Member Avatar for maykofs

Announcement Announcement: We only give homework help to those who show effort

Member Avatar for yukapuka
0
141
Member Avatar for CPPRULZ

> The line of code this warning refers to defo=(defo/16.0); 16.0 is a double defo=(defo/16.0[COLOR="red"][B]f[/B][/COLOR]); Adding a trailing f would make a float version of 16.0

Member Avatar for Manutebecker
0
187
Member Avatar for swappy

Sure, a lot of people do this. [url]http://clusty.com/search?query=remote+home&sourceid=Mozilla-search[/url] Whether you use your phone to send an SMS or a web browser doesn't make much difference.

Member Avatar for Salem
0
139
Member Avatar for nishidh

Run it in the debugger, and let it catch the segfault. Then look around for the cause.

Member Avatar for Salem
0
109
Member Avatar for noureenjee

The error is in the chair. The error didn't read "how to post code" threads all over the forum. The error needs to do better at making a post which is readable.

Member Avatar for noureenjee
-1
141
Member Avatar for dgcs

[url]http://clusty.com/search?query=maxtor+rigel&sourceid=Mozilla-search[/url] Lots of interesting reading. [url]http://www.dataclinic.co.uk/bios-codes-maxtor-hard-disk.htm[/url] [url]http://www.phuket-data-wizards.com/en/maxtor-failures.php[/url] [url]http://www.xytron.co.uk/maxtor-hard-drives.html[/url] [url]http://www.vitaldata.ca/maxtor-data-recovery.html[/url] Seems more mundane than malicious.

Member Avatar for DaniWeb4Jim
0
708
Member Avatar for shasha821110
Member Avatar for death_oclock

Maybe [url]http://clusty.com/search?input-form=clusty-simple&v%3Asources=webplus&query=audio+analysis+algorithm[/url]

Member Avatar for death_oclock
0
106
Member Avatar for DBGuy007

What options have you come up with so far? You know, like a short list of possible candidates.

Member Avatar for tesuji
0
115
Member Avatar for orwell84

Copy the example dot.bash_profile to your home directory as .bash_profile Then start uncommenting the bits you would like, and adding any new things you would like.

Member Avatar for Aia
0
207
Member Avatar for samtan
Member Avatar for Blackeagle
Member Avatar for stonerain

[url]http://www.linux-usb.org/usb.ids[/url] You need to make your device return the right vendor/device ID, and supply windows with the appropriate INF file which allows it to install the correct drivers. More USB developer info here [url]http://www.lvr.com/[/url]

Member Avatar for Salem
0
103
Member Avatar for TasostGreat

We've been over this before [url]http://www.daniweb.com/forums/thread168362.html[/url] [url]http://www.daniweb.com/forums/thread169071.html[/url] Your problem is bound by the realities of your hardware.

Member Avatar for Salem
0
172
Member Avatar for the_swan

Use any language(s) you like. Just because someone uses say C++, that doesn't mean that using Fortran is impossible. Nearly all programming languages are equivalent [url]http://en.wikipedia.org/wiki/Turing-complete[/url] If you've got a network API and a graphics engine, the rest is pretty much a data processing exercise.

Member Avatar for Nick Evan
0
148
Member Avatar for serkan sendur

It really depends on what you want to achieve. [code] // disallow param = something and *param = something void doSome(const int * const param) // param can be changed, but what it points to cannot void doSome(const int * param) // you can't change param, but *param = something …

Member Avatar for skatamatic
0
69
Member Avatar for The Dude
Member Avatar for zandiago
0
151
Member Avatar for kevinchkin

No, go away and think for yourself. Or better yet, search this forum for all the other lamers who roll past with "please suggest a project" threads. You've been on a course for several years, has NOTHING inspired you to think "hey, that would be good....". If not, you've wasted …

Member Avatar for skatamatic
0
108
Member Avatar for serkan sendur

If you call malloc, then you need to call free. The compiler looks after allocation and deallocation of local variables.

Member Avatar for Narue
0
104
Member Avatar for majesticmanish
Member Avatar for asameh99

To stop the chicken from crossing the road. Or perhaps close the window of opportunity to malware when the OS is only partially installed, with network up and NO firewall configured.

Member Avatar for babsshittu
0
153
Member Avatar for tomtetlaw

Maybe, why not do a search for #ifdef on all the library header files?

Member Avatar for Comatose
0
114
Member Avatar for Somali Rathore

Or just keep repeating the question until you bore someone into submission? [url]http://www.daniweb.com/forums/thread168747.html[/url]

Member Avatar for ajay.krish123
0
111
Member Avatar for kenji

> char *customer; //251 including null byte > char accountNumber[20 + 1]; //16 including null byte This is C++, use std::string and move on?

Member Avatar for Salem
0
94
Member Avatar for number87

> sed -i 's/oldInfo/newInfo/g' "$dataFile" You need to watch your shell's quoting rules. Things in single quotes are preserved as is Things in double quotes allow $substitutions. Perhaps then sed -i "s/$oldInfo/$newInfo/g" "$dataFile"

Member Avatar for eggi
0
101
Member Avatar for Somali Rathore

Very good, now try it with something else, like a float or a struct or a pointer. It's a cheap trick, not programming knowledge.

Member Avatar for Narue
-2
203
Member Avatar for kaviths

1. It's \0, not /0 2. Your main() is inside your class, it should be outside.

Member Avatar for Freaky_Chris
0
91
Member Avatar for number87

[url]http://www.ss64.com/bash/gawk.html[/url] Eg. [code] awk -v find="Fred" 'BEGIN{FS=","; RS="\n"} [COLOR="Green"]$1 == find[/COLOR] {printf "%s, %s, %s, %s\n", $1, $2, $3, $4}' data.txt [/code] Just replace the green code with whatever test you like.

Member Avatar for Salem
0
116
Member Avatar for shaftoe3

Two things 1. 0xfd is used to fill memory after it has been deleted, just in case you try to use it later. So when you see 0xfd all over the place, that is what you should be thinking about. 2. The access violation says "writing", so it's a safe …

Member Avatar for Salem
0
126
Member Avatar for TasostGreat

Did you learn anything from your previous thread? [url]http://www.daniweb.com/forums/thread168362.html[/url] Or are you going to show us what you've tried? Or are you just going to keep repeating the same refrain until you get bored, or we magically stumble on an answer which you like the look of, even if it's …

Member Avatar for TasostGreat
0
211
Member Avatar for mcamacho07

> I'm also a C++ newbie, so this was a good learning experience for me as well. Unfortunately, you learnt how to do it (good), and the OP learnt that persistence will sometimes get you a free lunch (or in this case, homework on a plate). This is not good. …

Member Avatar for Salem
0
574
Member Avatar for bobomicgruvins

So what do you need help with? Improving your C++ knowledge to help you write the code? Improving your google knowledge to help you find the answers with minimal effort?

Member Avatar for Salem
0
228
Member Avatar for yasserovic

The challenge is for dim-wits like you to come up with a half-decent attempt at doing their own homework. Or at least come up with a better way of disguising the fact that it is homework. Fact is, so far, you've failed miserably at both of them.

Member Avatar for Murtan
0
122
Member Avatar for supremesoul

Sure, just tell us which Operating System and compiler you're using. Though I've got a sneaking suspicion you're going to say XP and Turbo C for some reason...

Member Avatar for scru
0
105
Member Avatar for whiteflags
Member Avatar for keyser_soze

[code] CreateProcess ( "C:\\abc.exe", " \"C:\\Documents and Settings\\xyz.exe\" 2", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi ); [/code] Some well-placed \" perhaps?

Member Avatar for Salem
0
118
Member Avatar for sivak

Wrong kind of assembly I'm afraid. This forum deals with various assembler languages (MASM etc), and not the .Net "assemblies".

Member Avatar for BlackSun
0
90
Member Avatar for osan

Seems more like a case of include "file.cpp" in multiple places (this is a bad thing to do).

Member Avatar for Ancient Dragon
0
281

The End.