Do you have any links to the software on the web, so we can read about it?
Are you able to do something like
File->Save Log As...."
Do you have any links to the software on the web, so we can read about it?
Are you able to do something like
File->Save Log As...."
> hope I can get some codes for my project here.
The Architect: Humph. Hope, it is the quintessential human delusion, simultaneously the source of your greatest strength, and your greatest weakness.
Standard email is text, so the basic idea of font and formatting and styles might be dead in the water.
What happens next really depends on the email client at the other end.
If you don't know this, what you send might look OK or it might look an awful mess.
Before HTML, the convention was to imply bold-ness by saying *bold*
which some clients would display bold as a result.
Or perhaps learn some basic HTML.
http://www.w3schools.com/html/html_formatting.asp
There are all sorts of programs that can record UI, then play it back later.
A few examples
http://www.mjtnet.com/
http://www.flashplayerpro.com/MacroRecorder/
http://www.macro-recorder.com/
The short answer is yes.
The longer answer is no.
> I'm not a student of the computer languages
Without some ability to write out the commands you want to perform, it's going to be hard to explain at a distance.
> (when no-one's available to set it manually.)
Does this mean you know exactly what to type when there is someone around?
> cin >> str;
This won't read a string with spaces - it uses spaces for a delimiter to begin with.
Use getline() to read a whole line - spaces and all, then try.
> ;determine the size of binary value
In a loop, you
- divide the number by 10
- increment a count
When you reach zero, your count is how many digits the number needs to be printed.
IIRC, the div instruction stores the division result in one register, and the modulus result in another. You'll need that for step 2.
> double n = 6.0;
Why are you using a double to limit the range of an integer for loop?
> but I don't think its the problem because I have similar programs using double and they work fine.
Yes, it's a common argument. Deeply flawed, but common.
"I made program x work therefore program y must be flawless" doesn't wash. We often see code here which works purely by luck, rather than down to any skill of the programmer.
Start using a debugger.
- step the code one line at a time,
- do the same calculations on paper (or on a calculator)
- examine the program variables involved, and your hand results
- where they differ, then work out which approach has the bug.
But are you also aware of the inherent problems of floating point?
http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems
Your code may be algorithmically correct, but from a computational view, the accumulation of inaccuracies is destroying your results.
Look for places where you're trying to use a very large number with a very small number.
Eg.
1 + 0.00000000001
could still be just 1 when you're done, even if you put it in a loop.
The tiny fraction is of no significance to the larger value, so it just disappears.
Over time, you might expect your 1 to grow in size towards 2 say.
But it will forever be stuck at 1 as a float.
> void mapInit::setMap( unsigned int mapSet )
What does this member function have....
> unsigned int getCell(unsigned int x, unsigned int y)
That this 'member' function lacks?
Arrays cannot be assigned.
You must copy each element in turn - two nested loops ought to do it.
> #include <stdafx.h>
Delete this line,
then do
Project->Settings->Compiler (or pre-processor - depends on which VS you have).
Look for the option that configures "use precompiled headers".
Then turn it OFF.
> I have doe SQL fro some time now but I have never done blob.
So did you learn what you know by reading the manual, or did you learn it some other way - osmosis perhaps?
> 2. How to create a C++ object to store in blob and get it back? Is ther anything special?
Like a manual?
Does your code report any useful error messages on failure?
Do you have a firewall?
Are you assuming that message transport is "instantaneous"?
Are you assuming that message transport never fragments messages?
Oh I get it id3tool "name0.mp3" -a "the Album" -r "the Artist" -y "2001"
This adds the tags to the dummy file set name=id3tool name0.mp3 | grep Album
This is your attempt to read them back again?
Does this command work on it's own? id3tool name0.mp3 | grep Album
If so, then the syntax for putting that output into a variable is as follows set name=[B]`[/B]id3tool name0.mp3 | grep Album[B]`[/B]
Note the back-ticks!
This is the same, if you're using bash shell. set name=[B]$([/B]id3tool name0.mp3 | grep Album[B])[/B]
> int count0;
Here's the problem, you don't initialise your counters to zero.
> mul=(float *)malloc(36000);
a) why are you casting malloc in a C program? Did you forget to include stdlib.h?
b) who said sizeof(float) was 4 bytes on your machine?
If you want 9000 floats, then say mul = malloc( 9000 * sizeof *mul );
then it doesn't matter how big floats really are.
c) check for success before trying to dereference the memory.
> *(mul+i)=*(mul+(i-1))+(1/(float)(72000/2));
Consider using subscript notation. It means the same to the compiler, but it's easier on the eye mul[i] = mul[i-1]+(1/(float)(72000/2));
Have you asked Nvidia tech support?
> I was wondering would this be considered a quine?
No.
Reading from a file renders the problem trivial in nearly all languages.
Some real examples
http://www.nyx.net/~gthompso/self_pyth.txt
Well it really depends on what ACTUAL implementation you're talking about. There is no "one size fits all" answer.
If your processor has only one IRQ level, then you're stuck with chaining.
If you've got 256 levels say, then you can spread out a little.
Are you looking to tie your program to that specific machine, or are you just looking for something which is unique?
If it's the latter, then consider a http://en.wikipedia.org/wiki/Uuid
> I'm trying to get the album name for the mp3 file, but when I echo the name I get a blank line back.
Try feeding it a VALID mp3 file, not some crude thing containing only a single dot.
> No at school it runs perfectly, no warnings in the compile/link and no anomalies in the run time.
That's just pure dumb luck.
I look at your main() and I see a whole host of uninitialised variables.
The fact that it runs at school just means you got 'good' crap in those variables.
At home, you get a different set of crap values, and a different outcome.
Start by making sure EVERYTHING is initialised.
Excellent choices, I recommend you go with those then.
First, compile with as many warnings as you can.
The compiler will spot things like uninitialised variables, which is a common mistake. Fortunately for you, this seems not to be the case, but still there are issues.
$ g++ -W -Wall -ansi -pedantic -O2 foo.cpp
foo.cpp: In function ‘int main()’:
foo.cpp:132: warning: unused variable ‘COUNT’
foo.cpp: At global scope:
foo.cpp:170: error: extra ‘;’
foo.cpp: In function ‘void Load(ListEle_t (&)[200], Addr_t&, Addr_t&)’:
foo.cpp:204: warning: unused variable ‘Curr’
foo.cpp:205: warning: unused variable ‘Pred’
foo.cpp: At global scope:
foo.cpp:224: error: extra ‘;’
foo.cpp:226: warning: unused parameter ‘Avail’
foo.cpp:255: error: extra ‘;’
foo.cpp:257: warning: unused parameter ‘Avail’
foo.cpp:278: error: extra ‘;’
Second, Use the debugger (Luke)
$ g++ -g foo.cpp
$ gdb ./a.out
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /home/forum/work/a.out
Program Starting..........
Begining Load..........
Enter the name of the data file to be used:
test.txt
Read Complete.........
Load Complete.........
*** stack smashing detected ***: /home/forum/work/a.out terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7e58da8]
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x0)[0xb7e58d60]
/home/forum/work/a.out[0x80499bf]
[0x656e6f]
======= Memory map: ========
08048000-0804a000 r-xp 00000000 08:01 327142 /home/forum/work/a.out
0804a000-0804b000 r--p 00002000 08:01 327142 /home/forum/work/a.out
0804b000-0804c000 rw-p 00003000 08:01 327142 /home/forum/work/a.out
08e6f000-08e90000 rw-p 08e6f000 00:00 0 [heap]
b7d5a000-b7d5b000 rw-p b7d5a000 00:00 0 …
> what you consider is the best tool for a developer to achieve more and best payed works?
None of them.
a) the going rate for a particular skill depends on geography (where are you?)
b) it depends on the economic cycle.
c) it depends on whether it's been made obsolete by something newer and better.
One minute you're flying high and the next, your skills in codegrubber 4 aren't worth spit.
Picking what is hot now is WAY WAY too late.
a) there's already plenty of people with plenty of experience.
b) by the time you get to their level, the party will be over.
> if (s == 'a'||'A'||'e'||'E'||'i'||'I'||'o'||'O'||'u'||'U')
I explained why this was wrong in your previous thread :@
http://www.daniweb.com/forums/thread262721.html
> Is there a different command other then printf that would produce the desired display?
Well you could post some code which actually shows your attempt at using curses.
Abandoning it, and stating "do you have any other idea" isn't the way forward.
Well to use a library takes two steps.
The first tells the compiler about (say wrefresh(), it's name, parameters etc), and you do this with #include
The second tells the linker WHAT actually implements the functionality you requested. If your library is called libcurses.a, then you typically have -lcurses
as a command line option when you compile.
C:\Duh>copy /?
Copies one or more files to another location.
COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]
source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
/D Allow the destination file to be created decrypted
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/N Uses short filename, if available, when copying a file with a
non-8dot3 name.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.
/L If the source is a symbolic link, copy the link to the target
instead of the actual file the source link points to.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.
[B]
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).[/B]
> memset(&self,0, sizeof(self));
I saw this again and gave up caring....
good luck with your future segfaults
> I still need the function to figure out the length of the array.
Pass the length as another parameter.
Or, consider the alternatives that std::vector
offers.
The sizeof thing you posted only works when the actual array definition is in scope. As soon as you call a function, you're just left with a pointer.
> And i'm quite interested in gaming , can i do game programming if i go for SE ?
A good SE course is independent of programming languages and problem domains. Things like design for example would follow similar principles whether you were programming in COBOL for some insurance company, or programming fast graphics in C for a games company.
> So what is the latest version of C ?
This is the latest published standard - http://en.wikipedia.org/wiki/C99
Though not too many compilers' implement all of it yet.
The commonly available version is ANSI-C89 / ISO-C90 - http://en.wikipedia.org/wiki/C90_%28C_version%29#ANSI_C_and_ISO_C
Any decent compiler will usually have some indication of this.
> Will the colleges or universities show out the version of C they are using in the course syllabus or schedule?
Perhaps, or just ask them.
FWIW, not learning C first is possibly a good thing (I was taught using Pascal). C is very much in the "easy to learn, hard to master" category. It will be a lot easier in the long run if you've already got some "how to program" experience.
> send(clientfd, buffer, recv(clientfd, buffer, MAXBUF, 0), 0);
How many different return states do send() and recv() have between them?
How many are you checking? - ZERO!
> memcpy(&self, 0, sizeof(self));
Do you know the difference between memset() and memcpy()?
> struct timeval timeout;
But only if you're interested in timeouts.
> struct fd_set master_set, working_set;
Yes -
> Then we send our socket to non-blocking mode (using fcntl()).
AFAIK, this isn't necessary.
Great, 2/10 for effort.
What about ALL of the strcmp calls.
This is getting old REALLY fast.
I mean if ( strcmp(pizza, Plain) == 0 )
Like that.
Also, watch out for operator precedence when you're trying to compare two strings.
> if(strcmp(pizza, Plain))
strcmp() returns ZERO when the strings match.
Personally, I regard SE as being a superset skill of programming.
Programming in it's narrow sense is just turning detailed design into code.
SE in it's broadest sense covers the whole software development life cycle.
But, you will be able to find:
- SE courses which are little more than tarted up programming courses.
- Programming courses that aim to teach you something about SE as well.
> And , i heard that India is the top country in programming , is that true ?
Well it isn't true for all those schools that still use fossil Turbo C as the "reference" implementation for C.
But "top" implies a sort, which implies a relative test of some kind.
I bet India is top, if you go by numerical number of programmers.
> In OOAD we have made an application in java swing and also done its implementation.
So document this then, if your SE course is just about documentation.
Well you could try reading the manual....
Seriously, you're flopping around like a fish out of water.
Programming at this level needs far more "go" than you seem to have.
All you can do is throw back pithy 1-line "thanks but..." messages only hours after posting. Just HOW much research and test did you ACTUALLY do in that time. My guess is none.
Do you think that your problems will be over just as soon as you've got the emulator up and running?
Ha!, just wait until you try to write your boot code to actually DO something useful. Then you'll find out what confusion and frustration really mean.
> But can you please give me any other idea which is more involved and a bit high in degree of difficulty?
And thus the Goldilocks problem is revealed, and why it is futile to ever attempt getting involved in "plz suggest a project" threads.
Any answer we come up with is either:
- too easy (30%)
- too hard (60%)
- just right (10%)
It's already a crap shoot with losing odds.
But that's not the end of it. No sirreee, not by a long shot.
Having failed miserably at thinking of a topic, they're going to be just as clueless on the implementation side as well.
Natural next questions being:
- can you explain it in more detail
- can you help me do it
- can you ....
IOW, nothing but an open ended time sink
@adcodingmaster
To even come close to answering this kind of question with any degree of accuracy, you would need to post details of the courses you have taken, the grades you got and your general level of interest in each subject.
Picking a decent project based on your first post would be an extraordinary feat of extrapolation
A virtual machine perhaps?
http://en.wikipedia.org/wiki/Dosbox
There are plenty about, one should suit your purpose.
Well for 10 lines of code, the indentation sucks.
Is the rest of your code an unreadable mess?
Do you get any warnings when you compile?
$ gcc -W -Wall -O2 -c foo.c
foo.c:5:14: warning: multi-character character constant
foo.c: In function ‘error’:
foo.c:5: warning: comparison is always true due to limited range of data type
Hint: consider the difference between /0 and \0
My guess is your #define WHITE
has a ; in it.
> It is true that I have finished my C++ course two years ago.
And it looks like you forgot everything since.
> gets(s1);
This is just AWFUL
> sprintf(s2,"START %s",s1);
So what happened to using std::string
(since this is C++ - right?)
> const char* prgm=s2;
And this does what exactly, that system(s2) can't?
Not to mention, it's only 5 lines long and already the lack of indentation is making it look messy.
Well this lot just seems wrong to me
C:/axis2c-bin-1.6.0-win32/lib/axiom.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_engine.lib
C:/axis2c-bin-1.6.0-win32/lib/axutil.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_http_receiver.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_http_sender.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_parser.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_tcp_receiver.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_tcp_sender.lib
C:/axis2c-bin-1.6.0-win32/lib/axis2_xpath.lib
-axutil
-axiom
-axis2_engine
-axis2_parser
-axis2_http_sender
-axis2_http_receiver
-axis2_tcp_receiver
-axis2_tcp_sender
-axis2_xpath
All the green options would appear to be linking the entire library, whether you need it or not.
The usual syntax (on a Linux/Unix machine at least) would be to say something like -laxutil
But for this, perhaps you should state -laxiom.lib
That's a lower-case 'L' at the start BTW.
You've already set the path with a -L option, so there is no need to state the full path to each library again.
For sure, the red options are just plain wrong. The linker isn't going to do anything with them.
You mean there's a brain somewhere?
http://www.daniweb.com/forums/thread259990.html
http://www.daniweb.com/forums/thread259551.html
So have you figured anything out in the past week?
As far as I can tell (which is already perhaps more than you can tell), this field is pretty much at the cutting edge.
Either big businesses are interested, in which case NDA's abound, and the only way you get to know is by being employed to work on that project, or hand over $$$ and sign legal papers.
Or university research departments, who when they do publish will do so in specialist publications.
In short, you're NOT going to get a handy 1-page synopsis or a few lines of code giving you "the answer".
<<nevermind, I have nothing to add to this discussion - code is too messy>>