569 Posted Topics

Member Avatar for chandnigandhi

It is unclear to what exactly you want to do in terms of "Speech". Do you just want to output what they are typing? For example: typed: a the voice would say: "A for apple" This wouldn't be too difficult, however, if you wanted to implement an algorithm that can …

Member Avatar for nova37
0
217
Member Avatar for sarah.mathieson.7

You can do this by just having a function that returns a boolean: Something like so: bool checkExists(string file) { ifstream file_to_check (file.c_str()); if(file_to_check.is_open()) return true; return false; file_to_check.close(); } int main(int argc, char *argv[]) { string file = "file.txt"; if(checkExists(file)) { cout << "The file exists, sorry"; exit(0); } …

Member Avatar for vmanes
0
3K
Member Avatar for biddut.hossain.75

Your problem is on this line: $result=mysql_query("select * from omr_result"); You cannot declare, or, set variables inside the class this way. You shoud consider trying to implement this inside a function: public function query() { $connect = mysql_query("SELECT * FROM something"); }

Member Avatar for diafol
0
467
Member Avatar for Teefy

I don't really understand what you are trying to do, or, the question here. You need to store the values in an array /matrix/ You can read the values inside a 1D array`int* matrix = new int[R*H]` which can then act as a 2D array. But where do you get …

Member Avatar for phorce
0
419
Member Avatar for yavindu

It looks like your problem is here: **header("Location:Login_page.html");** remove the astrix's .. Also, don't use `mysql_*` functions. Your query is also unsafe.

Member Avatar for diafol
0
212
Member Avatar for PriteshP23

What doesn't "work" you need be more specific! Questions / points: 1) Does this even execute? $CON // connection works 2) Don't use `mysql_*` these commands are being depreciated. 3) Where do you set the sessions? For example: <?php session_start(); $_SESSION['Phorce'] = "Phorce"; echo "User: " . $_SESSION['Phorce']; session_destroy(); echo …

Member Avatar for PriteshP23
0
2K
Member Avatar for phorce

Hello, I have a question. I'm not sure I am using the right terms or anything here, but, I have seen people develop their "projects" (classes etc..) and then creating a .dll file (or .lib) and then importing the files when they need them. But I cannot seem to get …

Member Avatar for phorce
0
360
Member Avatar for TonyG_cyprus

> The worst is when the only skill that people develop during a programming course is their skills at finding code on the web and disguising it as their own. At some point, it gets to the point that they even believe that they did it themselves. I agree, to …

Member Avatar for mike_2000_17
2
112
Member Avatar for GlenRogers

$query="SELECT post,link from pagination ORDER BY id DESC LIMIY $pageLimit,".PAGE_PER_NO; Needs to be: $query="SELECT post,link from pagination ORDER BY id DESC LIMIT $pageLimit,".PAGE_PER_NO; Should work :) Please don't use `mysql_*` commands, they're being depreciated.

Member Avatar for diafol
0
162
Member Avatar for rikkie

Are you sure you're using the right operator here: distance = sqrt((c-a)^2+(d-b)^2) Wouldn't it just be better to do: float distance2 = (a*a) + (c * c); // square distance = sqrt(distance2); // find the square root cout << "The distance between the two points : "<< distance; 20, 20 …

Member Avatar for phorce
0
2K
Member Avatar for TonyG_cyprus

I learnt to write beautiful equations, that, actually make sense to me.. Proud!!

Member Avatar for Reverend Jim
0
198
Member Avatar for angel.heaven.58367
Member Avatar for <M/>

Coda was alright, until they released Coda 2. I use Sublime Text 2 - Great editor :)

Member Avatar for sneekula
0
212
Member Avatar for mashti1117
Member Avatar for stormal1
0
100
Member Avatar for nseeley3

Hello there. It appears that some other people are having the same problem with you and the forums. Weird. I like Arduino but have you tried Raspberry Pi? Welcome to the forums :)!

Member Avatar for falkopartey
0
134
Member Avatar for mattster
Member Avatar for Shodow

Are there multiple text fields for the values? Or, are the values entered like: 1234567 OR 1, 2, 3, 4, 5, 6, 7

