43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for functionalCode

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
Member Avatar for NP-complete
0
103
Member Avatar for G_S

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 …

Software Development gui java oop
Member Avatar for ~s.o.s~
0
212
Member Avatar for cdudefire

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
Member Avatar for cdudefire
0
2K
Member Avatar for DeOiD

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 …

Member Avatar for aadi_capri
0
393
Member Avatar for SyncMaster170

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
Member Avatar for Mitja Bonca
0
137
Member Avatar for vedro-compota

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
Member Avatar for vedro-compota
0
244
Member Avatar for chiiqui

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 …

Software Development java oop
Member Avatar for chiiqui
0
233
Member Avatar for TSaunders84

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++
Member Avatar for Fbody
0
139
Member Avatar for LittleMissChoco

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
Member Avatar for LittleMissChoco
0
149
Member Avatar for austenx

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
Member Avatar for austenx
0
591
Member Avatar for MattJones

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
Member Avatar for Fbody
0
205
Member Avatar for Pravinrasal

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
Member Avatar for JamesCherrill
0
276
Member Avatar for bibiki

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 …

Software Development java sqlite
Member Avatar for bibiki
0
673
Member Avatar for Ravic85

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 …

Software Development c c# c++
Member Avatar for Eagletalon
1
1K
Member Avatar for kccute

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
Member Avatar for abu taher
0
182
Member Avatar for suioius

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
Member Avatar for CoolPrizes
0
156
Member Avatar for Troebadoer

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
Member Avatar for Troebadoer
0
229
Member Avatar for Ruchi224

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
Member Avatar for kvprajapati
0
147
Member Avatar for Kamal_Java

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
Member Avatar for peter_budo
0
256
Member Avatar for tapandesai007

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
Member Avatar for kvprajapati
0
183
Member Avatar for crownedzero

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
Member Avatar for mrnutty
0
111
Member Avatar for jet101

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
Member Avatar for jet101
0
738
Member Avatar for agent154

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
Member Avatar for agent154
0
226
Member Avatar for agent154

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
Member Avatar for agent154
0
129
Member Avatar for hueikar

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
Member Avatar for hueikar
0
134
Member Avatar for Dexxta27

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
Member Avatar for Dexxta27
0
174
Member Avatar for laguardian

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
Member Avatar for Majestics
0
376
Member Avatar for ghostile

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++
Member Avatar for dospy
0
231
Member Avatar for RenanLazarotto

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
Member Avatar for RenanLazarotto
0
215
Member Avatar for Rupindersingh

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
Member Avatar for Rupindersingh
0
115
Member Avatar for rockout15

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
Member Avatar for Mitja Bonca
0
345
Member Avatar for pcolas

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
Member Avatar for pcolas
0
2K
Member Avatar for raaif

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
Member Avatar for raaif
0
1K
Member Avatar for gahhon

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
Member Avatar for gahhon
0
186
Member Avatar for csharplearner

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
Member Avatar for sailaja reddy
0
852
Member Avatar for suslady

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
Member Avatar for suslady
0
287
Member Avatar for AirWave

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
Member Avatar for kplcjl
0
171
Member Avatar for RenanLazarotto

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
Member Avatar for RenanLazarotto
0
122
Member Avatar for ilovejava

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
Member Avatar for NormR1
0
1K
Member Avatar for juniorsilver

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
Member Avatar for juniorsilver
0
2K
Member Avatar for thetraeller94

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 …

Software Development listview vb.net
Member Avatar for thetraeller94
0
243
Member Avatar for sohiabmaroof

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
Member Avatar for sohiabmaroof
0
192
Member Avatar for daniwaber

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
Member Avatar for daniwaber
0
319
Member Avatar for Dorar

[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
Member Avatar for Dorar
0
233
Member Avatar for chiiqui

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
Member Avatar for Moschops
0
252
Member Avatar for bhagawatshinde

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
Member Avatar for bhagawatshinde
0
181
Member Avatar for bhagawatshinde

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
Member Avatar for bhagawatshinde
0
107
Member Avatar for sunny124

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
Member Avatar for Ancient Dragon
0
117
Member Avatar for jhartley3

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
Member Avatar for absdef
0
160
Member Avatar for daveoffy

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 …

Software Development c c# c++
Member Avatar for MonsieurPointer
0
310

The End.