669 Posted Topics

Member Avatar for gehring

Hmm, That's very odd! After looking into this, Niek e's example compiles ok for me and outputs the strings properly. I'm not sure why you're seeing the addresses of the columns instead of the actual strings.. What happens if you explicitly cast the result of the 'your2darray.at().at()' function call to …

Member Avatar for Narue
0
818
Member Avatar for samarudge

Hmm, I'm not sure offhand! I've had a brief tinker with capturing microphone input from flash using AS3, but I've not done anything much with it yet so I'm not entirely sure of the full range of capabilities. But I plan on taking a more detailed look at some point! …

Member Avatar for JasonHippy
0
85
Member Avatar for NitaB

The reason you're not getting any output is because by the time you've got to the end of the Life function, all of your original generation of bacteria are utterly annihilated, dead, gone, pushing up the daisies, wormfood! heh heh! :) The problem is this section of code in your …

Member Avatar for NitaB
0
588
Member Avatar for Darth Vader

Take a look at this page: [url]http://msdn.microsoft.com/en-us/library/b9skfh7s.aspx[/url] Assuming that the other processes you mentioned are programs that you've written and as long as I understood the above page correctly, if you set the code for all of your programs/processes to open data files using this syntax: [CODE] FileStream^ fs = …

Member Avatar for Darth Vader
0
147
Member Avatar for Valaraukar

OK, well take another look at your code... When the Bank::withdraw function is called, a pointer to the relevant account is obtained. If the account balance is >= the amount, then the withdraw function is called for the account pointed to by the account pointer. Therefore if the accounts balance …

Member Avatar for Valaraukar
0
183
Member Avatar for php_noob

[QUOTE=almostbob;1053493]Flash sucks flash intros penalise in search, annoy your customers anything that makes the page load longer, kills customer retention[/QUOTE] heh heh, aside from that and actually staying on topic..heh heh! I've never used after effects, so I couldn't comment on its functionality, but it's certainly possible to do an …

Member Avatar for php_noob
0
122
Member Avatar for Trekforever

Using strings would be preferable. However, if this is for an assignment and you have to use c style strings; in your function you could copy the original string into a 2nd character array. Then parse through the 2nd array and copy any characters that are not 't' or 'T' …

Member Avatar for JasonHippy
0
1K
Member Avatar for qk00001

Personally I'd copy the sentence into a stringstream object and then use the stringstream's >> operator to separate each word from the sentence and store each word in a vector of strings. Like this: [CODE] #include<iostream> #include<sstream> #include<string> #include<vector> using namespace std; int main() { string sentence, word; vector<string> wordlist; …

Member Avatar for qk00001
0
112
Member Avatar for joshjgordon

Personally, I'd leave only the declarations of the member variables and functions for your class in the header file and then put the definitions of the functions into a .cpp file which has a filename that corresponds with the header. (e.g. particle2.h and particle2.cpp) Your get and set functions will …

Member Avatar for JasonHippy
0
144
Member Avatar for sandra21

Hey I recognise this, You posted this a while ago. So the .fla you were using was decompiled from a .swf! No wonder there were so many badly named layers and objects in the library! From what I can see, everything you need to do is inside the movieclip called …

Member Avatar for rajarajan2017
0
122
Member Avatar for sandra21

From what I can see it looks as if the original developer used two different methods to load the XML data. In frame 9 (frame label "txt_b"), there is an example of the familiar scrollbar in layer 108. The actionscript at the top of this frame loads the mediacenter.xml into …

Member Avatar for sandra21
0
97
Member Avatar for cakka

Seeing as I'm paying for 2Meg broadband, I think I'm being ripped off! 494kbps down 227 kbps up Pretty slow!

Member Avatar for zortec
0
332
Member Avatar for NinjaLink

From looking at the code, it seems to me that if you run your debugger and step through the program you'll find that line 34 will fail to read anything from the input file. The reason for this is because by this point you've already read the entire file, so …

Member Avatar for NinjaLink
0
804
Member Avatar for Zay

