2,839 Posted Topics

Member Avatar for iarmza

[QUOTE=marcydr;1160078]Fatal:Syntax error,;but CONST found[/QUOTE] Is this meant as a reply to this code, or is it a new question you want answered?

Member Avatar for Nick Evan
0
213
Member Avatar for Salem
Member Avatar for ~s.o.s~
2
340
Member Avatar for cwarn23

Why didn't you use a vector as a return-value? It seems like the logic way to go, since you can easily find out how many strings were found, which is sort of a guessing game now. Just as a suggestion: [code] #include <iostream> #include <string> #include <vector> #include <sstream> std::vector<std::string> …

Member Avatar for tetron
1
677
Member Avatar for Adrian99420

Haven't worked with forms etc for a while,so I might be wrong, but: [icode]textBox1->[b]Text[/b]=comboBox1->SelectedItem->ToString();[/icode] should work.

Member Avatar for dittukumar
0
197
Member Avatar for vivekvxz

You're obviously not going to put in [URL="http://www.daniweb.com/forums/announcement8-2.html"]any effort[/URL] whatsoever, so we no longer care. Closed.

Member Avatar for Nick Evan
0
574
Member Avatar for re41verse

Also this: [code] int array_size = 10; float floatArray[array_size]; // this is how we make an array [/code] ..is not allowed in C++. array_size has to be declared constant. (or use new and delete) So: [code] const int array_size = 10; float floatArray[array_size]; // this is how we make an …

Member Avatar for Excizted
0
79
Member Avatar for lich004

What steps have you taken? What errors do you get? 1. Did you [ICODE]#include "koolplot.h"[/ICODE]? 2. Did you link to the library file? (project->build options->linker->add files) 3. Did you install [URL="http://codecutter.org/tools/winbgim/index.html"]WinBGIm [/URL](which is required as is says on the koolplot site)

Member Avatar for Nick Evan
0
689
Member Avatar for clutchkiller