Member Avatar for Shodow
0
94
Member Avatar for tensity

Hello, I believe what you're doing here is wrong: list.erase(std::unique(list.begin(), list.end(), list.end())); It expects a function (boolean) rather than the end of the list (vector). In this case, you could try this: bool compare (string i, string j) { return (i==j); } list.erase(std::unique(list.begin(), list.end(), compare); Source: [Click Here](http://www.cplusplus.com/reference/algorithm/unique/)

Member Avatar for vijayan121
0
322
Member Avatar for free-to-surf

Hey, Could you please tell us what features that you have already implemented (or planning)? From here we can then advise you on what else you could implement. Or a brief descrption of your proposal. Cheers

Member Avatar for free-to-surf
0
1K
Member Avatar for codedome

@shivani1515 > So any one can get me some ideas for it without use of any specific sdk or dlls You need to understand how complex such a task would be, and since you're asking if it can be done with PHP I can only assume that you do not …

Member Avatar for diafol
1
840
Member Avatar for thitae

This is an introduction forum so probably not the best place to ask this question. You can ask this question in the "Networking" forum. Is the router kicking out the same NAT IP for the Kindle and therefore when it tries to connect to the laptop, it kicks it off? …

Member Avatar for hazzag1995
0
172
Member Avatar for <M/>

Why not have an array of theme colours ("colors") and then people who have bought subscription can then use a hex code to have any colour of their choice? :D just throwing it out there!!

Member Avatar for diafol
0
414
Member Avatar for kpele1
Member Avatar for daniel.conlinjr.1

What is this: $p['username'] What are you trying to do here? I think you're getting confused. Where are you defining your class variables? Show these :)

Member Avatar for daniel.conlinjr.1
0
522
Member Avatar for mahemmed

What is the problem? We cannot help you, if you do not tell us what is wrong.

Member Avatar for JorgeM
-1
99
Member Avatar for Serunson
Member Avatar for nitin1

I think this feature is more vb boards and wasn't implement in the new build. I don't think it's needed, personally, I find it annoying when people know you're online.. Sometimes I got: "You're online, I can see it but you're still not replying to m thread" awkward.

Member Avatar for Sahil89
0
377
Member Avatar for phorce

Hello, I don't want to look like I am following other forums, but, wouldn't it be a good idea for users (with a certain amount of rep) to have basic moderation tools, or, atleast the ability to edit posts by users and: 1) The person who posted can accept this …

Member Avatar for Ancient Dragon
0
206
Member Avatar for slymdjay.gunshot

I'm not an expert in VB.net and I am not entirely sure on the nature of this question. If you had let's say someone paid today, then you can do a calculation to check to see if someone has paid a month after this particular day. It would require basic …

Member Avatar for phorce
0
583
Member Avatar for phorce

Hey, I have a function in C that I am trying to convert over to C++. I have done everything, apart from this line: memcpy(mel[i],&temp[melstart[i]],mellength[i]*sizeof(double)); I need a way of copying the elements in temp[melstart[i]] over to a vector of doubles.. Here is the C code: void Setup_Mel(int fft_size, int …

Member Avatar for mike_2000_17
0
173
Member Avatar for kaywt

First off: void main( ) that's bad, you should use int main() This is also bad: for (int x = i; x < 50; x++) you shouldn't implicity hard-code these values, it should be the SIZE of the array and not 50 (even though your array length is 50) .. …

Member Avatar for kaywt
0
181
Member Avatar for timwhelan

Hey, Try this: <?php $node = node_load(arg(1)); $type = $node->type; if(substr($_SERVER["REQUEST_URI"], 0, 13) == '/our-people') { return true; }else if(substr($_SERVER["REQUEST_URI"], 0, 13)) { return false; }else{ return in_array($type, array('3_column_interior_page', '3_column_faculty_bio_page')); }

Member Avatar for timwhelan
0
201
Member Avatar for marnun

Yes, you can do. Store the values inside an array, then send the reference (pointer) of this array to a function that checks to see if the value is unique. (You can even construct a temp array to store the unique values inside) then you can print these to a …

Member Avatar for marnun
0
267
Member Avatar for mattster

Hello, Yes this is possible - But, you need to be specific in what it is exactly you want to do, and, what language you want to do this in. Let's look at what you will need (IMO): - The router you have needs DHCP turns off. - The router …

Member Avatar for phorce
0
302
Member Avatar for ronaldneck

PHP works in paraelle / conjunction with HTML so essentially you will use it along side it, not "develop a new site using php". If you're using a "Hosting" provider, then, they will tend to have PHP/MYSQL installed on their servers, however, if you are using your own computer then …

Member Avatar for javedsai
0
713
Member Avatar for canadaaaaa

This is not complicated at all, THINK about it! 1) Input values into an array that are above "0": input = {1, 2, ..., 2, 3, .. 9,> 0}; 2) Check to see if input (at the given time) is "0" if this value is not greater than 0 then …

