132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ShadyTyrant

If you could change one thing about C# or the .Net framework what would it be? If I could change one thing about C#, using would be imports.

Software Development
Member Avatar for thines01
0
134
Member Avatar for DarkMonarch

hey guys, sorry for my noobness, i'm still a jr and the boss ask me to learn xml because i'll have to work on a ticket selling site. oke no problem there, i luv learning. so i read all the xml tut on w3school. it's not that hard, but more …

Software Development xml
Member Avatar for DarkMonarch
0
161
Member Avatar for Rahmania03

hello friends, i m developing an windows application in VS2010 using Visual C# and MS Sql 2008 R2. i have a form consisting of datagridview and a Combobox. Name of DataGridView is "dgAccount" having three columns "Name","RollNo","City". Name of Combobox is "cboName". The Name of my DataBase is "dbAC". The …

Software Development dataset microsoft vb.net
Member Avatar for Rahmania03
0
496
Member Avatar for pjh-10

if ive a 1000 songs,using shuffle whats the probability, on average, how many tracks will be played before a previous song plays again. tricky probability Q, getting a few different answers, with some variation of accuracy!! thanks

Software Development c++
Member Avatar for pjh-10
0
443
Member Avatar for rezonk

#include<iostream> using namespace std; struct Student_Record{ int id_num; int assignment; int quiz; int test; char grade; }; void get_data(Student_Record &p); int calc_mark(Student_Record p); Student_Record read_data(); void print_all(const struct Student_Record p{}); int main() { Student_Record amir,naim, amirNaim[2]; int amirtotal_mark, naimtotal_mark; get_data (amir); amirtotal_mark=calc_mark(amir); if (amirtotal_mark>=60) amir.grade ='p'; else amir.grade='F'; naim= read_data(); …

Software Development c++
Member Avatar for nullptr
0
166
Member Avatar for jackmaverick1

I have a project going (the idea for which I got from a website a couple of years ago) and its been going pretty well. However, I have come upon a strange error, which I can't find the source of (well, I know the source but I don't know what …

Software Development c++
Member Avatar for histrungalot
0
394
Member Avatar for jhedonghae

hi how do i set a listview to only add one item from a combobox? example: when the combobox contains the items dog,cat,pig and when the user chooses pig it is added to the listview but when the user selects the pig again it must prompt that already added... i …

Software Development listview vb.net
Member Avatar for jhedonghae
0
119
Member Avatar for bhallarahul

which api is used to develop java program to send sms text on phone

Software Development api java
Member Avatar for bhallarahul
0
105
Member Avatar for bsabowala

String line = null; double value; BufferedReader in = new BufferedReader(new FileReader("C:\\Users\\Bilal\\Documents\\Work\\scrambler\\input.txt")); int x=0; while (line != "end"){ line = in.readLine(); System.out.println(line); x++; } }} When I run this.. the loop does not stop when the word end comes.. why???????

Software Development java
Member Avatar for JamesCherrill
0
190
Member Avatar for choosenalpha

Hi All, I'm fairly new to Java. I have a question involving the Replace Method. Is there, any way I can use the replace method to change a string that results in: Helle, Werld; to get it to result to Hello, World using the replace method. I have seen the …

Software Development java printer
Member Avatar for TrustyTony
0
222
Member Avatar for Baduizm