You might want to take a look at this thread: [url]http://www.daniweb.com/forums/thread230230.html[/url] The first few posts are irrelevant, but the later posts are probably more or less exactly what you're looking for! Cheers for now, Jas.

Member Avatar for Zay
0
1K
Member Avatar for ayan2587

dkalita has already explained it to you...Try reading his post again! The function 'fun' returns an int. But it takes a pointer to a function as a parameter. The function pointer must point to a function which returns an int and takes no parameters. main happens to be a function, …

Member Avatar for ayan2587
0
125
Member Avatar for NinjaLink

It seems to me that you are over complicating things. Wouldn't it be a lot simpler to just use a double ended queue, otherwise known as a deque? Modifying your code from one of your previous posts in another thread: [CODE] //Implement the palindrome-recognition algorithm described in "Simple Applications of …

Member Avatar for JasonHippy
0
120
Member Avatar for temarisky

[QUOTE=iamthwee;1015312] I've just had a quick look at the fie and I don't think you can change the <font> easily. It looks like it is drawn with code or something. [/QUOTE] Hey Iamthwee, re: the font issues... Do you want me to take a look? I should be able to …

Member Avatar for katherinjess
0
143
Member Avatar for evilsithgirl

The thing that's confusing me is how you're getting a syntax error from a data-file!! How are you running the program and passing the parameters? Are you running it from the command line? or from inside the VS2008 IDE? I've just compiled and tested your code in g++ / codeblocks …

Member Avatar for JasonHippy
0
140
Member Avatar for daviddoria

