6,741 Posted Topics
Re: >I wanna learn assembler and I can't find any good sites... That's because there aren't any. The lack of resources makes assembly much more difficult to learn. You'll end up spending a lot of time with google piecing together little bits from all across the board. >what ones would u … | |
Re: >how do u write this if then statment but in c++ if g=3282 then g=k; Don't you have a book? Learning a language is extremely difficult without a proper reference available. >to bad there wasnt a then like there is an else in c++ Why? "then" is typically used as … | |
Re: Strangely accurate: [IMG]http://images.blogthings.com/worldsshortestpersonalitytest/white.jpg[/IMG] You are pure, moral, and adaptable. You tend to blend into your surroundings. Shy on the outside, you're outspoken to your friends. You believe that you live a virtuous life... And you tend to judge others with a harsh eye. As a result, people tend to crave … | |
Re: Windows users tend to find Linux easier if they start out with a good GUI environment like KDE or Gnome. You don't [b]have[/b] to start out using the command line. ;) | |
Re: TASM has an ideal mode that's very close to MASM syntax. As such, any book that uses MASM or similar will work for TASM as well. That said, I don't know of any good books that use it, so I can't recommend any. Do a google search and you'll be … | |
Re: I refuse to look at your code until you format it like a normal human being. It would also help if you'd stop acting like a wuss and ask a [url=http://www.catb.org/~esr/faqs/smart-questions.html]smart question[/url]. | |
Re: Just out of curiosity, do you post threads like this because you're incapable of coming up with something original? I sure hope not. It would be a truly sad existence if your only claim to fame is as a middle man providing links to other people's work. | |
Re: >who are you to decide this ?? The forum rules decided this and the community enforces it. If you have a problem with that, leave. | |
Re: Because you're just swapping addresses, not values. You want to dereference the pointers: [code] void f( int *a, int *b) { int temp; temp=*a; *a=*b; *b=temp; } [/code] | |
Re: Presumably, mvwprintw is just a wrapper around some form of printf, so unless you want to look at your documentation, we can only assume that the format modifier follows the same rules. The asterisk means that a value will be supplied as a later argument. The first asterisk is the … | |
Re: >What is the Importance and uses of data stuctures in Programming using C/C++ when using it? That should be intuitively obvious. Data is critical to programming and storing that data in effective ways is equally critical. >How Stack,Queue,and list works and give example problem that solve stacks This reeks of … | |
Re: [QUOTE=elektroniklotto]Well go to [url]www.google.com[/url] to check 4 what so ever u are looking 4[/QUOTE] Wow, and just as I was beginning to hope that the real posting geniuses had left us... Let's start with your silly use of 4 and u. Such abbreviations are neither smart nor appropriate for a … | |
Re: >hey ..d ans is very simple d array shld be declare as array[4] nt as array[3] ..dis is solve it Not only are your grammar and spelling atrocious, this thread is over [B]two years old[/B]. Look at the date of the thread before you post in it, please. And keep … | |
Re: The output is undefined, there's no correct answer to your question. | |
Re: >Its always priniting output as 16. Why is it like that? Because that's the actual size of the object. The implementation probably looks something like this: [code] template <class T, class Traits = char_traits<T>, class Alloc = allocator<T> > class basic_string { public: // Lots and lots of interface stuff … | |
Re: >Could anyone of you tell me how to convert string to const char* in C [code] const char *p = my_string; [/code] >function c_str() is not working Are you working with C or C++? Make up your mind. C doesn't have a string type, and C++'s string type is incompatible … | |
Re: They've giving away all of our secrets! Now I have to destroy them with my orbiting brain lasers. | |
Re: >what is actually meant by object oriented Put simply, the problem is solved by thinking with objects. Then you ask what an object is and we say that it's a self-contained unit of data and code that operates on that data such that a single problem can be addressed using … | |
Re: This reeks of homework, and it would be better placed in the Software Design forum. | |
Re: I'm sorry (not really), but the best way to get your butt ignored is to copy and paste your homework like that. It implies that you think we're obligated to do everything for you, which we aren't. That's very presumptuous and incredibly rude. | |
Re: Please don't attach your code like that. Most of us won't go through the effort of downloading an attachment. Your code is short enough to fit easily within the post, as are your homework requirements. There's no need to attach it as a word document. And no, we won't do … | |
Re: >are the languages part of any of them Yes. >Any suggestion on what to order? Go to the Visual Studio web site and compare features, then order what best fits your needs. | |
Re: >i have no clue what i'm doing Obviously. >It's fairly easy to use a ostringstream object or a derived class to output >text like a normal stream class like cout. And it's usually a disaster. The correct way to customize a stream to a different destination is to replace the … | |
Re: A pointer to a member requires three distinct parts. First, you need to create a pointer (qualified by the class whose member it points to): [code] #include <iostream> class test { public: int i; }; int main() { int test::*p; } [/code] Then you need to assign the member you … | |
Re: >Which argument-passing-styles are available? Um, all of them. >What is the best way to create/call procedures? It depends on your needs. It could be as simple as a jmp there and back to a full call/ret pair with a stack frame and all of the glitz and glitter that high … | |
Re: Static allocation is fast, but set in stone. Dynamic allocation is slower, but you can grab varying chunks. This sounds a lot like a homework question. | |
Re: >i'm not yet a computer programmer but i want to be soon Okay, be sure to start small and work your way up to what you want to do. Most people jump into programming and expect to write the next killer app after a few months of learning. Then they … | |
Re: [QUOTE]- If I create this compiler, is it easier/better to compile to assembly, and then let an assembler translate that to machine code, or compile directly to machine code?[/QUOTE] It's easier to delegate the nitty gritty machine code stuff to an assembler. If you're writing a simple compiler then that's … | |
Re: The "a" mode of fopen always appends, regardless of any seeking you do afterward. You want to open the file with "w+b" for write/update access in binary. You have to use binary because text doesn't allow arbitrary seeking like you're trying to do. You may also want to read up … | |
Re: Seven. >1- 9 correct - You're, like, sorta a teenage dude? Works for me. :) | |
Re: >However, what would be most helpful or useful to YOU guys? Being able to choose how they're sorted from, say, a drop-down list. | |
Re: >I need the logic to implement a stack by using two queues. There's no practical application for this, so we can definitely conclude that it's homework. In that case, what have you tried and what have you learned from it? We're not going to just solve the problem for you … | |
Re: >#include <assert.h> You haven't used this, so there's no point in including it. >#include <malloc.h> stdlib.h is the header you want for malloc. >#include <conio.h> You don't use anything from conio, so why kill your program's portability? >main ( ) The correct definition for main is [inlinecode]int main ( void … | |
Re: It means that Visual C++ 6 sucks. This is a known problem with that compiler, and it has nothing to do with your code, which is correct. The newer versions of Visual C++ are much better about such things. | |
Re: I've done enough CGI with C and C++ to realize that they're very poor languages for it. Perl, or any language with powerful string handling capabilities, is much better suited to CGI. | |
Re: >What other forums are you a member of? Presently I visit daily: Daniweb cprogramming.com programmingforums.com wambooli.com comp.programming comp.theory comp.lang.c comp.lang.c++ alt.lang.asm comp.lang.asm.x86 | |
Re: params is a pointer to the cells array, but the cells array is destroyed when build_celldata returns. | |
Re: It's a type mismatch. %d expects a pointer to int, but you give it a pointer to double. >just test whether the input IS numeric? If scanf returns a certain value, it failed. Your documentation will tell you what values mean what failures. | |
Re: >It's probably based on your posting pattern and the frequency of your visits. No, it's a popularity contest. The moderators vote on it. :) | |
Re: I'm betting your header file doesn't have inclusion guards on it: [code] #ifndef MY_HEADER #define MY_HEADER #define LOWFREQ 1 #define HIGHFREQ 30 #define CHANNEL 2 #define MAXSAMPLE 200 class WAVELET1 { private: double fTF [CHANNEL][HIGHFREQ-LOWFREQ+1][MAXSAMPLE]; public: WAVELET1( void ); ~WAVELET1( void ); void testTF( int,double, double *); double correlation( int, … | |
Re: There's no portable way to do this. What compiler and OS are you using? | |
Re: >Now, check for any repeated numbers, or numbers that are on the index >same as themselves using recursion; change the number again using >another rand() call. keep track of the number of changes made. Theoretically, this could be a neverending process. It's also very complicated, and I'm surprised it's the … | |
Re: >then after reading the input file will b as shown 100 Files are persistent, they don't work like that. If you want a destructive read, you'll need to build it yourself by rewriting the file. Since that's an expensive operation, you'll want to seriously consider whether you really need this … | |
Re: They're stored in the folder you specified when you created the project. | |
Re: I know it doesn't seem like it to you, but your question is ridiculous. I get the impression that you don't know C++ very well, you're new to programming in general, and you want to do one of the harder things in the programming field? Start with console mode programs … | |
Re: >please send in my mail If you're too lazy to come back here and get your answer, we're too lazy to provide you with one. >Hey it is dam URGENT Funny, I don't feel rushed at all. >my school is going to open within two days In other words, you … | |
Re: >A friend gave me those questions but up till now i have not been able to do them..!! Is your "friend" a teacher who teaches C and who's class you happen to be in? |
The End.