Dani has been informed about the problem. Ads are [U]not[/U] allowed to roll down and fill the entire screen. (or at least that's what she told us a year or so back)

Member Avatar for cwarn23
1
130
Member Avatar for nimuns

[QUOTE=hOnEyOj;1158358]may i know the output of this ATM program ?? .. our final exam for tom. is to make a Simple ATM program using Turbo C data base. asap ! tNx![/QUOTE] So you decided to cheat your way trough class by googling "ATM C++" and you ended up here. And …

Member Avatar for Nick Evan
0
2K
Member Avatar for Nick Evan

[URL="http://www.daniweb.com/aboutus.php"]Eyal Akler / Kathy Kottenbach[/URL] No official announcements, no introduction in the [URL="http://www.daniweb.com/forums/forum165.html"]intro-forum[/URL], do they even have an account on Daniweb? :icon_twisted:

Member Avatar for Nick Evan
0
127
Member Avatar for totalwar235

Your problem is here (among other places): [code] if(COne == 62 && CTwo != 63) { [/code] You've declared a 2d-array with 7x62 elements. Which means you can access the following indexes: Characters[0-6][0-61], so when you try to access index 62, it crahes (or not, this is called undefined behaviour)

Member Avatar for totalwar235
0
146
Member Avatar for Nick Evan

So normally there's about a 50% change that I receive the monthly digest. But this month the haunted-mail server decided to catch up and send me the digest twice. Once on the second and once on the 9th. No big problem, just thought you should know.

Member Avatar for Nick Evan
0
2K
Member Avatar for syue87
Member Avatar for Arkapravo
Member Avatar for Arkapravo
0
204
Member Avatar for coachHinesfan

[URL="http://www.mvps.org/winhelp2002/hosts.htm"]Here's[/URL] how. Or install firefox with adblock. Or install Opera.

Member Avatar for Biker920
0
266
Member Avatar for IwanRyoma

On what line? We can't compile this on a standard C-compiler. Did you set the printf()-support to "full"?

Member Avatar for Nick Evan
0
147
Member Avatar for silvert122

First [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL], then post your effort.

Member Avatar for Nick Evan
0
103
Member Avatar for steven1285

First [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL], then post your effort.

Member Avatar for Fbody
0
85
Member Avatar for Bigojac2000

First [URL="http://www.daniweb.com/forums/announcement8-2.html"]read this[/URL] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]this[/URL], then post your effort. This also goes for your [URL="http://www.daniweb.com/forums/post1154776.html#post1154776"]other thread[/URL], which also is called "C++ program help" :icon_frown:

Member Avatar for strmstn
0
282
Member Avatar for munadel
Member Avatar for richman0829

[QUOTE=richman0829;1149172]I tried this: C:\\richmansfield\\charsfile.txt [...] Any other ideas?[/QUOTE] [QUOTE=WaltP;1149179]Yeah I do, but you won't listen.[/QUOTE] Am I missing something or did he just say he tried your suggestion? @OP: Are you sure that you have the proper rights to the directory and/or file you're trying to open? [edit] What's your …

Member Avatar for richman0829
0
159
Member Avatar for Lala2010

I don't have any specific answers, but I suggest you start [URL="http://www.daniweb.com/forums/post623596.html#post623596"]here[/URL]. Most of the things you need, are discussed in great detail in that thread.

Member Avatar for vegaseat
0
129
Member Avatar for ehsun7b

[QUOTE=ehsun7b;1154176][B]I doesn't work!!![/B][/QUOTE] [QUOTE=ehsun7b;1154231]Doesn't work![/QUOTE] Scream harder, maybe it'll start working!

Member Avatar for Nick Evan
0
216
Member Avatar for Stefano Mtangoo
Member Avatar for lionaneesh

Your array is [4][4] which means it has index 0-3. Both your loops will exceed this limit and will result in undefined behavior.

Member Avatar for xavier666
0
126
Member Avatar for lotrsimp12345

It's been a while since I've used OpenCV, but doesn't it come with ready-to-go VS-examples in the examples directory? [edit] And include-files is now called "Additional include directories" in VS

Member Avatar for lotrsimp12345
0
80
Member Avatar for lamphan

And another thing: Apart from the fact that you're using "cout" to display your value, there's nothing C++ about this program. If it isn't homework, might I suggest the following: [code] #include <iostream> #include <bitset> int main() { unsigned int num = 24; std::bitset<32> bs(num); // 32 bits integer std::cout …

Member Avatar for Nick Evan
0
154
Member Avatar for blamp

Since this is obviously homework, first tell us what [I]you[/I] think the answer should be (and why).

Member Avatar for strmstn
0
141
Member Avatar for coachHinesfan
Member Avatar for Salem

I've split the thread in a new one, but something went wrong (or [I]I[/I] did something wrong) but post #1 should not be here... Anyway: code::blocks with the mingw is a good place to start. Small, easy, free, what more do you want? :)

Member Avatar for Ancient Dragon
0
110
Member Avatar for Gagless

In the function you say: [icode] Data[ MAX_SIZE - 1 ] = NewData;[/icode] So your newest data will always be in element [icode]Data[ MAX_SIZE - 1 ];[/icode] (so if MAX_SIZE = 5 it will be in Data[4], which is the last element (0-4 = 5 elements))

Member Avatar for WaltP
0
159
Member Avatar for clutchkiller

Making a Brainfsck interpreter is one of the more basic programs. I rank it as beginner-intermediate. Only thing you need is a reasonable amount of knowledge on pointers.

Member Avatar for clutchkiller
0
87
Member Avatar for underground111

In the two hours that you've been arguing with Clutchkiller, you could also have made a new effort and post it here to show us that you indeed have the intention of making this assignment yourself. But instead you chose to do nothing but argue if you were of weren't …

Member Avatar for Nick Evan
0
178
Member Avatar for rudekhan

Place a [ICODE]cin.get();[/ICODE] just before your [ICODE]return 0;[/ICODE] (at the end of main()). Also by C++3.0 I think you mean: Turbo C++3.0? Don't use that crap anymore, it's been outdated for the last 10 years now. If you're going to start programming, please use [URL="http://www.codeblocks.org/downloads"]code::blocks with the minGW compiler[/URL]. It's …

Member Avatar for rudekhan
0
275
Member Avatar for ndayala

Fix what? A proper description of your problems will result in more useful replies.

Member Avatar for ndayala
0
111
Member Avatar for Luks
Member Avatar for Luks
-2
221
Member Avatar for happygeek

this is related to [URL="http://www.daniweb.com/forums/thread180797.html"] this thread.[/URL] And [URL="http://www.daniweb.com/forums/post262209.html#post262209"]this [/URL][I]could[/I] be my first post.

Member Avatar for Dave Sinkula
0
526
Member Avatar for Ultratermi

[QUOTE=Ultratermi;1146384]Very funny![/QUOTE] Yes it is. It's also a hint that we don't provide code without [I]you[/I] showing some effort.

Member Avatar for Ultratermi
-3
567
Member Avatar for cwarn23
Member Avatar for pratima

[QUOTE=shivakarsh;1146918]Simple!![/QUOTE] A reply to a solved, six year old thread without using code-tags. Good job :icon_rolleyes:

Member Avatar for Nick Evan
0
2K
Member Avatar for atticusr5

You can see from Salem's backtrace that the program dumped in the function load() : [icode] #6 0x080499bf in Load (List=@0xbfc309a0, Start=@0xbfc33ec4, Avail=@0xbfc33ec0) at foo.cpp:224 [/icode] So that narrows it down a bit. One thing that I notice is that you never check if the file is successfully opened before …

Member Avatar for atticusr5
0
180
Member Avatar for swapna7999

how about [URL="http://nl3.php.net/system"]system[/URL]()? [code=php] system("your_app.exe");[/code] [QUOTE=swapna7999;615901] vb app wil not run on server side right? [/QUOTE] wrong. It would [u]only[/u] run on the server side. You can't run executables on the client side. This would be called a virus. How would you like it if someone executed "format c: /q" …

Member Avatar for democracy7.com
0
94
Member Avatar for Majestics

This: [quote=The Almighty Rulebook] Keep it legal Do not post anything warez related or related to other illegal acts. This includes tech support troubleshooting pirated software or P2P programs (i.e. Gnutella, Kazaa) used to obtain pirated software. [/quote] and the fact that thread is going up in flames is more …

Member Avatar for Nick Evan
-4
124
Member Avatar for arunbt
Member Avatar for Nick Evan
0
53
Member Avatar for Nafaiz

Let me guess. You made a random generator which spits out random lines of C/C++?

Member Avatar for Nick Evan
-2
82
Member Avatar for donelliewhyte

Please stop flooding the forum with these questions. This should be discussed [URL="http://www.daniweb.com/forums/post1143630.html#post1143630"]here[/URL]. Closed

Member Avatar for Nick Evan
0
74
Member Avatar for sexyzebra19

This line:[icode]myfile.open ("std::string fname.txt");[/icode] is just plain silly. It'll open a file called "std::string fname.txt". Changing it to [icode]myfile.open (fname.c_str());[/icode] will probably have a more "expected" result :) A tip: It's a good idea to check if your file is really open before writing to it. [edit] and what is …

Member Avatar for sexyzebra19
0
340
Member Avatar for bigdog1

[QUOTE=firstPerson;1143786]1) Use code tags, [code ] /* put code here */ [code] [/QUOTE] Small correction here: [noparse][code] /* put code here */ [/code][/noparse]

Member Avatar for Nick Evan
0
260
Member Avatar for Anarionist

A tutorial has to be approved by either Dani or Davey, and for this to happen the tutorial has to meet their (very high) standards. That's the reason why we only have 1 tutorial in C++.

Member Avatar for Nick Evan
-1
102
Member Avatar for miles.85

[quote=reported post] I'm so sorry. I want to delete this thread but I can't. Can you please tell me how to delete a thread which has never answered? Thanks [/quote] You can't. By joining Daniweb and posting a thread here, you agreed that your code will be publicly visible. I …

Member Avatar for miles.85
0
286

The End.