43,549 Solved Topics
Remove Filter ![]() | |
Hey everyone: Can someone tell me why when I called printf in main I get a blank character. I ran this code in a C interpreter and it works fine, but when I compile with gcc and run it, it doesn't print out the new string. I get a empty … Software Development c | |
Hello. I recently started studying Java and OOP. I am currently creating a class that writes text to a file in a particular format. I have 'finished' it, and it works, but I am unsure as to the quality of the implementation. This is how it works: * First of … | |
For a class in C programming I have been asked to create a dice game. Here are the requirements. A player rolls two dice. Each die has six faces. These faces contain 1,2,3,4,5, and 6 spots. After the dice have come to rest, the sum of the spots on the … Software Development c | |
hi i'm making a little application in vb.net and i need to use a data base. so i used some of my aspx functions and the same data base. the problem is that every time i run the application and do something that needs to get values from that db … Software Development microsoft-access open-source vb.net visual-studio | |
So this is my problem my fellow programmers: In my C# app, I have one button and a datagrid that is showing info from a sql table. Everytime I add a person into my datagrid, the data replicates instead of updating certain columns for that member. I need to somehow … Software Development | |
hi , guys/ I again have problem with C understanding. Please help . there's code = [CODE]/* */ #include <stdio.h> #include <stdlib.h> #include <limits.h> main() { char* inputstr; inputstr = simple_readline( "Please specify the input string (one more notification))" , 0); printf("\n You've specified string = %s\n", inputstr); getchar(); getchar(); … Software Development c | |
I am having an error with my constructor, why is that? :| [CODE]public class Name{ private String firstName; private String middleName; private String lastName; public Name(){ this( "null" , "null" , "null"); } public Name(String first){ this(first," "," "); } public Name(String middle){ this(" ",middle," "); } public Name(String fName … | |
ok i having a little trouble adding a string to the new vector that i created i was wondering if i need this line [CODE]vector<string>* row = new vector<string>;[/CODE] and if i do i need to keep calling or is there a much better what to create a new row … Software Development c++ | |
Im having problems with my code. :( the code should. the submenu for my menu should be on a radio button type. here's my first code: [CODE] public ... { //for background JMenuItem image = new JMenuItem("Images"); JMenuItem music = new JMenuItem("Music"); //submenu of music JRadioButtonMenuItem play = new JRadioButtonMenuItem("Play"); … Software Development java | |
Good evening all, This is the first time I have needed to start a new topic, I can usually find the answers via the Google Gods, but not this time – I would very much appreciate your help. I have written a number of small apps in the past, have … Software Development vb.net | |
Hey Guys, I'm working on a C++ program for school. Basically the Program inputs a file of points and outputs an svg file that contains the Graph with the least number of edges. We need to implement this with the Kruskal and Prim algorithm, and the algorithm needs to be … Software Development algorithm c++ file-stream oop queue | |
want to print Jframe like our word document. I have one jframe on jframe i have Jpanel ond on that panel i have j label . In jlabel i written a letter i want to print that letter so how can I print that letter. thank you Software Development java | |
hey there, I am trying to build a small around soccer/football matches. So, I have built a class that models a Match (Match.java). It only contains field variables like hostid, guestid, matchid, result, and such, and setter and getter methods. When I retrieve matches from my sqlite database, I build … | |
Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing … | |
Hi guys ! I have big problem in my project i cant display the data of my database (.mdb) to my Data report i need some expert help to this. Im new to this im such a loooooser... plss help me Thanks in advance.. Software Development visual-basic | |
I got a homework, its due by monday. I have read textbook a lot but i still dont know what to do next steps. Here is problem. The program should prompt the user for and accept two inputs: 1. The total price (including any applicable tax, etc.) for whatever was … Software Development java | |
I am pretty new to C#. I am a Borland c++ developer and is used to "newing" and "deleting" objects programmatically. I understand that with C# the garbage collector is responsible for the deleting of objects. It seems though that I have a memory leak. I am developing a SQLServerDBInterface … Software Development motherboards-cpu-ram user-interface | |
Hello.. I am new to vb.net. Need to know how can I retrieve the value from compname field of my table, to the textbox7 in form i made. While the user enters data in the textbox, i need to compare the entered textbox value, if it exists or not, in … Software Development vb.net | |
Dear friends , I am new to java . I created an JFrame(Calculator) application in Netbeans.Now i want to run that file from console(putty) since i gonna use that .java class in some other program through which i want invoke this . How do i do this . When i … Software Development java java-netbeans | |
I have one access database and one windows form. I have some text field and one picture box. I want to Store some data and image into my database, i have written following code to do the task but it says "Syntax error in Insert into statement". I am pasting … Software Development dataset microsoft-access open-source | |
OK, so I want to create a function getStrRegion(commented out at the bottom) to pass a str value N, S, E, W, C back to the main function so I can then drop it and regionSelect back into getNumAccidents. I'm not exactly sure how to pass a string of characters … Software Development c++ user-interface | |
guys, good day! I just want to ask how to reload/refresh a JComboBox. I have a cardlayout with 3 panels, each panel has its own combobox. what I want to do is to reload the combobox to its original state each time I swap the cardlayout. updateUI(); repaint(); revalidate(); I … Software Development java | |
Trying for the life of me to figure this out, but I can't seem to make sense of it. I found some code that demonstrates how keyboard events are handled, but it doesn't work when I have a textbox on my form. When the textbox has focus, the event does … Software Development | |
Maybe I should be doing this differently... but in case I have the right idea, how do I go about doing it? I have the following code: [code=csharp] void eventKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Control && e.KeyCode == Keys.O) this.eventOpenFile(); } private void eventOpenFile(object sender, EventArgs e) … Software Development | |
![]() | Hi. I am using visual studio with visual basic. I have create a combo box which data is from oracle. I want to know how to check the value in combo box is choose before i proceed to save the record? Thank you. Software Development oracle visual-basic visual-studio ![]() |
I am just learning Java and am trying to use variables from objects that I passed into another method. Can someone help me here [CODE] package data; public class Data { private int day, month, year; public Data(int day, int month, int year) { this.day = day; this.month = month; … Software Development java | |
Hey guys! I've created a simple program that given the current day and how many days from the current day, it will determine if it's a Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, where 1 Sun, 2 -Mon, 3-Tues, 4 -Wed, 5 -Thurs, 6 -Fri, 7-Sat My problem is that … Software Development java | |
Hey just a quick question with list <Object*> object; when i put an object in the container i use object.push_front(new thing(param1,param2,param3,param4,param5)); because i have used new how do i go about deleting this certain object in the list i figured somthing like this [CODE] while(p != object.end()) { if((*p)->exists(param)) { … Software Development c++ | |
Hello guys! I need another help now. My last topic was about editing a image, which I already get working. Now I need a few things: [LIST=1] [*]Open a folder, add every image that is inside it to a listbox (filter all the other files). [*]This one is a bit … Software Development open-source | |
The following program is supposed to sort eight strings in alphabetical order, but its not functioning properly. Can anyone please debug this [CODE]void main() { char *p[8], *s; int i,j,t; clrscr(); printf("Enter the strings:\n"); for(i=0;i<8;i++) gets(p[i]); for(i=0;i<8;i++) { for(j=i+1;j<8;j++) { t=strcmp(p[i],p[j]); if(t>0) { s=p[i]; p[i]=p[j]; p[j]=s; } } } printf("\nSorted … Software Development c | |
i am a newbie so bare with me.. can anybody help me solve this prob. input string was not in a correct format this is my code... i can figure out what wrong with this .. [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using … Software Development open-source | |
I am having problems getting this program to work. It will not compile due to errors for dollarAmount and Breakdown. Could someone please help [CODE]namespace test { class Converter { //classs variable private int currency; public void converter(int currency, int[] breakdown, int[] denom) { int diff = currency; int x … Software Development | |
I have a listbox with data as follows; [ICODE] 78550Item10 78550Item6 78550Item4 78550Item5 78550Item3 78550Item9 78550Item2 78550Item1 78550Item8 78550Item7 [/ICODE] How am I to sort the items in ascending order based on the digits at the end of the string so after sorting it is like; [ICODE] 78550Item1 78550Item2 78550Item3 … Software Development vb.net | |
i plan to display all of the odd number, and sum all of the odd number. please check with my code, there is something wrong...:) [ICODE]import java.util.Scanner; public class testing { public static void main(String[] args) { int sum = 0; Scanner scan = new Scanner(System.in); System.out.printf("Enter minimum number: "); … Software Development java | |
Hi all, I am new to C# and i am learning it from home.. so my doubts may seem silly to some of you:( . I am posting here to find some help fr the errors i get.. I am practising namespaces and i keep getting this error when i … Software Development assembly | |
import java.util.Scanner; class Calculator{ public static void main (String [] args) { Scanner suslady = new Scanner(System.in); int fnum, snum, remander, answer; char operation; System.out.print ("Enter 1st # "); fnum = suslady.nextInt(); operation = suslady.nextChar(); System.out.print ("Enter 2nd # "); snum = suslady.nextInt(); if(operation == '+') { answer = fnum … Software Development java | |
Hi,everyone. The problem is when I input "m" or "p" or other single input, it gives "ArgumentOutOfRangeException" in the line "int i = Int32.Parse(command.Substring(1, 1));". "if(command.Substring(0, 1) == "r" && i<= numCols)" these kind of condition use when the input like "r1,r2,r3...", then the following method takes number part as … Software Development | |
Hello guys! I'm having such a trouble with editing a image. This is my code: [CODE=C#]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.Drawing.Imaging; namespace Removedor_de_Banners { public partial class Form1 : Form { string caminho = null; int largura = 0; int … Software Development image | |
i have to write a program that displays the value of pi for values for i = 10000,20000.....,and 100000 i have to use the following series pi = 4(1-(1/3)+(1/5)-(1/7)+(1/9)-(1/11_+...+(1/(2i +1))-(1/(2i +1)) any ideas i have to do a program with looping i cant use arrays can someone give me a … Software Development java programming-construct | |
Hey guys I'ld really appreciate if u can help me with this. I'm building an application that has an access database for storing codes for voters. my problem is that after i update my database with the usual vb codes, i'll have to exit the application before the datagrid view … Software Development microsoft-access vb.net | |
I want my to create an explorer like application. What control should i use to show the contents of a directory. I tried listview and listbox. Unfortunately i was unable to add items in a listview using the function getdirectories("D:\") I managed to do so with listbox control. But how … | |
hi all i m facing problem populating jtable with the data of database !m using arraylist to populate jtable .but the problem is that m unable to add databse data into jtables.i m only getting the last row elements of databse. i should be getting this data in the jtables … Software Development java java-swing oracle | |
Hi everyone, Can you tell me a way to get the file path (filename) of a file when I "open with" it with my program. I mean that if I open a certain file with my software, I should get the file path of the file. Please Help:) Software Development visual-basic | |
[COLOR="red"]This is Reservation program full code written in JAVA <from the web> No Problems are in running process. I'm required to convert it to C language.[/COLOR] -- [COLOR="Green"]1- these are lines that i did not understand it. <could any one explain>[/COLOR] a. private static DataInputStream k = new DataInputStream(System.in); //what … Software Development java | |
Guys help me please, the equation on 2/3 is giving the waterTemp to 0; how come it is not changing? and also, if the nWaterTemp reached 20.00or somewhere 20.00 to 21.00; it is supposed to print that "THe kettle is now on "Help please [CODE]#include<stdio.h> #include<stdlib.h> #include<cstdlib> #include<time.h> void wait … Software Development artificial-intelligence-llm c | |
Hi, Guys i have an xml file containing near about 6,000 thousands questions in rtf format while inserting these questions into sql server it will give me an error, 2500 records inserted successfully .......... but from that point it will show error, [COLOR="red"]The CLR has been unable to transition from … Software Development | |
Hi, I am create new setup for my project(.exe). While i am click on exe it will throws an error microsoft has encounred a problem we need to close it. System.data.sqlclient.sql what happens , i am installed in another PC it will work fine . I have allready .netfrmawork an … Software Development | |
Hi, When i use realloc to re-size my array it is re-sizing it correctly but my some of my data is getting lost. Strange thing is that If I don't use realloc, I can still re-size my array by just increasing the index before inserting the data. In this case … Software Development c | |
Problem 4 – makeScarf(scarf) Let’s knit a scarf! With Python today we are knitting recursively. Your main program should be contained in a recursive function called makeScarf() which takes a string: your scarf that will be printed out in the end. You may use other helper functions as needed, but … Software Development python | |
I am working on a "searching" program. But it always returns a "." as the up directory or whatever. And I can't do an if statement to check if its a period or not. The goal is to get the only name of the folder in that directory. There is … ![]() |
The End.