i am lookng for some sample c coding for fuzzy logic, can anyone help me in developig fuzzy logic in c,.. i had developed my fuzzy rules in matlab, now i hav to develop the c coding for the developed model, can anyoe help me in developing the c code, can anyone post an sample fuzzy code,....

Member Avatar
Member Avatar
+1 forum 2

I am trying to send some strings on my android device using bluetooth to my arduino so I am wondering if my logic is correct for my code. The part I am stuck on how to implement if all arguements are OK then it should send String temp = "t"; continously every 5 seconds. but is rest of my logic correct and will it work as intended? public class SendOut implements Runnable{ private boolean sStop = false; private Thread I; String temp = "t"; public SendOut(){ I = new Thread(this, "Output Thread"); I.start(); } public boolean isRunning(){ return I.isAlive(); } …

Member Avatar
Member Avatar
+0 forum 2

My Name is Leonard E. Norwood Jr. I'm Undergraduate student from Norfolk State University in Norfolk Virginia. Getting down to the point, my program is supposed to print out a list of pre-set numbers in reversal. I used pointers for this, however, something went wrong so I'm trying my best to trace this program and assume that there is something wrong with one of the for loops that is causing something to happen. This program can compile but nothing is happening, I just need some slight assitance. #include <stdio.h> { int i, j; float ar[5] = {12.75, 18.34, 9.85, 23.78, …

Member Avatar
Member Avatar
+0 forum 6

hallo everyone i am lookng for some sample c coding for fuzzy logic, can anyone help me in developig fuzzy logic in c,.. i had developed the fuzzy logic in matlab, now i need to write the code in c, looking for some sample code,..

Member Avatar
Member Avatar
+0 forum 1

what difficulties most of the beginners in c++ programming student face i guess logic building ** i have a blog about c++ programming for beginners on which i try to things the as simple as i can so every beginner can understand the logic of program. Because once they are understood the logic it will open their mind in logic builiding I Want Some Suggestion Any Kind OF Related To Basic C++ Which Can Be Helpful For A Beginner So My Can Be More Beneficial For C++ Beginners Its My Blog [C++ Programming For Beginners](http://www.fahad-cprogramming.blogspot.com)

Member Avatar
Member Avatar
+0 forum 5

In the parent directory O, I have a series of directories Aa, where a varies from 0-1. In each of these I have a series of directories Bb, where b varies from 0-1. In each of these there are the input/output files AaBbCc.dat and AaBbCc.out for some calculations [c also varies from 0-1]. However, due to a limit on the amount of resources I can use some of these calculations failed to complete (or even run). I have created a file 'walltime.txt' which lists the output files [AaBbCc.out] that have closed prior to the calculation finishing. It is from here …

Member Avatar
Member Avatar
+0 forum 2

Yesterday while browsing the web, I stumbled upon a blog where the author had written a post regarding what a computer scientist should know, in that list he had given links for further reading. One of these links was to a website [nand2tetris](http://nand2tetris.org/) where the goal is supposedly to build a modern computer from first principles! This seems very interesting to me, and I would like to ask whether anyone here has tried, or would recommend this project. In a video he says it could be completed in 12 weeks, is this an accurate estimate? If so I would perhaps …

Member Avatar
Member Avatar
+0 forum 2

Hey guys, I'm having difficulties with a problem. I iterate over an array of data with X rows And i have the positions of each row incremented, i would like that when i found an exception i shift all the position id's so after each exception the next ID has to be +2 as seen in the second attachment. After each exception i woul like to have a free unused position so i can use it later. Any idea of how could i make this ? Picture one is the data array ![368b1e79027f622224713a0d830a0fac](/attachments/large/2/368b1e79027f622224713a0d830a0fac.png "368b1e79027f622224713a0d830a0fac") Picture two is the desired result …

Member Avatar
Member Avatar
+0 forum 6

I have a lottery program nearly completed, thought i had the last of the problems sorted but it seems i did not!! The program has a couple of issues. 1: Everytime i click a button it stores what i clicked, for example 10, and also creates a random number. Problem is what's happening is i click my first choice, it compares it to the first random number, i click choice 2, it compares it to random number 2, and so on...naturally this is a problem. I want it to take my 6 inputted numbers, then compare Against ALL the 6 …

Member Avatar
Member Avatar
+0 forum 2

Hello All, I'm working on a puzzle right now and am a bit stumped. I confess, I'm not much of a PHP programmer, but I don't claim to be either haha. I have an array with several variables: * dad * tsa * aft Next, I have a much larger word, adfa**dadaft**tsaadfad Notice how the variables are not necessarily in order. The order isn't repeated. I need to find, given the combinations, what the starting character of the larger word is. I'm doing my best to learn, so a nod in the right direction would be appreciated :) Thanks!

Member Avatar
Member Avatar
+0 forum 4

So I have a schematic in logicworks and I need to convert to VHDL but I cannot because I don't know how. Can someone help me please? ![fc0c9426f7c49a3b3d8962e71a83fc24](/attachments/large/4/fc0c9426f7c49a3b3d8962e71a83fc24.PNG "fc0c9426f7c49a3b3d8962e71a83fc24")

Member Avatar
+0 forum 0

Hi guys, I have been working on a sudoku solver, that finds solution by brute forcing during my school days.... But due to the huge number of loops i couldn't do it at then.... SO decided to complete it now.... So here the algorithm: 1. Get the number of fixed values from the user. 2. Populate those values.. 3. Check if the input sudoku is valid. 4. If valid, fill each posistion by checking numbers from 1 to 9, if they are valid at the posistion... 5. Done.... Well! In my sudoku i have only checked for rows and colomns..... …

Member Avatar
Member Avatar
+0 forum 5

I am making an ABACUS MODEL program which adds counters to pegs. The program compiles fine but when i use the test that was issued to me (as pictured) it appears as though my program does not work as intended. I don't know if anyone will be able to help me solve this but any attempts or suggestions will be very helpful. Not particularly talented with Java. ## Variables: ## **thisPeg** - an integer that refers to any of the pegs in the abacus **peg_array[]** - stores the number of counters present in each of the pegs in the abacus …

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I'm working on a holiday scheduling app and I was wondering that if a person wants his holiday for example 10 days. id uid data1 data2 ore tip_concediu ts 7 244 2013-01-25 2013-02-05 3 2 2013-01-25 16:08:35 How would it be possible that I could track the holiday for each month ? January - 6 days February - 5 days In this case, January has 31 days, I would like to group the days into months, in January I should have 6 days and the remaining in February, is this possible from a query? Thanks in advance Szabi.

Member Avatar
Member Avatar
+0 forum 6

Hi All I am planning to develop an event website. Registrant rate depends on their type i .e. member or non member. I am little confused about its logic to identify members and nonmebers. initially I was thinking about email/domain name to identify but when I saw current data it will not work as some member company's are very small so they have email@net or even gmail.. another point I was thinking about company name but I dont want non member to play gamble with member company name and get member rate... I would appriciate if anyone could help me …

Member Avatar
Member Avatar
+0 forum 4

i have a database table and it has some column with duplicate values , and i want to get that column value of the table in a combobox, but i want every value single time not repeatedly ... i tried but it is still giving me all values in the combobox: i have a database table and it has some column with duplicate values , and i want to get that column value of the table in a combobox, but i want every value single time not repeatedly ... i tried but it is still giving me all values in …

Member Avatar
Member Avatar
+0 forum 1

im trying to figure out why we are using binary computers insted of ternary. from what i can tell the only valid argument is the cost of storage. basicly for those of you who dont know that a ternary computer is, its a computer that uses three positions of the digital wave form as imputs so yo have +1 0 -1 interperated as 1 0 2 insted the the normal +1 -1 being interperated as 1 0. acording to my research there are existing storage mediums that are capable of storing 3 positions but they just cost more. i also …

Member Avatar
Member Avatar
+0 forum 5

alignas (since C++11) alignof (since C++11) and and_eq asm auto(1) bitand bitor bool break case catch char char16_t(since C++11) char32_t(since C++11) class compl const constexpr(since C++11) const_cast continue decltype(since C++11) default(1) delete(1) do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable namespace new noexcept(since C++11) not not_eq nullptr (since C++11) operator or or_eq private protected public register reinterpret_cast return short signed sizeof static static_assert(since C++11) static_cast struct switch template this thread_local(since C++11) throw true try typedef typeid typename union unsigned using(1) virtual void volatile wchar_t while xor xor_eq

Member Avatar
Member Avatar
+0 forum 2

i am working on advert website .In which i need to impliment advertisement impression logic.Can anybody tell me advertisement impression logic.

Member Avatar
+0 forum 0

Hi, I'm developing a blog that will have categories. I want to be able to store blog posts in more than one category. My problem is i am not sure how to go about it. I have a table called posts: CREATE TABLE `posts` ( `post_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_uid` int(10) unsigned NOT NULL COMMENT 'user uid', `category_ids` varchar(255) NOT NULL COMMENT 'each category is seperated by a comma', `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `post_modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'date post was modified', `post_status` varchar(10) NOT NULL COMMENT 'publish = publish post | …

Member Avatar
Member Avatar
+0 forum 2

Hi folks, I am learning operator overloading concept in c++, wrote sample program to test overloading of unary operator '!' and '-'. Code will work if i use them as friend function but not for member function. Can anybody tell where am i going wrong in function bool operator!(const co_ordi &a) and co_ordi operator-(const co_ordi &x); . Is that correct way to declare and define. I am getting following error Error: op_ovld_unary.cc:18: error: ‘bool co_ordi::operator!(const co_ordi&)’ must take ‘void’ op_ovld_unary.cc: In function ‘int main()’: op_ovld_unary.cc:45: error: no match for ‘operator!’ in ‘!a’ op_ovld_unary.cc:45: note: candidates are: operator!(bool) <built-in> op_ovld_unary.cc:50: error: …

Member Avatar
Member Avatar
+0 forum 2

I have my first assignment for structured and object oriented problem solving. This is the problem and I wrote a program that had to include modules. I wanted to find out if what i did had any errors or if it is even written correctly at all. If its not what can I do to fix it? Thank you! Plan the logic for a program that calculates the goen size a student needs for a graduation ceramony. The program uses 3 modules. The first prompts a user for and accepts the students height in inches. The seconed module accepts students …

Member Avatar
Member Avatar
+0 forum 2

Good morning everyone, I have a small problem here. I tried to code a piece of program which allows users to construct logic formula. (E.g A V NOT(B)) When the button NOT (unary connective) is pressed 2 times then this happens: [COLOR="Green"]NOT(NOT())[/COLOR], using a static recursive method called Rec returning the string and has 2 following parameters: --> int counter : the number of time the button has been clicked --> string strConnective: the name of the button pressed(E.g NOT). But the problem is when another button than NOT is pressed (E.g[path]<F>) which is also an unary connective, the output …

Member Avatar
+0 forum 0

This code is supposed to take two numbers, and multiply them, divide them and print out the product and quotient. ive checked it over numerous times and cannot figure out where my error is, when i type in a real number and 0, the result screen shuts off prematurely..can anyone tell me where the error is [CODE]#include <stdio.h> int main () { int x,y; printf("\nPlease enter two real numbers: "); scanf("%d%d", &x,&y); if (x>0 && y==0) { printf("\nError: Dividing by Zero"); printf("\nThe product of %d and %d is: %d.",x,y,x*y); } else if (x==0 && y==0) { printf("\nEnd of Program"); } …

Member Avatar
Member Avatar
+0 forum 14

How to print this series using loop 1,1,2,3,5,8,11,19,30,49...........

Member Avatar
Member Avatar
+0 forum 6

Hi, I'm open to suggestions on the following project I'm trying to complete. I will post what I have currently done but I think that I'm limited in what I can do with the code as a form can only have 1 action. [B]Problem[/B] - I have a short questionnaire that requires 5 questions to be answered. Question 1 is a text field. Questions 2-4 are radio button/single choice and question 5 is a free text box. Based on the inputs of questions 2,3 and 4 I want it to choose the most appropriate team for the player (of which …

Member Avatar
Member Avatar
+0 forum 3

From what I understand, ALU is exclusively for mathematical operations. For simple tasks like reading a web page, saving a text file, copying data etc., are arithmetic operations used or can the processor do it without using that? I don't have much knowledge about computer architecture, but it seems to me that these jobs mainly deal with control instructions and no arithmetic is required, apart from maybe ASCII conversions.

Member Avatar
Member Avatar
+0 forum 1

pls help me with this the user enters a number n.consider the sequence from 1 through n in ascending order.insert either '+' or'-' between each of the digits so that the resultant sum is zero. for eg: input=7 output= 1+2-3+4-5-6+7=0 1+2-3-4+5+6-7=0 1-2+3+4-5+6-7=0 1-2-3-4-5+6+7=0 however when i programmed it i only got the first two outputs.the ones where + is the first operator..but the code didn't print the next two...pls help or find an error in the following code(it's happened with other inputs too) [CODE]import java.io.*; public class zerocombination { public String toBin(int x)// this function converts a given number to …

Member Avatar
Member Avatar
+0 forum 2

I have written a program that simulates volleyball using rally scoring. In rally scoring, the team that wins the rally wins the point, regardless of which team is serving (for this reason my program ignores the issue of who’s serving). Games are played to a score of 30 and must be won by at least 2 points. I actually have my program working. My problem is that I don’t understand why when I use a different version of the simOneGame function within my program, the program’s final output is so drastically different (and wrong). The simOneGame function that generates good …

Member Avatar
Member Avatar
+0 forum 13

Hello! I am fetching some names from MySQL and i want to remove duplicated strings. Currently got this code: [CODE]function get_PublicAlbums(){ $sql = "SELECT * FROM `ue-userfile` WHERE public=1"; $result = mysql_query($sql); $html = ""; while($row = mysql_fetch_array($result)) { $albumname = $row['albumname']; $html .= '<p><a href="index.php?page=public-albums&an='.$albumname.'">'.$albumname.'</a></p><br/>'; } /* It might be more than one $row['albumname'](Nature) so i only want to show one of them. I need some help on that logic, i might be dumb. */ return $html; }[/CODE] Regards, Morten(Norway)

Member Avatar
Member Avatar
+0 forum 4

The End.