132,726 Archived Topics
Remove Filter ![]() | |
Well, I need to code a pyramid that prints the following pyramid WITHOUT the stars *********1 ********232 *******34543 ******4567654 *****567898765 ****67890109876 ***7890123210987 **890123454321098 *90123456765432109 0123456789876543210 In the center, there are prime numbers, from 1 to 9, and after that, they cycle. (1,3,5,7,9,1,3,5,7,9 and so on). I made the code for … Software Development c | |
hello, i need some help here, i already bind my database coloumn 'NAMA' to my combobox 'cbNAMA', and now i want to show data from my database on textbox by selecting the row using cbNAMA but i got this error "System.InvalidCastExeception: Conversion from type 'DBNULL' to type 'String' is not … | |
i get this 'else' without 'if' error on this case: case 2: for(int i=0;i<currentRegisterdItems;i++){ System.out.println("#"+i+" - "+itemArray[i] + "\t\t\t" + priceArray[i]); System.out.println("Select products and add to cart - Simple Shop Software"); System.out.println("Enter the product id: "); int searchIdProduct = Integer.parseInt(a.readLine()); if(itemArray[searchIdProduct] != null){ System.out.println("Add "+itemArray[searchIdProduct]+" to your cart?"); System.out.println("Confirm: Y … Software Development java | |
here's my code and that the error whenever i would add something to database. i hope someone can help thanks :) Dim dbDataReader As OleDb.OleDbDataReader = Nothing Dim sqlAdd As String = "INSERT INTO Guest VALUES ('" & txtName.Text & "', '" & txtGuestId.Text & "')" If performNonQuery(connectionString, sqlAdd) Then … Software Development vb.net | |
// #include <iostream> #include <iomanip> using namespace std; int main() { float assign1, assign2, assign3, assign4, examScore; float assignWeight; cout << " Welcome to UOW Score System" << endl; cout << " " << endl; cout << "Enter the scores for Assignment 1 / 2 / 3 / 4" << … Software Development c++ programming-construct | |
public class IC1 { private int x = 3; static int y=4; class Inner { public void inmet() { System.out.println(x + " " + y);} } public void do() { Inner i = new Inner(); i.inmet(); } public static void main(String r[]) { IC1 ic = new IC1(); ic.do(); } … Software Development java | |
I do have 2 structures here. main linked list is the word. each node of the word list do have a meaning typedef struct node{ char word[20]; struct node2 *meaning; struct node *next; }word; typedef struct node2{ char meaning[100]; struct node2 *next; }means; My problem now is I can't add … Software Development c linked-list | |
i'm new to VB.Net programming but i want help. i have two MySQL tables created using the following SQL statements: create table tbldepartments ( departmentID TINYINT( 2 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, department VARCHAR( 25 ) NOT NULL UNIQUE ) AUTO_INCREMENT = 50; create table tblemployees ( employeeID … Software Development vb.net | |
I have a database in MS Access.I want to show the details in a crystalreprtviewer.Please tell me the procedure in VB.net to connect the database to the crystalreport. Software Development vb.net | |
Hi All, I am a newbie of 8 weeks enjoying the challange of trying to understand java. I was assigned to create a rather challenging program in which the user is prompted to input a number from 1 to 10,000,000 then the number outputs in english words. For example- please … | |
Hello Friends, I want to set the length of the textfield in java... Please check my below code....it works finely if I press the keys one by one slowly... But suppose if I press any key for a longer time the actual length exceeds and so the validation is not … Software Development java | |
The assignment is to write a computer program that will add 1/3 to itself a large number of times and to compare the result to multiplying 1/3 by the number of times 1/3 was added to itself. It is also to do the same thing with ½.The program is to … | |
Good Day all! Looking for a little help here. I have to open a file containing a few words, some of which ending in "ed" and print the only the words ending in "ed" back to file. Here is what I have so far. I cannot seem to open the … Software Development c++ file-system | |
Hi, I have a code that checks if one specific process is running in the TaskManager with the code below. If not the function will start this process. The code I use in a Form_Load event when the application starts. (Working code is below) What I initially wonder is instead … Software Development | |
Hi I need to take one or more files(**.txt** or **.csv** format only), convert them, one at a time and sent them to the printer in **PostScript** format. The paper will be pre-printed and of A4 size. It is perforated in the middle(Portrait orientation). For example, taking a file, A.txt, … Software Development file-system pdf printer | |
hey..can somebody help me? how can i make this work? one pc has a vb6 application which added a record in the database (mysql) and when he/she had already added a record, a pop up message will show to the another pc that a new record has been added to … Software Development visual-basic | |
on opening xml file with noepadd++ all fields are coming in a single line..Please help me to make it multiple lines <?xml version="1.0" encoding="utf-8"?><clsUserConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><PrjDescValues><string>PrjName</string><string>8</string><string>Project Name</string><string>Creator Name</string><string>Department Name</string><string>xxxxxxxxxxxx</string><string /><string> .</string><string> / /</string><string>CSConfigurator</string><string>ESP9</string></PrjDescValues><HarnessValues><string>HarnessTab</string><string>2</string><string>1044-02-00</string><string>00</string></HarnessValues><MRVRValues><string>MRVRTab</string><string>2</string><string>MR in CSIM</string><string>VR in CSIM</string></MRVRValues><ValvesValues><string>ValvesTab</string><string>13</string><string>LC06</string><string>EvFL</string><string>EvFR</string><string>EvRL</string><string>EvRR</string><string>AvFL</string><string>AvFR</string><string>AvRL</string><string>AvRR</string><string>USV1</string><string>USV2</string><string>HSV1</string><string>HSV2</string></ValvesValues><WssFLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFLValues><WssFRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFRValues><WssRLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRLValues><WssRRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRRValues><LampsValues><string>LampsTab</string><string>38</string><string>80.0</string><string>20.0</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>TCS</string><string>ABS</string><string>INFO</string><string>ESP</string><string>EBD</string><string>PALA</string><string>MFL</string><string>L1</string><string>L2</string><string>L3</string><string>L4</string><string>L5</string></LampsValues><SwitchesValues><string>SwitchesTab</string><string>30</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>Switch 1</string><string>Switch 2</string><string>Switch 3</string><string>Switch 4</string><string>Switch 5</string><string>Switch 6</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string></SwitchesValues><PressureSensorFLValues><string>Not Used</string><string>0</string></PressureSensorFLValues><PressureSensorFRValues><string>Not Used</string><string>0</string></PressureSensorFRValues><PressureSensorRLValues><string>Not Used</string><string>0</string></PressureSensorRLValues><PressureSensorRRValues><string>Not Used</string><string>0</string></PressureSensorRRValues><PressureSensorMBCValues><string>Not Used</string><string>0</string></PressureSensorMBCValues><PressureSensorBC1Values><string>Not Used</string><string>0</string></PressureSensorBC1Values><PressureSensorBC2Values><string>Not Used</string><string>0</string></PressureSensorBC2Values><VacuumSensorValues><string>Not … Software Development xml | |
While opening my xml file for editting using notepad++,all the fields are coming in a single line. Please help me in making the correct format. <?xml version="1.0" encoding="utf-8"?><clsUserConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><PrjDescValues><string>PrjName</string><string>8</string><string>Project Name</string><string>Creator Name</string><string>Department Name</string><string>xxxxxxxxxxxx</string><string /><string> .</string><string> / /</string><string>CSConfigurator</string><string>ESP9</string></PrjDescValues><HarnessValues><string>HarnessTab</string><string>2</string><string>1044-02-00</string><string>00</string></HarnessValues><MRVRValues><string>MRVRTab</string><string>2</string><string>MR in CSIM</string><string>VR in CSIM</string></MRVRValues><ValvesValues><string>ValvesTab</string><string>13</string><string>LC06</string><string>EvFL</string><string>EvFR</string><string>EvRL</string><string>EvRR</string><string>AvFL</string><string>AvFR</string><string>AvRL</string><string>AvRR</string><string>USV1</string><string>USV2</string><string>HSV1</string><string>HSV2</string></ValvesValues><WssFLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFLValues><WssFRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFRValues><WssRLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRLValues><WssRRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRRValues><LampsValues><string>LampsTab</string><string>38</string><string>80.0</string><string>20.0</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>TCS</string><string>ABS</string><string>INFO</string><string>ESP</string><string>EBD</string><string>PALA</string><string>MFL</string><string>L1</string><string>L2</string><string>L3</string><string>L4</string><string>L5</string></LampsValues><SwitchesValues><string>SwitchesTab</string><string>30</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>Switch 1</string><string>Switch 2</string><string>Switch 3</string><string>Switch 4</string><string>Switch 5</string><string>Switch 6</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string></SwitchesValues><PressureSensorFLValues><string>Not Used</string><string>0</string></PressureSensorFLValues><PressureSensorFRValues><string>Not Used</string><string>0</string></PressureSensorFRValues><PressureSensorRLValues><string>Not Used</string><string>0</string></PressureSensorRLValues><PressureSensorRRValues><string>Not … Software Development xml | |
gud morning frends i need ur valuable reply..here is my xml data i want to display dis data in the html table..so i need html code for to display dis data in the form of table.. [xml code] <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Edited by XMLSpy® --> <?xml-stylesheet type="text/html" href="j.html"?> <catalogs> … | |
A text file, grades.txt, contains data pertaining to student grades. Each line consists of: student number,course mark1, course mark2, course mark3, course mark4 The last line contains a student number 0 to indicate the end of the data. Write a C program to print a grade report, as outlined below, … Software Development c++ | |
Hello, I need to wwrite a function that will go through a dynamic character array that the user inputs then take it and delete the repeated characters. My program partially works but it seems as though whenever it deletes a set of repeated characters then it just stops rather than … Software Development c++ | |
Hi, I have some requirement which is explained below. The input XML is something like: <item> <body> <blocks> <block> <userDefinedFields> <userDefinedField> <fieldLabel>KOBAR</fieldLabel> <fieldDisplayLabel>Global KO</fieldDisplayLabel> <fieldValue>0</fieldValue> <fieldType>numeric</fieldType> </userDefinedField> <userDefinedField> <fieldLabel>KIBAR</fieldLabel> <fieldDisplayLabel>Global KI</fieldDisplayLabel> <fieldValue>50</fieldValue> <fieldType>numeric</fieldType> </userDefinedField> <userDefinedField> <fieldLabel>BSWP</fieldLabel> <fieldDisplayLabel>Global SW</fieldDisplayLabel> <fieldValue>1</fieldValue> <fieldType>integer</fieldType> </userDefinedField> </userDefinedFields> <otherFields> <otherField/> </otherFields> <userDefinedFields> <userDefinedField> <fieldLabel>EXCLN</fieldLabel> <fieldDisplayLabel>Exclude N</fieldDisplayLabel> … Software Development xml | |
OpenGL GLUT **My question is at the end of this topic** 1) a) Use your logo you drew within a world coordinate space that has 0,0 at the center. You may choose any width and height for your world coordinate space, glut window and viewport. Be sure that you separate … Software Development c++ matrix-multiplication opengl | |
hi guys i want your help i want to send email from private company email to yahoo or gmail company using java i will be thankful for any help | |
I'm fairly new to C++ and my professor gave me most of the code to start with. I'm supposed to write a program that uses the add_day(int n) function I wrote in Chrono.cpp. There must be a problem with the **Chrono::Date add_day(int n);** line. Here is the error: hw4pr2.obj : … Software Development c++ | |
I have this: typedef struct { int value; } Thing; void doSomething(Thing *ptr) { ptr = (Thing *)calloc(5, sizeof(Thing)); int i; for(i = 0; i < 5; i++) { scanf("%d", (ptr[i]).value); } } int main() { Thing t; doSomething(&t); } Which crashes at the scanf() line. How should I be … Software Development c | |
Hi, I need to create a function using **recursion** to find out if two lists have the same shape. For example, if nest1 = [4, [ [3,6], [] ,7] ,[8] ] nest2 = [ [ [3] ] , 7 , [ [5 , [9 , 2] , [ [ [ … Software Development python | |
Hi, All, I need to check if the date values is valid this current year, for example, February 29, 2012, I have used Isdate function but it says "True", is there any other way to do this? Thanks in advance. renzlo Software Development vb.net | |
Hi sorry for yet another circular inclusion problem but I need help understanding why I cant add a new class CSprite to my project that inherits CShape. I get an error C2504 base class is undefined. I've tried so many permutations of including files. Also can anyone suggest a neater/efficient/correct … Software Development c++ | |
I am looking to code a small program in which the pandora songs I listen to are placed into a text file with the title and artist. I have no clue where to go as starting this project and would appreicate any and all help. I have mid level knowledge … Software Development c | |
Ackermann's function is a recursive mathematical algorithm that can be used to test how well a computer performs recursion. Write a function A(m,n) that solves Ackermann's function. Use the following logic in your function: If m=0 then return n+1 If n=0 then return A(m-1,1) Otherwise, return A(m-1, A(m, n-1)) Test … | |
So im having issues with a sorted list template, heres how I implemented it enum RelationType {LESS, EQUAL, GREATER}; template<class ItemType> struct NodeType { ItemType info; NodeType<ItemType>* next; }; template<class ItemType> class SortedType { public: SortedType(); ~SortedType(); bool IsFull() const; int GetLength() const; void MakeEmpty(); ItemType GetItem(ItemType item, bool& found); … | |
I need to write a program that takes in two big integers from the user and puts them into a dynamic array so that we can add them together. It says to use "paper-and-pencil" mehtod meaning to pretty much reverse the dynamic arrays and carry the ones over as you … Software Development c++ | |
hi, i have an evnt class that reads data from a file. the event file reads data and put it into 2 queues, i for NEW event and other for QUERY events. echs NEW QUERY has a unique identification. TM class has to get the data from the 2 queues … Software Development | |
I have a nested list, named env, created in the constructor and another method to populate an element of the grid defined as below: ... class Environment(object): def __init__(self,rowCount,columnCount): env = [[ None for i in range(columnCount)] for j in range(rowCount) ] return env def addElement(self, row, column): self[row][column] = … Software Development data-structure python | |
My program will process the first and second line of the text file but gets a bit crazy after that. Lines 1, 2, 3, and 5 are supposed to match and line 4 does not. It gets lines 1 and 2 but 3 and 5 are incorrect and it processes … Software Development c++ | |
Hi all, I implemented a C program using my mac book. Now, my client wants to migrate to windows OS (MinGW). Program does many calculation using long double: on mac it works fine, otherwise on winz doesn't. I read on internet the problem is that long double type is supposed … | |
Hello, As of now I am trying to read in a text file that is tab delimited with uneven columns. My problem is that when I try to split the file into respective lines, I get an "out of array bound" error. I know this is due to have a … Software Development file-system vb.net | |
well I've this little homework. "Given a text file, create a function that search an specific ID provided by the user inside the file, If exits, print the entire profile as follow: ID_genre_name_age_height" So In the text file there is only one profile. 19800372_male_David_19_1.75 so, my function should print that … Software Development c file-system | |
This is the problem. The program works in the first run. but after you enter a key and proceed for another entry, it skips the "LAST NAME:" line and directly asks for the "FIRST NAME" line. i can't find the problem in the code so...help! >.< (skip forms and frames … Software Development c++ | |
Hi i am using java code to connect to MS access using following url jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/login.mdb Now if I need to connect to the run this java code from some other machine in network then how will I write the path "DBQ=C:/login.mdb" Software Development java microsoft-access | |
I need to design and implement an application that reads a string from the user and prints it one character per line. import java.util.*; import java.text.*; public class EveryLine5 { //---------------------------------------------------------------------------------------------- // Reads in a string. //---------------------------------------------------------------------------------------------- public static void main (String[] args) { int length; char current; String msg … Software Development java | |
well i have to make one and before i make i wont to know what it is and what is the order the number come out random or like 1 12 123 1234 12345 please explain to me in detail to thanks Software Development c++ | |
First of all thank to every one for such a dedicated mind to help others...... I have a database in Access 07 name as aaaa and a single table in it table1.The table1 have S.NO(primary key),Customer_Name,Date,Balance. Now in front end i.e VB.NET 08 i provide a starting date and ending … Software Development vb.net | |
I am studying the C++ code from an opensource project (libredwg) I have the following code: `*offset = *(*src)++;` What does this do? I understand offset = *src++; which would assign src[0] to the variable 'offset' and then increment src so that it points to what was previously src[1]. Software Development c++ | |
Below is the java source code where I am trying to read a file and want to display its content on an applet which is opened through a html page. The problem is that when I try to open the applet through appletviewer there is not problem the data is … Software Development display file-system java open-source | |
hi, i have just migrated from CR8.5 to CR9. now i want to run/display Crystal Report 9 on client machine without installing it there. so, which .dll required for this situation? thanks, krunal Software Development display visual-basic | |
Hi all. This regards "Accelerated C++" Exercise 7-2. I'm trying to write a program that uses a map to put students grades into grade bands and print which band each student falls into. The grade bands are (A: 90-100, B: 80-89.99, C: 70-79.99, D: 60-69.99, F: <60). I'm getting into … Software Development c++ | |
I am attempting to create a "dirty form" checking class based on an example found at codeproject. I am hung up on the first line of one of the classes public class ControlDirtyTrackerCollection: List<ControlDirtyTracker> I am unsure how to replicate that : List<> part in vb net. Thanks | |
I am trying to use an IF statement to enable/disable command buttons; however, I get the following error message "Run Time Error '424': Object Required". The "cmdDeptStoresMC.Enabled=True" is highlighted in yellow when I run the code. Please assist. Below is my code: Sub Check_AccessRights() Dim X As String Dim Y … Software Development visual-basic |
The End.