[QUOTE=daviddoria;1042774]If I have the following setup: [code] Point* MyPoint = Object->GetMyPoint(); if(MyPoint->GetValue() != 2) do something; else do something else; [/code] If MyPoint is NULL or invalid, the MyPoint->GetValue() will cause a segfault. This should fix it: [code] Point* MyPoint = Object->GetMyPoint(); if(MyPoint) { if(MyPoint->GetValue() != 2) do A; else …

Member Avatar for JasonHippy
0
122
Member Avatar for PopeJareth

[QUOTE=PopeJareth;1040405]Can Someone tell me why these files won't compile on unix but work fine (mostly) in windows? It looks like unix-land doesn't load the variables from the inherited class QueueArray into the proper scope. prog5.cpp is supposed to create 3 different types of Deque classes. each Deque inherits from ArrayQueue …

Member Avatar for PopeJareth
0
256
Member Avatar for raigs

It's because the literal value (25.95) that you are passing into your call to the function VAR1 is automatically treated as a double, but your function takes a float as a parameter. So you're getting a warning about it. If you pass the variable like this: [CODE] printf("%.2f", VAR1(25.95f)); // …

Member Avatar for JasonHippy
0
1K
Member Avatar for tomtetlaw

Hey Tom. Looking at the error messages and the fact that some of them are referring to a vector and then looking at line 3 of your final block of code: [CODE] std::vector<BaseEnt> entities(; [/CODE] Note: You haven't closed the brackets ')' !! I'm beginning to wonder if the compiler …

Member Avatar for JasonHippy
0
611
Member Avatar for The Dude

Being a filthy, foul, potty mouthed pirate, my life was rated Arrrrrrrrrrrrr! Heh heh....Sorry, R! I agree with the previous posters. That was a bit of a crap quiz!

Member Avatar for JasonHippy
0
193
Member Avatar for kadji.kahn

[QUOTE=kadji.kahn;1035510]I'm trying to make a program that will read two txt files, with GPA information (one for females and one for males) arranged like this: M 4.0 M 3.7 M 2.9 I've been instructed to used pass by reference void functions with no global variables. My major issue is how …

Member Avatar for kadji.kahn
0
174
Member Avatar for miskeen

[QUOTE=miskeen;1031705]Thank you for your answer. In my example, MYCONDITION is known. But in my code, MYCONDITION is not. It's known only at the time of execution as an argument in the command line.[/QUOTE] Then what you need to do is parse the command line and store the relevant arguments in …

Member Avatar for miskeen
0
107
Member Avatar for rajarajan2017

[QUOTE=rajarajan07;1024289]I have already created a video player in AS3.0. The Client wants to convert it to a component. I need some good to follow tutorials on creating own components. I had know the concepts of creating components and utilizing that as a SWC. I need to create the component with …

Member Avatar for rajarajan2017
0
94
Member Avatar for bunnyboy

[QUOTE=bunnyboy;1030489]I have already try this ... and i have not been able to successfully write the comparison function which would sort deque by [B]both[/B] values. With your code deque is sorted only by [B]a[/B] value, so youl'll get let's say: 02 01 05 13 11 15 21 20 instead of …

Member Avatar for Clinton Portis
0
137
Member Avatar for Eusha

[QUOTE=Eusha;1030270][B]Hi Friends Is There Any Way To Open And ReEdit An .exe File... Suppose I Have a Portable .exe File Which Needs No Installation in My Windows. And I Want To Edit Some Icons or Some Text which is Given in The .exe File So What Should I Need To …

Member Avatar for JasonHippy
0
1K
Member Avatar for Arsham3

Raja's suggestion is a good one. There is another alternative if you're using a professional edition of the flash IDE. Pro versions of Flash ship with the 'Flash Video Encoder', this can be used to convert various video formats to .flv. It doesn't support directly converting .swf to .flv, but …

Member Avatar for dream party
0
123
Member Avatar for neithan

OK, push_back definitely is the safest way of populating a vector. However, the method I'm about to show is not particularly good practice, but it can be done and it does have it's uses: [CODE=C++] #include<iostream> #include<string> #include<vector> using namespace std; int main() { // here are our original strings …

Member Avatar for Dave Sinkula
0
611
Member Avatar for The Dude
Member Avatar for merse

As you've pointed out, you can pass a pointer to a function as a parameter to a function. And yes, it is possible to make a function return a pointer to a function, but the syntax is a little messy! But no, you can't do it without pointers as far …

Member Avatar for mrnutty
0
117
Member Avatar for PDB1982

[QUOTE=PDB1982;1015927]I'm trying to pick out whether or not a prime number is given by a user, when they input a number. This is what I have, but it' not working correctly....can anyone suggest anything? [code] #include <iostream> using namespace std; void main() { int n; while (true) { cout << …

Member Avatar for JasonHippy
0
99
Member Avatar for PDB1982

All you need to do is use the modulus operator %. So check the value of posnum % 2 What this does is it divides posnum by 2 and returns the remainder. Here's a brief look at what is returned. 1 % 2 returns 1 2 % 2 returns 0 …

Member Avatar for JasonHippy
0
518
Member Avatar for merse

[QUOTE=merse;1013991]The following code is working! function and function pointer are defined I defined two probe function: mysin1 and mysin2 both works with myfunc with in first argument but I dont't understand, because mysin2 wait for a function_pointer not a function [CODE] #include <math.h> #include <iostream> using namespace std; typedef double …

Member Avatar for puranchandra248
0
91
Member Avatar for princessotes

Do you mean something like this?? [CODE] numarray = [1,2,-3,4,5,-25] for n in numarray: print "The inverse of", num, "is", num * -1 #print("The inverse of", num, "is", num*-1) # use the above line if you're using python 3.x! [/CODE] The output from the program is: [QUOTE] >>> The inverse …

Member Avatar for vegaseat
0
28K
Member Avatar for JasonHippy

Being a miserable sod, I don't usually do crap like this. But what the hell?! I'm bored! Using only song titles from ONE ARTIST, cleverly answer these questions.. Don't repeat a song title. It's a lot harder than you think! Copy the following text into your post and then answer …

Member Avatar for Grn Xtrm
0
170
Member Avatar for lancevo3

[QUOTE=lancevo3;1014766]This is my driver program where this problem is located. Could it have to do with my iterator? [code=cplusplus] #include "Shape.h" #include "Circle.h" #include "Rectangle.h" #include "Triangle.h" #include <list> #include <iostream> using namespace std; int main() { list<Shape *> L; list<Shape *>::iterator itr; L.push_front(new Circle("blue", 11)); L.push_front(new Circle("green" , 5)); …

Member Avatar for JasonHippy
0
100
Member Avatar for neithan

[QUOTE=neithan;1014689][CODE] unsigned longitud; cin >> longitud; vector<char> palabra(longitud); for (unsigned i = 0; i < palabra.size(); i++, letra += 1) { palabra[i].push_back ('a') << " "; }[/CODE] The error i get: [CODE]error: request for member `push_back' in `(&palabra)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = char, _Alloc = std::allocator<char>](i)', which is of non-class …

