C minor bug Programming Software Development by V3N0M Hi guys after fixing my previous bug this one has resulted. What I am trying to do: 1. Make getchar() read only one character per input 2. Make the while loop not accept numbers 3. When the user enters duplicate characters the program should only accept the first character. code: // abcmail.c -- This is a program that calculates all… Re: C minor bug Programming Software Development by AssertNull You still have a bit of the same problems as your last thread. I switched the input around so you call a function to get a letter and a function to get a float. Error checking and gobbling up white space is done in those functions. You have some obsolete variable names in there (i.e. "count" vs. "weight"), but I left that … Char counter can't count strings with caps/quotes? Programming Software Development by crumpet Hi folks, Just hoping someone can show me where I'm going wrong here. I've been given a tutorial question to count the number of times a particular character (char) appears in a string. The only catch is that you need to use a for loop, as the online checker won't accept anything without a for loop somewhere. So I set about using a for loop, but … Void Function - string parameters Programming Software Development by Vani3863 Hi :) I have this assignment for my first year programming module and one of the questions asks for a void function using string parameters. This confused the hell out of me, but I came up with this idea. Would someone please, please, please have a look at it and let me know if there are any major problems with it? I've copied the full three … Get the id of attr from inside clicked div (jquery) Programming Web Development by dnirvine …;><img src="thumb.php?im=photographs/c/carrot2.jpg" alt="Carrot River, Saskatchewan" /><… Re: C programming minor bug Programming Software Development by V3N0M Thank you guys I saw the errors and they were very silly :D. The code should have looked like this: // abcmail.c -- This is a program that calculates all fo ABC Mail Order Grocery activities #define ARTICHOKE 2.05 #define BEET 1.15 #define CARROT 1.19 #include <stdio.h> #include <ctype.h> … Nested Queries Programming Databases by conwayce Hi I'm migrating from Oracle Sql to MS Sql. I'm trying to write an mssql query that will pull all rows from a tableA but only if row in tableB = apple. In other words the table might look like this: tableA tableB Joe apple Joe orange Joe peach Fred potatoe Fred… C programming minor bug Programming Software Development by V3N0M Hi guys I am looking to go through C then transition to C++ later this year. I am having a minor problem with switch statement and I am not in a position to ask anyone as there are no tech savvy that I know. So I thought it was better to ask here. So I am trying to get input from the user with the switch statement, once the user has entered a … Re: Nested Queries Programming Databases by conwayce Sorry bout that. I was in a hurrry to post thread. tableA tableB Joe apple Joe orange Joe peach Fred potatoe Fred carrot Fred apple Mike carrot Mike orange Re: Nested Queries Programming Databases by conwayce Sorry about that. I was in a hurrry to post thread. Hope the follwoing makes more sense. Thanks for the quick response. tableA tableB Column1 Column1 Column2 Joe Joe apple Joe Joe orange Joe Joe peach Fred Fred potatoe Fred… Re: Nested Queries Programming Databases by tesuji Hi conwayce, [QUOTE=conwayce;629245]Sorry about that. I was in a hurrry to post thread. Hope the follwoing makes more sense. Thanks for the quick response. tableA tableB Column1 Column1 Column2 Joe Joe apple Joe Joe orange Joe Joe peach Fred… What kind of dessert are you? Community Center Geeks' Lounge by The Dude [b]If all of the desserts listed below were sitting in front of you, which would you choose? Pick your dessert, then look to see what Psychiatrists think about you! (Sorry you can only pick one) Angel Food Cake Brownies Lemon Meringue Vanilla cake with Chocolate Icing Strawberry Short Cake Chocolate on Chocolate Ice cream Carrot Cake … help in parsing Programming Software Development by desiman I have to parse the following file in C and call like specific things like ingridients, time and stuff, so how do I go about storing it in a file. The recipes repeat over and over in same format. ************************ Recipe: "Creamy" Salmon Over Pasta By: Skinny One-Pot Meals, Ruth … rails and java web app hosting and integration Programming Web Development by erogol I try to develop a rails web search engine that aims to use carrot 2 clustering rest service that is also work on my computer. However to use these two I need to deploy both of them to same server. Do you know any hosting that makes available to run both at the same time or do you mind and plus solution. I am really stack on this issue. On local … Extract data from string Programming Software Development by 4evrmrepylrning My brain is freezing up again. I have a string that looks something like this `1 apple--1 pear--1 peach--2 onion--2 carrot--3 <bee mince--3 <por chops--4 <oth salad:--potato--4 <oth bread:--garlic` Then I have a few dictionaries: dic1 = {'1': 'fruit', '2': 'vegetable', '3': 'meat', '4': 'other'} dic2 = {'bee': 'beef, 'por':… Re: Extract data from string Programming Software Development by 4evrmrepylrning Ah yes, I simplified it a bit. So from my original example it now looks like this: input = '1 apple--1 pear--1 peach--2 onion--2 carrot--3 <bee mince--3 <por chops--4 <oth salad:--4 potato--4 <oth bread:--4 garlic' dic1 = {'1': 'fruit', '2': 'vegetable', '3': 'meat', '4': 'other'} dic2 = {'bee': 'beef', 'por': 'pork… Re: What kind of dessert are you? Community Center Geeks' Lounge by mattyd [B] CARROT CAKE... You are a very fun loving person, who likes to! laugh. You are fun to be with. People like to hang out with you. You are a very warm hearted person and a little quirky at times. You have many loyal friends. [/B] Well, sort of. Some of this is very true at times, but, I declare this "Psuedo-Science"! :p Re: string and integer validating Programming Software Development by Vani3863 Hi Guys, I'm working on the same assignment, and this question is really confusing me. I get that we have to use a void function with two parameters (one string and one int) but I cannot get the while condition in the do..while loop to execute. This is what I've managed so far but I know I'm making lots of mistakes. The text in Red was given … Re: string and integer validating Programming Software Development by NathanOliver on this line [code=c++] while ((sort != 'chocolate') && (sort != 'carrot') && (sort != 'custard') && (sort != 'fruit') && (sort != 'coffee') [/code] you are using single quotes for the words. you need to use double quotes. [code=c++] while ((sort != "chocolate") && (sort != "carrot"… Re: Extract data from string Programming Software Development by vegaseat Maybe this will help ... data = """\ 1 apple--1 pear--1 peach--2 onion--2 carrot--3 <bee mince--3 <por chops--4 <oth salad:--potato--4 <oth bread:--garlic """ for item in data.split('--'): print item print item.split(" ", 2) Getline with multiple delimiters?? Programming Software Development by Peetah I am writing a program that reads a comma-delimited file. There are several words on each line that will each be assigned to a string variable, each line in the file is a record, and the file contains several records. I am using getline with a delimiter, e.g. [B]getline(inputstream, string, delimiter) [/B]The problem I am having is that … displaying two dimensional array in columns help Programming Software Development by sInFuL69er Hi iam having trouble with displaying my two dimensional array in columns eg. |Pie |Peach |Socks |$3.4 |$5 |$9 |Apple |Carrot etc... |$6.8 |$2 code //for(col = 0; col < COLSIZE; col++) for(row = 0; row < ROWSIZE; row++) { for(col = 0; col < COLSIZE; col++) //for(… Collapsible Data - inconsistent in FireFox while IE loks good..... How to fix for Fi Digital Media UI / UX Design by gvsmani Hi all, I have an HTML/Css code, for display of Collapsible Data. While the Data grid/table looks neat and good in IE, it is not so in FireFox. Furter in FF, each row height keeps expanding, on usage of the collapsible marker .... Can anyone help me in fixing this issue, so the FF display is as good as IE display ? The code is attached here … General Questions Programming Software Development by revenge2 Hey guys, well here are some more of my questions (sorry!! i know, im a pain..) Ive finished "most" of everything in this [URL="http://www.swaroopch.com/notes/Python_en:Table_of_Contents"]tutorial[/URL]. I missed some out because they were too much for me to understand at the time. will go back to them and come back with more … Searching code help Programming Software Development by Alpdog14 I am writing a small Java program and need help using a simple search code. It is not compiling. [CODE]public int indexOf(EltType e) { int i=0; for (i = currsize; i < currsize; i++){ things[i] = e; e.equalts(get(i)); } return -1; }[/CODE] Basically I want to get the … Re: Searching code help Programming Software Development by Alpdog14 sorry it is compiling now, i had a spelling error but basically I want to search the array for e, and return its position, or -1 if e is not found. Right now all that happens when I call the searchingtester method searching for "tangerine", result=-1 searching for "apple", result=-1 searching for "mango", result=-… Re: Searching code help Programming Software Development by Alpdog14 hi akulkarni, thx for replying to my thread, well i do see what your code is doing but I think what it is doing is searching for letter "e" when in fact what I am trying to do is match the words "tangerine" "apple" "mango" "lime" "carrot" the results are suppose to give me the … Re: Searching code help Programming Software Development by akulkarni or is this what u want [code=JAVA] class searche1 { public static void main(String args[]) { int result=0;int i,j; String [] str={"tangerline","apple","mango","lime","carrot"}; for(j=0;j<4;j++) { for( i=0;i<str[j].length();i++) { if(str[j].charAt(i)=='e')… Microsoft spreads Linux patents FUD Hardware and Software Linux and Unix by happygeek Microsoft CEO Steve Ballmer has said that the open source movement needs to “play by the same rules” as the rest of the business and claims “what’s fair is fair.” Which is pretty rich given the high profile cases involving dodgy business practice and Microsoft during the last few years. Still, a leading Microsoft lawyer, Brad Smith, has nonetheless… No email Friday sucks elephants through a straw Hardware and Software macOS by newsguy Some major corporations, including [URL="http://www.intel.com"]Intel[/URL] and [URL="http://www.deloitte.com"]Deloitte & Touche[/URL], are apparently spearheading a 'no email Friday' concept in order to crack down on non-essential messages, boost productivity and encourage better face-to-face communications between employees…