6,741 Posted Topics

Member Avatar for winds

>fingerprint verififcation system with minutiae matching, function include threshold, thinning, and ridge detect Bwahahahahaha! >can any1 help and giving sample code?? What kind of print capturing device are you using? Is it optical or solid state? Is it even a real-time scanner? What about image recognition of old ink based …

Member Avatar for jwenting
0
100
Member Avatar for SelArom

>Hi I'm Josh Hi, Josh, I'm Julienne. >Hashing error LNK2019: unresolved external symbol "public: __thiscall >hashTable<class employeeType>::~hashTable<class employeeType>(void)" >(??1?$hashTable@VemployeeType@@@@QAE@XZ) referenced in function _main > >Hashing error LNK2019: unresolved external symbol "public: __thiscall >hashTable<class employeeType>::hashTable<class employeeType>(class employeeType const &,int)" >(??0?$hashTable@VemployeeType@@@@QAE@ABVemployeeType@@H@Z) referenced in function _main You've implemented the constructors and destructor, so …

Member Avatar for SelArom
0
211
Member Avatar for cltc72

I don't download attachments. If your code is relatively short, post it. Anyway, what are you having problems with? Do you know how to derive from a base class? You're not really giving us much to work with here.

Member Avatar for Narue
0
120
Member Avatar for slavic1

>My probelm occurs for large uneven matrices where I end up getting a segmentation fault. By default, Visual C++ 6 doesn't throw an exception when new fails, it returns a null pointer just like malloc. Your problem looks suspiciously like one of the allocations is failing and then you try …

Member Avatar for Narue
-1
156
Member Avatar for JoBe

Before I make suggestions, I'll give you a cool version: [code] #include <algorithm> #include <iostream> #include <map> #include <utility> #include <string> using namespace std; map<char, int> get_frequency ( const string& s ); void show ( const pair<char, int>& freq_item ); int main() { string s; cout<<"Enter a string: "; if …

Member Avatar for JoBe
-2
382
Member Avatar for mellinda

That's C, not Java. And the code is far from complete, can you give more detail?

Member Avatar for jwenting
0
140
Member Avatar for dontcare

>but I'm sure I would have saved a lot of time by debugging the program instead. Sometimes debugging is more efficient and cost effective, but sometimes the bug is just too engrained and a rewrite is in order. >I would really like to learn how to debug my programs. Start …

Member Avatar for Chainsaw
0
121
Member Avatar for boujibabe

>Does neone have any design ideas? What is there to design? Read a string, check the first character, and print the appropriate message using an if statement and logical AND.

Member Avatar for boujibabe
0
144
Member Avatar for zack_rage
Member Avatar for Jessicaal2004

>Could someone explain how to Fake it with ASCII art, use a graphical API, or just print "sqrt", people can figure that one out fairly easily.

Member Avatar for Narue
0
90
Member Avatar for jamievmi2

Start by remembering that C++ is case sensitive. Then make sure that every variable you use is defined before it's used.

Member Avatar for jamievmi2
0
334
Member Avatar for Asif_NSU

>I just want to know if theres any way i can read an input twice from the console. The only portable way is to ask the user for the same input again. Once you read data from stdin, it's gone unless you saved it. Another option (you can decide if …

Member Avatar for Narue
0
3K
Member Avatar for Intro2Prog

Okay, what part are you having trouble with? Keep in mind that if you say you haven't done anything yet, I'll tell you to get lost. If you have done something, you'll need to prove it. Why? Because this is obviously homework, it's obviously easy if you put in a …

Member Avatar for Narue
0
113
Member Avatar for souphmars

Break down your code until it's as small as possible while still exhibiting the error, then post it here. Most of us won't bother to download attachments just to help you, it takes too much effort when we can't tell right away if it will be worth it.

Member Avatar for Narue
0
141
Member Avatar for phr0stbyt3

Easy greasy: [code] #include <iomanip> #include <iostream> using std::cout; using std::cin; using std::setw; using std::endl; int main() { int limit; cout<<"Limit: "; if ( cin>> limit ) { cout.fill ( '$' ); for ( int i = 1; i <= limit; i++ ) cout<< setw ( i ) << limit …

Member Avatar for iumair
0
123
Member Avatar for dontcare