Member Avatar for neithan
0
141
Member Avatar for UmH

[QUOTE=UmH;1009157]i use string name=""; and string name; both give me diffrent error ...[/QUOTE] What about this?...... [CODE=C++] string name = string(""); [/CODE] That should do the trick! Cheers for now, Jas.

Member Avatar for dattu mhaismale
0
171
Member Avatar for triumphost

Why don't you try using the shlobj.h function SHGetSpecialFolderPath to get the path to the users My Documents folder? It would save all of the messing about your doing there! Try replacing the code in your main function with this: [CODE] int main() { // get the path to the …

Member Avatar for triumphost
0
197
Member Avatar for Towely

To put dkalitas point a little more succinctly: If you want to execute several statements under an if() statement, then you should enclose them with curly braces '{}'. e.g. [CODE=C++]if(condition) { doSomething(); something = something_else; } else { foo=bar; bar=another_thing; }[/CODE] If you only want to use one statement under …

Member Avatar for Towely
0
231
Member Avatar for NICEGUY123

What you need to be doing here is taking a good look at your input file and your code.... The data you've used in your original post contains a few full-stops/periods These are causing the problems you're seeing. This is your original data: [QUOTE] 23 .12 3 35 3 . …

Member Avatar for NICEGUY123
0
234
Member Avatar for hao001

One thing you need to bear in mind if you are dealing with three high scores... If somebody gets a new high score, you need to shift the exisiting high scores down a place. Dkalita's post doesn't take this into consideration, so if you ran Dkalitas example in your debugger …

Member Avatar for JasonHippy
0
5K
Member Avatar for Peter_APIIT

I'm assuming that the posted code are just snippets...So I'll assume that you've declared/defined an Observer class and actually defined the getValue function.....Both of those are missing from the posted code... Looking at the rest of the code, the only other thing that seems odd is the fact that the …

Member Avatar for Peter_APIIT
-1
77
Member Avatar for The Dude

36. You are an average on-line user. You may surf the Web a bit too long at times, but you have control over your usage.

Member Avatar for GrimJack
-1
133
Member Avatar for mahgobb

Drums and percussion are my main specialities, I play drums for an extreme/technical metal band called Downfall. I also teach drums at our guitarists studio. I can play guitar and bass to a fairly high standard, plus some rudimentary keyboard/piano. I've tried a few other stringed instruments over the years …

Member Avatar for Lardmeister
1
459
Member Avatar for quicktpgo

My favourite times of the day are: Breakfast time, lunch time, dinner time and bed time! Oh and lets not forget Miller time! heh heh! :D No but seriously, being a perennial sun-dodger I love the late night/early morning... From about 3am, after most of the local drunks have finally …

Member Avatar for Lardmeister
0
158
Member Avatar for sbhavan

I must be some kind of programming junkie or something...I think I've got a problem! :-O Mainly C/C++, and some Assembly by trade... But lots of recreational and past vocational use of Python, Actionscript and Java. Also there's the very occasional guilty bit of .NET/CLR stuff (C++, C# and some …

Member Avatar for sivashins
-1
273
Member Avatar for theonlyhugeg

Assuming that the .swf for your panorama is an external .swf that you are trying to load into your main.swf... Perhaps try something like this inside your on(release) function... [CODE] on(release) { // Create a blank movieclip to load the external clip into... // we'll create it outside of your …

Member Avatar for JasonHippy
0
316

The End.