Why do I get a Null Pointer in my test whenever I run it from the ant?My Test class Is: package com.MySelf.exchangerate.exchange; import static org.junit.Assert.assertEquals; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import junit.framework.Test; import com.MySelf.exchangerate.application.ExchangeRateApplication; import junit.framework.TestSuite; public class ExchangeRateApplicationTestCase extends AbstractTestCase{ public static final Logger logger=Logger.getLogger(ExchangeRateApplicationTestCase.class); private static final double delta …

Software Development apache java java-swing
Member Avatar for Baduizm
0
164
Member Avatar for jodzjcm

I have a problem. If the text is too long in the text file...the program crashes. How to solve it?

Software Development c
Member Avatar for WaltP
0
149
Member Avatar for jodzjcm

If the user inputs 1 the program will automatically create a new node..How? the maximum that I can do is 2..how to add node? Code blocks are created by indenting at least 4 spaces ... and can span multiple lines def *New(def *pHead){ def *temp; temp = malloc(sizeof(def)); pHead->pNext = …

Software Development c
Member Avatar for TrustyTony
0
150
Member Avatar for hughesadam_87

Hey everyone, Last semester my buddy and I made a tutorial on application programming in Python. This video uses the Enthought Tool Suite (ETS), a free powerful Python development toolkit, to build quick, easy and powerful GUI's. I see many posts on this site about Tk, wx, qt but haven't …

Software Development gui python video
Member Avatar for hughesadam_87
0
487
Member Avatar for hwoarang69

hi i need help with linked list. so iam trying to mege two linked list together. i got all to working but my meger method dont work. lets say age of List_A = 1, 2, 3; and List_B = 2, 4, 5, 6; after meger method i should get 1,2,2,3,4,5. …

Software Development c linked-list
Member Avatar for zeroliken
0
162
Member Avatar for jtbens01

Hey guys, I'm getting some kind of linker error. Any help would be appreciated. Here is what I have.. Header File: #ifndef _LinkedSortedList_ #define _LinkedSortedList_ #include "LinkedNode.h" #include "SortedList.h" template <class Elm> class LinkedSortedList : public SortedList<Elm> { public: LinkedSortedList(); ~LinkedSortedList(); void clear(); bool insert(Elm newValue); bool getfirst(Elm &returnValue); void …

Software Development c++ visual-studio
Member Avatar for jtbens01
0
136
Member Avatar for BryantFury

Hi ive developed a code that does 2 things. It is about 20 students doing a test and getting a mark out of 100. First is using the class, it will look in a file, display the names of all the students(20) and their respective test scores.It will also show …

Software Development c++
Member Avatar for BryantFury
0
188
Member Avatar for renzlo

Hi all, I am making a file monitoring tool, I've asked google what's the best approach in doing that and it returned that I should use filesystemwatcher, others suggested a polling program. Now I've decide to ask here for my final decision, hoping for some advices. Here's my the current …

Software Development vb.net
Member Avatar for renzlo
0
210
Member Avatar for winnitbaker

Right im a junior programmer and im trying to build a system which shows data from a database. I have about 18 check boxes will all different types of data. Depending on what is ticked will depend on what is displayed in the data grid. Im having to use sql …

Software Development
Member Avatar for Momerath
0
174
Member Avatar for coding101

im trying to build my own LL, not seeming to work? My insert method is wrong, and cant fiugre it out, any ideas? public class List { private int size; private Node root; private Node current; public List(){ size = 0; } public void insert(int a){ size++; if(root == null){ …

Software Development java linked-list
Member Avatar for NormR1
0
102
Member Avatar for Runnaz

I Got STUCK ON PART 7, would appreciate it if someone can help out. I have it due on sunday Thanks we are going to implement a slightly different version of Roulette. In our version there will be only one player and the winner is determined solely by the slot …

Software Development c++
Member Avatar for Lerner
0
223
Member Avatar for saleem.mukhtiar

Dear friends kindly gudie me how can i make table design data grid?? ... sample pic i have attached ...

Software Development vb.net
Member Avatar for saleem.mukhtiar
0
74
Member Avatar for Hypnos_16

Hey everyone, i'm currently working on a program that requires a number to be saved outside of the program in some manner and recalled later. Sounds confusing but perhaps this will help. The program i'm making is a game, and i want to be able to create something similar to …

Software Development java
Member Avatar for 117
0
169
Member Avatar for mags11

Hello. I am having a slight problem with layout in my program. The Textfield doesn't seem to be aligned with the Message Label. The program is a GUI MPG calculator. It's supposed to calculate the car's mileage. It's supposed to let the user enter the number of gallons of gas …

Software Development gui java java-swing window-manager
Member Avatar for NormR1
0
740
Member Avatar for Stevo812

Hi everybody. I am new to this site and am sure you guys could help me. I am currently writing a pool game using eclipse and need to create an array of objects.I have two balls placed individually onto the screen but I'm not certain how to write an array …

Software Development gaming java
Member Avatar for Stevo812
0
1K
Member Avatar for paoi00

i dont know what to do with this codes. when i used this to other forms it runs without error except for the one form. error says : "The ConnectionString property has not been initialized." but then i already initialized it. please help me. Public Sub showmyrecords() Dim lvi As …

Software Development dataset vb.net
Member Avatar for paoi00
0
172
Member Avatar for de Source

hi, i have three text boxes tb1 has timeIn tb2 has TimeOut and i have a Button which shows the time duration between them i have used time diffrence method bt it is unable to calculate the duration it only gives the difference which create problem when time is greater …

Software Development
Member Avatar for darko444
0
497
Member Avatar for Sturdy

Hi All, How i can restrict the numbers of customer from database? I use adodb with access. I know how to retrieve customers from database but i don't know how to restrict it to spesific numbers. Best Regards. Sturdy

Software Development sql visual-basic
Member Avatar for Sturdy
0
214
Member Avatar for jodzjcm

It doesn't read the first line of the text file. Why? pFile = fopen(user, "r"); if(pFile == NULL) printf("File doesn't exist!\n"); if(pFile != NULL){ while(fgets(line,80,pFile) != NULL) { fgets(search,1000,pFile); printf("%s\n",line); . . . . .

Software Development c
Member Avatar for zeroliken
0
130
Member Avatar for Nathaniel10

I am teaching myself C++ and wrote a program that does the queue data structure. It runs corectly. I would like some feedback on how I can improve the program to make it run faster, use fewer lines of code, or be clearer to someone else. I haven't added my …

Software Development c++ data-structure queue
Member Avatar for Nathaniel10
0
87
Member Avatar for BryantFury

Hi im trying to create a code where it would read from a separate text file some names and grades, then display them. However i am asked to use a class to "store"(if thats the word) them as below: #include <iostream> #include <fstream> using namespace std; class student { private: …

Software Development c++
Member Avatar for BryantFury
0
145
Member Avatar for Mr.BunyRabit

I have a java program whith a mysql database. the user loggs in in the breginning of the system with a username and password. there are some functions that the normal users may not see/use. How do i know who is logged on to my system, since they only type …

Software Development java
Member Avatar for gourav1
0
284
Member Avatar for Runnaz

I Got STUCK ON PART 7, would appreciate it if someone can help out. I have it due on sunday Thanks we are going to implement a slightly different version of Roulette. In our version there will be only one player and the winner is determined solely by the slot …

Software Development c++
Member Avatar for Lerner
0
106
Member Avatar for kampao00

please kindly help me!!! what i wanted is when i select items in the combobox and it is already in the database it will prompt that it is already in the database..tnx Private Sub ComboBox3_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles ComboBox3.Validating If ComboBox3.Validating Then con = New …

Software Development open-source vb.net
Member Avatar for Mitja Bonca
0
196
Member Avatar for muthukumar46

i have to receive a mail when compare 2 xml files difference i have 2 xml file 1 st xml file: <?xml version="1.0" encoding="utf-8" ?> <Books> <Book bookId="100" name="Asp.Net" price = "230" /> <Book bookId="101" name="C#" price = "200" /> <Book bookId="102" name="Silverlight" price = "300" /> <Book bookId="103" name="MFC …

Software Development email xml
Member Avatar for thines01
0
257
Member Avatar for mkerala

A program to solve the following problem. You can use C, C++, C#, Java or Haskell to code your solution. **The problem** You have a block of platinum that can be exchanged in your bank either for cash or for smaller blocks of platinum. If you exchange a block of …

Software Development algorithm c++ java
Member Avatar for thines01
0
1K
Member Avatar for FazeLessWhite

Hello Everyone , I Have Made a Simple C++ Code And I Get Some Errors I Have Been Trying To Solve this For Like 2-3 Days :( I am a Beginner in C++ #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { for char name[100]; int age; …

Software Development c++
Member Avatar for zeroliken
0
119
Member Avatar for sujskiez

Write a C++ program such that its execution will keep asking the user to enter a pair of integers, start and finish, and will terminate when either start>finish, or EOF or an invalid input has been encountered. Every time a new pair of integers start and finish are read, the …

Software Development algorithm c++
Member Avatar for zeroliken
0
201
Member Avatar for fka

Hello. I have some problems with recieving text from ListBoxItem. My code is below: ListBox list = (ListBox)this.FindName(e.Parameter.ToString()); ListBoxItem item = (ListBoxItem)list.Items.GetItemAt(0); //****here is exception**** T.Text = item.Content.ToString(); list.Items.RemoveAt(0); The exception throws: Unable to cast object of type 'System.String' to type 'System.Windows.Controls.ListBoxItem'. My ListBox contains numbers, but it does not …

Software Development c c# c++
Member Avatar for fka
0
198
Member Avatar for CPEBB

help me please this is a code #include <iostream> #include <string> using namespace std; class Student { private : int StudentID ; string FirstName; string LastName; string CourseName; double FirstExamGrade; double SecondExamGrade; double AssignmentsGrades [5]; double FinalExamGrade ; double Avr_Of_Assignment; double TotalGrade; public : void SetFirstName (string S1); void SetLastName …

Software Development c++
Member Avatar for CPEBB
0
383
Member Avatar for ineedsomehelp:3

I need some help with debugging this problem. I just started learning how to store files at C but I can't seem to check if this code is correct since I can't compile it well. Might anyone help me point out the problems in my code? #include <stdio.h> #include <stdlib.h> …

Software Development c linked-list
Member Avatar for zeroliken
0
236
Member Avatar for poloblue

Good Afternoon, I'm new to socket programming, and the assignment that I have to do with Server/Client socket programming which I have to write server and client programs to send text across Transport Service Access Points (TSAPs) also known as TCP ports or Sockets. Your program can select any non-privileged …

Member Avatar for Momerath
0
258
Member Avatar for jackbauer24

When I run my bucky.java, the background color is black and not pink. Why? Here is my bucky.java:- import javax.swing.*; import java.awt.*; /** * Created by IntelliJ IDEA. * User: Administrator * Date: 3/30/12 * Time: 3:59 PM * To change this template use File | Settings | File Templates. …

Software Development java java-swing
Member Avatar for jackbauer24
0
182
Member Avatar for jhedonghae

hi everyone! below i will be showing you the codes of my scheduling module for an enrollment system..my problem is that on how to set conflict here is the code: Option Explicit On Imports System.Data Imports System.Data.OleDb Public Class Scheduling Dim con As OleDbConnection Dim com As New OleDbCommand Dim …

Software Development dataset open-source vb.net
Member Avatar for jhedonghae
0
367
Member Avatar for dakerao

Hello all I have a bunch of aggregate elements within my array. This array is for vertex positions in OpenGL. and I need to make a switch without having to bind more data to OpenGL. To do this I must put an if statement within the array or a booleon …

Software Development c++ gui opengl programming-construct
Member Avatar for MandrewP
0
198
Member Avatar for kkb08

I'm trying to write a program that asks the users for a set of numbers which the program then sorts and counts the frequency of. I struggling with understanding arrays. I have one array in particluar called frequencyArray that I'm trying to print but it keeps returning the value 0. …

Software Development c++
Member Avatar for MandrewP
0
222
Member Avatar for venkateshyeluri

I attempted to get the records from the MySQL database and display it on a Grid View but nothing appeared. The code is below: MySqlConnection myconn = new MySqlConnection("server=localhost;user id=root;password=db;database=workers;"); // myconn.Open(); string strSQL = "select * from details"; MySqlDataAdapter mydata = new MySqlDataAdapter(strSQL, myconn); MySqlCommandBuilder cBuilder = new MySqlCommandBuilder(mydata); …

Software Development dataset display mysql
Member Avatar for venkateshyeluri
0
193
Member Avatar for dark_sider_1

Hi there, I feel really stupid since I'm a beginner at OpenGL with drawing. Is there something that I'm missing in the code? The line doesn't show up on the screen. Thanks! glClearColor(1.0f, 1.0f, 1.0f, 1.0f); glBegin( GL_LINES ); glColor3f( 1.0f, 0.0f, 0.0f ); glVertex3f( 100.0f, 150.0f, 0.0f ); glVertex3f( …

Software Development c++ opengl
Member Avatar for mike_2000_17
0
979
Member Avatar for afzal123

anyone can help me. all of this overcome the segmentation fault. #include<stdio.h> int bubble(int*,int); void filewrite(); void avgmarks(); void fileprint(); void filesort(); void rollin(); int main(void) { int marks[100],rollno[100],x[100],n,i,j,roll,c,mark,roll1; char name,nam; while(c!=6) { printf("GIVE CHOICE--\n"); printf(" 1 TO ENTER STUDENT INFO.\n"); printf(" 2 TO SEE STUDENT.TXT FILE\n"); printf(" 3 TO …

Software Development c
Member Avatar for histrungalot
0
156
Member Avatar for idlackage

I put a bunch of JButtons in a 2D array into a GridLayout. I want the user to be able to change the size of this grid at run time, but I tried resetting the row/cols, re-adding the buttons, remaking the panel that this grid is in - all to …

Software Development java
Member Avatar for idlackage
0
508

The End.