Member Avatar for Reverend Jim
0
87
Member Avatar for Suzie999

Hey, Is this to do with image recognition / Object recognition? Do you have any code to show, where it fails...?

Member Avatar for Suzie999
0
107
Member Avatar for M4ver1k

You can't pass the vector as an array.. Your problem is here: void counter(vector<int> count[]); Do this: void counter(vector<int> &count); // sending reference Also, you can't allocate memory for a vector like this: vector<int> list[5]; Instead you can do this: vector<int> list(5, 0); // size of 5, pushes back 0's …

Member Avatar for M4ver1k
0
265
Member Avatar for ziyaddinsadigov
Member Avatar for Atli
0
16K
Member Avatar for hwoarang69
Member Avatar for urtrivedi
0
111
Member Avatar for rajesh1158

Hey, I don't think you can do this.. I'm guessing your database information is in the file, so therefore, the connection code needs to be there as well. $connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die('Oops connection error -> ' . mysql_error()); mysql_select_db(DB_DATABASE, $connection) or die('Database error -> ' . mysql_error()); …

Member Avatar for rajesh1158
0
354
Member Avatar for kevinyu

> http://www3.uic.edu.ph/images/100x102/1242343.jpg Doesn't exist, or, you do not have permissions to access it. Please can you vardump / echo $complete... Also, what does "file" do? :S

Member Avatar for phorce
0
11K
Member Avatar for danthegreat

Your first problem is you delcare a constructor (in your .h file) but you don't reference it in the class functions (.cpp)... So put this: Burger::Burger() { } Your other problem is the fact you don't tell the compiler where the functions are (in which class) you declare an object …

Member Avatar for danthegreat
0
2K
Member Avatar for CHOCHOCHO

This is weird. What compiler are you using? Haven't posted an actual thread here, in a while, but, should this really be a code snippet? your not submitting one, just a question -looks over there >>

Member Avatar for ravenous
0
158
Member Avatar for Prysm[VA]

Couldn't you just have a count set to = 0 at the beginning and each time a value get's inserted into the array, it increments by 1? Or, if you just need to know whether someone has entered something - Have a Boolean? Here's an example anyway: #include <iostream> using …

Member Avatar for Prysm[VA]
0
460
Member Avatar for giovannitao

Hey, you need to use sessions (http://www.w3schools.com/php/php_sessions.asp) . So for example, if you have a "login" script, you can define these values and then create a script that only restricted members can access

Member Avatar for rotten69
0
112
Member Avatar for <M/>

Women, mostly. And forums like DaniWeb. Oh, and errors. Errors distract me a lot, I can get really annoyed and then leave it for up to a week sometimes.. It's bad!

Member Avatar for ImZick
0
105
Member Avatar for NewUser22

Why do you study? What can you possibly learn from people answering these questions, therefore, what is the point of this task? My advice: LOOK at Exercise 6 etc.. and LEARN!

Member Avatar for Ancient Dragon
0
303
Member Avatar for hwoarang69
Member Avatar for Jbvo

I don't think you quite understand Polymorphism. Can you show the class definitions please? Also, explain what it is you're actually trying to do..

Member Avatar for Jbvo
0
95

The End.