Hello, I need to convert C codes to Java codes.this promram calculates surface areas of a 3D geometry which is read from datas from text file.thanks for help. text file: [CODE=text]12 0 0 0 0 0 1 4 0 1 4 0 3 5 0 3 5 0 0 0 3 1 4 3 1 4 3 3 5 3 3 5 3 0 0 3 0 18 1 2 2 3 3 4 4 5 5 6 6 1 2 7 7 8 8 3 6 11 11 12 12 1 11 10 10 9 9 4 9 8 …

Member Avatar
Member Avatar
+0 forum 4

karmstrong ask in the Python chat if any one was farmilar with converting a for loop in C to Python. Here is a program in python that will do it for you! Thank You!

Member Avatar
Member Avatar
+0 forum 5

How can I convert html to image?

Member Avatar
Member Avatar
+0 forum 6

This code gets the data from the table to show in a table for the user using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Collections; using System.Collections.Generic; using System.Text; namespace Form { public class RelUse { public DateTime Date { get; set; } } public RelUse() { atribuiValores(row); } public RelUse(DataRow row) { assignValues(row); } protected void assignValues(DataRow row) { this.Date = Convert.ToDateTime(row["Date"]); } } It gets the date how it is in the database yyyy-mm-dd hh:mm:ss. Can I do some method in the DateTime to change the formatting of the date to dd/mm/yyyy hh:mm:ss

Member Avatar
Member Avatar
+0 forum 3

Hi guys, I'm having problems converting .bmp to .jpg using vb6. :icon_question:The idea is to convert .bmp to .jpg so i can import the saved image to a pdf file for email and/or printing. I downloaded code that's supposed to convert .bmp to .jpg, but I get a compiler error saying I need to "specify user-type". :)Any help would be appreciated. ---Here's the code--- [CODE]Dim tmpimage As imagedes 'Image Descriptors Dim tmp2image As imagedes Dim rcode As Long Dim quality As Long Dim vbitcountcount As Long Dim bdat As BITMAPINFOHEADER 'Reserve space for BMP struct Dim bmp_fname As String Dim …

Member Avatar
Member Avatar
+0 forum 8

Hi - I am having an issue and can't seem to get my head around it. I am trying to calculate GBP from EUR - which should be easy but for some reason my returned value is always a few GBP more than it should be, yet I do the same calculation on my calculator or Google and it's right. Can anyone see what I am doing wrong? I have this: $rate = 1.20881; //var_dump shows float, tried different combos too $euro = 74; //var_dump shows float $gbp = ($euro / $rate); //should give me 61.21 but it keeps giving …

Member Avatar
Member Avatar
+0 forum 2

I seem to be having difficulty with my code, I have tried many different ways but I can't seem to figure out how to implement some things. I'm also not sure how to setup my menu so only certain functions are called. 1. Adding a if statement under ShowMenu to check to see if the string word is lowercase or uppercase. Also Is there a better method that allows spacing different string method? 2. Couning Uppercase and Lowercase 3. Converting from Uppercase to Lowercase and vice versa I just can't seem to find out how to check to see my …

Member Avatar
Member Avatar
+0 forum 6

Hey guys, im looking to take my existing excel 2003 spreadsheets (.xlsx) and i need to convert them to (.accde) file format. ive been looking and looking and cant seem to find out how to do it. If i could possible get the steps or how to go around doing this. It will be much appreciated -thermalnuke

Member Avatar
Member Avatar
+0 forum 2

I wanted to convert this segment of code into something slightly different package expression; import java.util.*; public class Expression{ /* * Strings used for storing expression. */ String s, x; /* * Term evaluator for number literals. */ double term(){ double ans = 0; StringBuffer temp = new StringBuffer(); while( s.length() > 0 && Character.isDigit( s.charAt( 0 ) ) ){ temp.append(Integer.parseInt( "" + s.charAt( 0 ) )); s = s.substring( 1 ); } if( s.length() > 0 && s.charAt( 0 ) == '.' ){ temp.append( '.' ); s = s.substring( 1 ); while( s.length() > 0 && Character.isDigit( s.charAt( 0 …

Member Avatar
Member Avatar
+0 forum 5

How can I convert a .class file of java to .exe file

Member Avatar
Member Avatar
+0 forum 1

Suppose I have this textfile A: League 1: a = 123456, b = england a = 234564, b = brazil a = 939311, b = germany ... League 2: a= 213213, b = italy ... ... League 500: a = 74778, b = denmark ... ----------------------------------------------------- Now, I have another textfile B: League 1: trash trash trash a = 123456 a = 234567 a = 939311 ... League 2: trash trash ... a = 312311 a = 987324 ... ... League 500: trash trash ... a = 238483 a = 243234 ... NOW, can someone please help me to convert …

Member Avatar
Member Avatar
+0 forum 11

My sms gateway save message data in log(MSSQL) in Hex code, like this: 0046003A0062006F006B0040007700650062006D0065006400690061002E0070006C These are Unicode message (16 bits per characters) Each 4 characters is AsciiHex representation of a character (in hex): For example: “0046” = 46hex = ‘F’ “003A” = 3Ahex = ‘:’ how can I convert this in ColdFusion to other format? Adam

Member Avatar
Member Avatar
+0 forum 4

Hello there! Please I need help in converting a jar/jad file to cod/alx i.e converting j2me files to blackberry files.

Member Avatar
Member Avatar
+0 forum 2

Hey guys, I am very new to c++, and im trying to learn and master the basics Could you guys please tell me what i am doing wrong here. I want to maintain my current coding format. This is a simple converting code. Will be accepting inches, and feet, that will be converted into centimeters. The problem is that line 13, does not compile Thanks [CODE]#include <iostream> #include <cmath> #include <string> using namespace std; int main() { const double feet_to_inch = 12; // conversion from feet to inches const double inch_to_centi = 2.54; // conversion from inches to centimenters int …

Member Avatar
Member Avatar
-1 forum 5

Hey guys I was wondering if I was doing this right or not. I am writing a program that asks for a grade like A, -A, B+, -B, B and so on. each letter grade is equal to a certain number like in a persons GPA, A = 4.0, -A = 3.67, B+ = 3.33. I want the user to enter the letter grades and have the numbers factored into the GPA. I have already written the program and it works when the numbers are entered but how do you save the numbers to the letter grades? Thank you. Things …

Member Avatar
Member Avatar
+0 forum 2

I am a beginner in MIPS and we're given this assignment to write a programs in MIPS to convert binary string to decimal i do some research and I found some helpful information: TO convert a binary number to decimal Let X be a binary number, n digits in length, composed of bits Xn-1 ... Xo Let D be a decimal number Let i be a counter 1. Let D = 0 2. Let i = 0 3. While i < n do: If Xi == 1 (i.e if bit i in X is 1), then set D = (D …

Member Avatar
+0 forum 0

hi all.. i want to convert decimal to binary.. best regards..thanks.

Member Avatar
Member Avatar
+1 forum 3

The End.