What am I doing wrong? Programming Software Development by sofakingjewish …lt;< "\n\n"; break; case calcu::subtraction: cout << endl << …lt;< "\n\n"; break; case calcu::multiplcation: cout << endl << &…lt;< "\n\n"; break; case calcu::modulus: cout << endl << … Re: What am I doing wrong? Programming Software Development by sofakingjewish … #include <string> using namespace std; namespace calcu{ fNumbr = 0; sNumbr = 0; addition; subtraction;…lt;< "\n\n"; break; case calcu::multiplcation: cout << endl << …lt;< "\n\n"; break; case calcu::modulus: cout << endl <<… Re: What am I doing wrong? Programming Software Development by sofakingjewish …"\n\n"; break; case calcu::multiplcation: cout << endl &…"\n\n"; break; case calcu::modulus: cout << endl &… Re: error C2447: '{' : missing function header (old-style formal list?) Programming Software Development by Mander …gt;' 1>c:\users\alex\desktop\program\calculatortest\calculatortest\calcu.cpp(10) : error C2447: '{' : missing function… 1>c:\users\alex\desktop\program\calculatortest\calculatortest\calcu.cpp(43) : warning C4129: ' ' : unrecognized…sequence 1>c:\users\alex\desktop\program\calculatortest\calculatortest\calcu.cpp(64) : warning C4129: ' ' : … error C2447: '{' : missing function header (old-style formal list?) Programming Software Development by Mander … and settings\ampieper\mijn documenten\c\calculatortest\calculatortest\calcu.cpp(10) : error C2447: '{' : …documents and settings\ampieper\mijn documenten\c\calculatortest\calculatortest\calcu.cpp(43) : warning C4129: ' ' …c:\documents and settings\ampieper\mijn documenten\c\calculatortest\calculatortest\calcu.cpp(64) : warning C4129: ' ' : … midlet cellphone application help Programming Mobile Development by wrathness … lamps,type,txtField,calc; private StringItem stringItem,calcu; private ChoiceGroup choiceGroup; public int result,result2… form.append(spacer); //display the result here calcu = new StringItem ("Calculation", String.valueOf… functions Programming Software Development by Megha SR … rectangle,triangle and square. it is a private class. class calcu { void rectangle(int l,int b) { int area1;…p,int q) { int a,d; double c; calcu obj=new calcu(); a=obj.rectangle(m,n); c=obj.triangle(o… Re: functions Programming Software Development by coil …/double here: [code=java] int a,d; double c; calcu obj=new calcu(); a=obj.rectangle(m,n); c=obj.triangle(o… C++: How to read the first character in input text file with else-if? Programming Software Development by DACP …;fstream> using std::ifstream; using std::ofstream; #include "Calcu.h" using namespace std; int _tmain(int argc, _TCHAR…* argv[]) { Calcu myCalcu; ifstream inFile ("AorMin.txt"); ofstream outFile ("… problem in storing a double variable Programming Software Development by Whilliam …microedition.lcdui.TextField; import javax.microedition.midlet.*; public class calcu extends MIDlet implements ItemCommandListener{ private static final int numberMax…TextField output; char calc; double x; double y; public calcu(){ container = new Form("Calculator"); output = new … J2me calculator program error Programming Mobile Development by Whilliam …microedition.lcdui.TextField; import javax.microedition.midlet.*; public class calcu extends MIDlet implements ItemCommandListener{ private static final int numberMax =…]; TextField output; char calc; double x; double y; public calcu(){ container = new Form("Calculator"); output = new TextField… simple swing calculator program how to support keyboard input Programming Software Development by Ms …ActionListener; /** * * @author al_khtaiob */ public class Calcu extends JFrame implements ActionListener{ final int MAX_INPUT_LENGTH = 20; …Times New Roman", 1, 12); public Calcu(){ super("Simple Calculater"); setBackground(Color.… Re: JTextField Programming Software Development by Progr4mmer no i didnt include that part of the code but calcu is a method which takes 2 strings [QUOTE=mKorbel;1483598]no idea just [CODE]String rate = calcu(textBox1.getText() + " " + textBox2.getText());[/CODE][/QUOTE] Re: JTextField Programming Software Development by Akill10 …[/QUOTE] Look more closely here: [CODE]String rate = calcu(textBox1.getText(), textBox2.getText());[/CODE] calcu() is a method which returns a String! Help with Java with pay roll program pt 3 Programming Software Development by K504K … reads: [ICODE]package pay_1; import java.util.Scanner; public class Calcu { // Program execution starts here public static void main ( String [] args… Why can't i load the icon file on my menu? Programming Software Development by pato wlmc … "Re&star", RESTAR } } Icono_principal ICON "Icono-calcu.ico" [/CODE] The thing its that i cant load… JTextField Programming Software Development by Progr4mmer … e) { if ("disable".equals(e.getActionCommand())) { String rate = calcu(textBox1.getText(), textBox2.getText()); lRate.setText(rate); try{ write(rate… Re: JTextField Programming Software Development by mKorbel no idea just [CODE]String rate = calcu(textBox1.getText() + " " + textBox2.getText());[/CODE] Re: JTextField Programming Software Development by Progr4mmer [CODE]public String calcu(String s, String s1){ float si = toFloat(s); float si2 = toFloat(s1); float fin = si / si2; String fi = convert(fin); return fi; }[/CODE] Prevent socket clients from freezing GUI Programming Software Development by Mr.M … As String xusername = dr(0) price = dr(2) 'Amount Dim Calcu As Double qqrefnumber = dr(5) Try ConnDB() Dim da As… Bmi calculator GUI Programming Software Development by Giyu Anyone can help me on my GUI. I'm making a BMI calcu GUI. But I don't know hot to input to my check bmi button. Im a total beginner btw. What code I need to add in a button to perform bmi calculation? Re: Help with scientific calculator Programming Software Development by jenmedina i need help with a scientific calcu. um i dont know exactly how im supposed to start as there are characters in the calcu i cannot show in the buttons like the square root and the like. please help me. i know the codes for the simple operands + - / * and the square root code. but for the sin, cosine, tan and the like, i do not know how. Re: Help - While loop won't work Programming Software Development by K504K … code. [CODE]package pay_1; import java.util.Scanner; public class Calcu { // Program execution starts here public static void main ( String [] args… Re: i've created code to find sqrt without math.h ,what is wrong with the code? Programming Software Development by shehata07 firstly main() is C++ but i've decleared of my variables in the next line :) ..secondly s=s and e=e is not important but not the Problem ,also getch(); not our problem here .. i wanna know what is the wrong in calcu Sqrt ?? Re: i've created code to find sqrt without math.h ,what is wrong with the code? Programming Software Development by Moschops > firstly main() is C++ No, it is not. In C++, `main()` returns an `int`. Always. > i wanna know what is the wrong in calcu Sqrt ?? Move your `cout << mid` to the end (line 29). Where it is right now makes no sense and it may never be reached. Did you edit your code already? Re: What am I doing wrong? Programming Software Development by jonsca What are the errors? Find the first one and fix it and many of the later ones will fall away... Re: What am I doing wrong? Programming Software Development by sofakingjewish [QUOTE=jonsca;1214954]What are the errors? Find the first one and fix it and many of the later ones will fall away...[/QUOTE] Here is a screenie I dont know what half these mean. and if I try something to fix it to be corrected then another damn error pops up. Been at this since 10 am this morning. this is the lowest build of errors I have … Re: What am I doing wrong? Programming Software Development by jonsca The variables on 10 and 11 (thanks WaltP!) have no type. I would first bring them into main and give them a type. I would move the struct you declare up and out of main. It's not incorrect to put it in main but personally I think it keeps it better organized outside. EDIT: I realized it was your enum you were referencing in the menu part, so … Re: What am I doing wrong? Programming Software Development by jonsca Go back and pop some code tags around your code, use the edit button and either highlight and press the [code] button in the box, or type the following around your code: `[noparse][code] //code goes here [/code][/noparse]`. WaltP (faithful moderator) put them around your last post but try to remember them on your own. My own clarification: >… Re: What am I doing wrong? Programming Software Development by WaltP Please look at the code you're posting. Can you actually read it? Please [url=http://www.gidnetwork.com/b-38.html]see this[/url], and maybe we can read it, too.