>Seg Fault Check your array indices. Use a debugger, or sprinkle the code liberally with debug prints statements. If you don't even know the general area that the segmentation fault is coming from then you aren't debugging properly, and debugging is a huge part of programming so you'd better start …

Member Avatar for jasweb2002
0
127
Member Avatar for lizzywebs

Nobody is going to do your homework for you, but pasting the assignment without any of your own words is even worse.

Member Avatar for alc6379
-1
95
Member Avatar for dats

Okay...what is it doing that you don't want? As much as I enjoy working with algorithms and data structures, debugging somebody else's quicksort usually isn't enjoyable. Your recursive calls are correct, so the problem is in the partitioning. I see several potential problems, but the best way for you to …

Member Avatar for dats
0
92
Member Avatar for hill0ster

>They seem to have limited courses and their professors seem incompetent Sadly, this is a common situation. You would be better off choosing a school for the degree that it gives you rather than what you can learn. Then you can teach yourself what you need to know. In my …

Member Avatar for Dani
0
264
Member Avatar for humphries1

Java is not the same as Javascript and your problem is not a programming issue that you can fix. Try another forum.

Member Avatar for humphries1
0
93
Member Avatar for missy

>know one responded, so i figured i will ask again You figured wrong. Asking again is rude. Asking again in a new thread is even worse. >why i can't print out a rectangle, triangle and diamond The evidence suggests that you're lazy. Here's a hint: Use nested loops so that …

Member Avatar for Narue
-1
88
Member Avatar for Knight

>Im in c-programming and i have no idea what i am doing We've all been there, just push your way through and things will start making sense eventually. >i don't understand my teacher. Why? Is it a communication issue where you literally can't understand your teacher? If not then try …

Member Avatar for Narue
0
88
Member Avatar for Marauder

>however would this way return something like '4.5678?' No, integers can't hold a precision, so everything past the radix is truncated. You would have 4. But you would also have known this if you had bothered to try it before asking this question.

Member Avatar for Marauder
0
242
Member Avatar for psylocke

>i dont know exactly why constructors are being used Not using a constructor is akin to a restaurant giving you a glass without the drink. In the simplest manner, constructors guarantee that your object is created with predictable data for the methods to work with.

Member Avatar for nanosani
0
102
Member Avatar for Robin Low
Member Avatar for ravi_techinc
Member Avatar for ze_viru$

>Below is my program pliz help me to get rid of thge errors When you're getting errors, post them. I'm not going to cut and paste your code, compile it, and debug it just for you. That's a lot of work for very little gain.

Member Avatar for Narue
-1
225
Member Avatar for RichyBoomstick

>Am I just talking nonsense? Nope, those are all very good questions. >do I just construct them as you would a binary tree? Most likely not if what you're used to are binary [b]search[/b] trees. The strict ordering of less than/greater than is what makes binary search trees work, and …

Member Avatar for Narue
0
167
Member Avatar for WrEcK

>heres a problem for u We don't do homework, and the "Here's a nifty problem for you, but be sure to post it so that I can steal it for my class" trick is a common one.

Member Avatar for WrEcK
0
148
Member Avatar for kerrigan88

>The error I keep on getting is bin_search local funtion defs are illegal. You should listen to that error. It's telling you that you can't have a function definition nested inside of another function definition. bin_search is defined inside main, so that's illegal. What about report, you say? It's inside …

Member Avatar for Narue
-1
119
Member Avatar for hopeolicious

>look on the ASCII table for vowels No, this encourages bad practice. Not all implementations use the ASCII character set, so the trick of subtracting 'A' from 'a' or 'a' from 'A' is nonportable and thus, not recommended. Especially for one new to the language. >I do not have the …

Member Avatar for Chainsaw
-1
124
Member Avatar for stoov

>I'm wondering if there's any sort of interpolating function in C. There's probably one somewhere written in C, but the language definition doesn't support it.

Member Avatar for Narue
0
97
Member Avatar for matt_5104

It depends on how your classes are designed. Can you use inheritance or packages to allow access? Otherwise you're either going to be hosed, or you have to make the members public.

Member Avatar for nanosani
0
274
Member Avatar for BlackPhoenixVII

Using C-style strings: [code] #include <iostream> #include <fstream> #include <cstdio> ... char filename[FILENAME_MAX]; cout<<"Enter a filename to save to: "; cin.getline ( filename, sizeof filename ); ofstream output ( filename ); [/code] Using std::strings: [code] #include <iostream> #include <fstream> #include <string> ... string filename; cout<<"Enter a filename to save to: …

Member Avatar for BlackPhoenixVII
0
80
Member Avatar for lost_c++_dude

>It didn't work. Then you didn't do it right. Try again and don't post the same question in a new thread again. If it still doesn't work, tell us [b]exactly[/b] how it doesn't work as opposed to how you think it should work.

Member Avatar for alc6379
-1
132
Member Avatar for idr1978

>Can't I use "strcmp" like this? Not if Training[0][0] is a character. strcmp compares strings, and a character is not a string. Use == instead: [code] if ( Training[0][0] == '1' ) [/code] Alternatively you could use strncmp to compare a subset of the string, then use the address-of operator …

Member Avatar for idr1978
0
135
Member Avatar for ljraven

You wanted something like this perhaps? [code] public class MortgageArray { public static void main (String[] args) throws Exception { double[][] mortgage = { {200000, 7, 5.35, 0.0}, {200000, 15, 5.5, 0.0}, {200000, 30, 5.75, 0.0} }; System.out.println ("Mortgage amount is \t" + mortgage[0][0]); System.out.println ("Term of mortgage is \t" …

Member Avatar for ljraven
0
167
Member Avatar for wangstarr

Walk along the string, but keep a boolean variable that's true if the last character was whitespace and false otherwise. Whenever you reach a non-whitespace character and the boolean variable is true, change the character to upper case. You don't need to worry about testing if it's already upper case …

Member Avatar for Narue
-1
2K
Member Avatar for jaeSun
Member Avatar for Narue
0
93
Member Avatar for epsos

Wow. Do you even know what punctuation is? For that matter, what about capital letters, proper spelling, and understandable grammar? >can anyone help me please My first reaction was: "No, you're beyond help." However, because everyone here seems to think that I'm around for the sole purpose of insulting others, …

Member Avatar for epsos
0
186
Member Avatar for phr0stbyt3

>how would i make it continuously [b][color=red][size=7]loop[/size][/color][/b] back Do you [b]really[/b] want me to answer this question? Because if I do, I can guarantee that it won't be pleasant for you.

Member Avatar for phr0stbyt3
0
179
Member Avatar for wangstarr

>Is there any way to convert my .exe file back to a .cpp file ? No, at least not in the way you want. Too much is lost in the compilation and linking process to get the original source files back.

Member Avatar for Narue
0
74
Member Avatar for jasweb2002

>I didn't know I had to write that myself. You only need to write your own destructor if the default destructor doesn't do what you want. For example, if you have any dynamically allocated memory in your object then you need to write your own destructor. But remember that if …

Member Avatar for jasweb2002
-1
79
Member Avatar for toadie2004

>am i on the right track at all? Does it work? If so then you're on the right track, otherwise you're doing something wrong.

Member Avatar for Narue
-1
131
Member Avatar for dalaharp

>how does the statement change the process It prints a row on each line rather than all rows on one line.

Member Avatar for Narue
0
99
Member Avatar for kimimaro
Member Avatar for Narue
0
77
Member Avatar for kimimaro

>that's funny... What's funny is that frrossk made the exact same mistake twice, thus ensuring that the solution wouldn't work. The argument to the system function is a string designating a system shell command, so the correct call would be: [code] system ( "cls" ); [/code] However this is [b]not[/b] …

Member Avatar for frrossk
0
161
Member Avatar for motswana

>but i dont want to use exec ls command Why not? It does the job and is much easier to get right than the equivalent code using opendir, readdir, closedir, and stat.

Member Avatar for jaeSun
0
157
Member Avatar for bryan7890

[code] #include <algorithm> #include <iostream> using namespace std; int main() { double list[12]; cout<<"Enter 12 numbers: "; for ( int i = 0; i < 12; i++ ) cin>> list[i]; sort ( list, list + 12 ); for ( int i = 0; i < 12; i++ ) cout<< list[i] …

Member Avatar for bryan7890
-1
113
Member Avatar for hill0ster

Stop making new threads for the same stupid question! I have a sound I'd like you to hear: *plonk*

Member Avatar for alc6379
0
152

The End.