132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jjones0150

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace JonesJAsign9 { public partial class frmReservation : Form { const int PRICE_PER_DAY = 115; public frmReservation() { InitializeComponent(); } private void frmReservations_Load(object sender, EventArgs e) { } private void btnExit_Click(object sender, EventArgs e) …

Software Development
Member Avatar for castajiz_2
0
197
Member Avatar for CrazyTesting

I have an SQL query within ASP.NET, but it only seems to return 1 result rather than filling the list with 4 as it should (as the query itself is correct) Code: List<string> dropItems, dropItems2; using (var dbContext = new DatabaseContext()) { dropItems = dbContext.Database.SqlQuery<String>( String.Format("SELECT locations.Code FROM locations")).ToList(); } …

Software Development asp asp.net sql
Member Avatar for castajiz_2
0
369
Member Avatar for moaz.amin.37

i have a problem in JDBC every thing is ok it shows this message `java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver` i already create DSN but but it stil show this error i do not know what i do My jdk is 64 bit and i create DSN of odbc 32 bit is any problem …

Software Development java
0
216
Member Avatar for fardous
Member Avatar for Schol-R-LEA
0
147
Member Avatar for nitin1

I am using Eclipse and there is one strange error coming while building. In files, it is not showing any error but when I build it, it says **Description Resource Path Location Type Program "g++ -std=c++0x" not found in PATH test [Discovery Options] page in project properties C/C++ Problem ** …

Software Development c++
Member Avatar for rayhaneh
0
114
Member Avatar for rayhaneh

hi ! I want to sum of digts on C++ but when get the nagative number give me the result if pastive number like when u write -98 answer u 17 not -17 #include<iostream> #include<math.h> using namespace std; int main(){ int N=0 ; cin>>N; int sum=0; while(N!=0){ sum += (N%10); …

Software Development c++
Member Avatar for Lerner
0
180
Member Avatar for RikTelner

So I've been working with C# for 2 weeks. That's not long at all, and probably and relatively to you, I have no knowledge at all. None the less, when I'm using Microsoft Word, Skype, Mozilla Firefox. I can't imagine how this works. Apparently to get MySQL to work through …

Software Development c# visual-studio
Member Avatar for deceptikon
0
230
Member Avatar for COKEDUDE

I am using a priority queue with a double as the priority. I am guessing this is cause so issues. I used these numbers first with no issues. 34.365681 34.481879 34.539832 36.715120 I then used these numbers and had a segmentation fault. 45.411042 40.481879 37.702110 38.951187 struct PRIORITYQUEUE { int …

Software Development c queue
Member Avatar for Schol-R-LEA
0
233
Member Avatar for Arphanet

hai.,. I'm struggling now to solve this problem., I could not able to save the string inputed by the user., the emulator responces error: [code=text]INT 21h, AH=09h - address: 07140 byte 24h not found after 2000 bytes. ; correct example of INT 21h/9h: mov dx, offset msg mov ah, 9 …

Software Development assembly
Member Avatar for Gustavo A.
0
7K
Member Avatar for AbstractEden

One of my assignments, that I already turned in, dealt with collecting a student's name and gpa, and storing the information in an array. Afterwards, we were asked to display the student's information in descending order based on their gpa. I was curious if anyone has any suggestions on improving …

Software Development java
Member Avatar for stultuske
0
4K
Member Avatar for ddanbe

Well, start a new forms application from VS. In design mode, drop a DataGridView and a Button on the form and fill in the code. The button clickhandler will add an extra totals row to the datagrid. Here it will keep adding and totaling, which is of course meaningless, but …

Software Development vb.net
Member Avatar for ddanbe
0
2K
Member Avatar for HuePig

Hi, I have a Blackboard class and an Item class: void Blackboard::send(std::vector<std::string> msg, std::string to){ std::list<Subscriber*>::iterator p; for (p = subscribers.begin(); p != subscribers.end(); p++) { if ((*p)->getName() == to) //check if sender is subscribed { (*p)->update(msg); } else{ // reciever is not subscribed std::cout << "Can not find " …

Software Development c++
Member Avatar for HuePig
0
130
Member Avatar for COKEDUDE

I was reading this example of Priority queues and have several questions. http://matrixsust.blogspot.com/2011/11/basic-priority-queue-in-c.html #include<stdio.h> #include<malloc.h> void insert(); void del(); void display(); //How exactly do structs in structs work? Do you need to do anything special with them? Is this a //form of a linked list? Which part of this is …

Software Development c c# c++ linked-list queue
Member Avatar for COKEDUDE
0
1K
Member Avatar for Swati_5

Hi, I trying to pass the selected file contents to another form gridview, In the first form1 all the csv files will get load in the datagridview,if i click on checkbox column in gridview the selected file content get load into the next form grid view. As i am new …

Software Development vb.net
Member Avatar for Mr.M
0
173
Member Avatar for kidkardel

hi can i ask if u can share your knowledge on how to create a button event that will automatically press ctrl+alt+shift+f12 when i press the button? Thanks

Software Development
Member Avatar for ddanbe
0
199
Member Avatar for gothv

Hey guys, So I have this atm machine assignment. Everything is working great, except I don't know how to declare char. I want to be able to choose between a, b, c & d. I am still a beginner we only covered 1 chapter so far in class so I'm …

Software Development c++
Member Avatar for gothv
0
232
Member Avatar for Pyler

when compiling code from my main function ireceive the following error `error: conversion from 'rectangle*' to non0scalar type 'rectangle' requested` My code is quite simple; Here's my main function #include <iostream> #inclde "rectangle.h" using namespace std; int main() { rectangle rect = new rectangle(3,4); cout<<rect.area()<<endl; cout<<rect.perimeter()<<endl; return 0; } here's …

Software Development c++
Member Avatar for Moschops
0
176
Member Avatar for Felisha_1

can anyone please tell me what is wrong with my program? Random n=new Random(); int card[][]=new int[5][5]; int bola[]=new int[75]; int sw=0,ctr,x=0,no,win=0,dr=0,dl=0,h1=0,h2=0,h3=0,h4=0,h5=0, m1=0,m2=0,m3=0,m4=0,m5=0; String diagonal, vertical, horizontal, fourCorners; //UNDER"B" ctr=0; while(ctr<5){ sw=0; no=n.nextInt(15)+1; for(x=0;x<ctr;x++){ if(card[x][0]==no) sw=1; } if(sw==0) { card [ctr] [0]=no; ++ctr; } } //UNDER"I" ctr=0; while(ctr<5){ sw=0; no=n.nextInt(15)+16; …

Software Development
Member Avatar for taichichuan
0
129
Member Avatar for wan_1

this is the question given by my lecturer :- Write a program to accept 5 students (names) and their respective test marks into an array or arrays. Sort them and print the lists in: a) alphabetical order b) mark ranks(from highest to lowest) and my input is enter name : …

Software Development c++
Member Avatar for taichichuan
0
149
Member Avatar for Builder_1

Write a function ListSplit that will split a circular list containing an even number of nodes, say 2k, into two circular lists each of which contains k nodes. The function should have three parameters and should work so that the function call ListSplit(list,sub1,sub2); will create new lists pointed to by …

Software Development c++ linked-list
Member Avatar for Builder_1
0
424
Member Avatar for Reverend Jim

I came across this must-read article. I was a maintenance programmer for 29 years and I've come across many of the deadly sins that he discusses and maybe even one or two that he does not. [How to Write Unmaintainable Code by Roedy Green](https://www.thc.org/root/phun/unmaintain.html).

Software Development
Member Avatar for taichichuan
0
311
Member Avatar for DawnofanewEra

I'm new to java and I'm working on a small android project using eclipse. I created a table and I want to populate it with data from a file. I have done this using EditText control shown below. public void AddRowItemTable(View view) { EditText itemid_Text= (EditText) findViewById(R.id.itemid); EditText itemname_Text=(EditText) findViewById(R.id.itemname); …

Software Development android android-development java sql
Member Avatar for stultuske
0
250
Member Avatar for Jack_9

I'm young and experimenting with coding trying to find what language is "my language" (which I guess means is that it's natural and I'm good at) So I started off with python and some MIT OCW to get introduced to the world of programming. Then I wanted to be able …

Software Development
Member Avatar for Jack_9
0
286
Member Avatar for MatthewVb

hey guys quick one, im doing an income vs expenses form on VB, i have two mulitline textboxes, one for income and one for expenses. Everything works well but i dont know how to add up the numbers in the textboxes when i have say 5 incomes, in the income …

Software Development vb.net
Member Avatar for MatthewVb
0
294
Member Avatar for Dudestreet

Hi Team, So I am working on this project where I have 5 comboboxes that loads data from an .accdb file and Displays the result as per selection in a Text Box. I need to add Timers(as many as Required) to capture the Text-Box Data **"10 seconds After"** the fifth …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
222
Member Avatar for ryannnnn

**Read title.** username = base64.b64encode(username)+'\n' This is what I thought would have worked, but it comes up with an error, "TypeError: can't concat bytes to str", meaning that I cannot add +'\n' to the end of the code. If there is anyway anyone knows how to write the byte of …

Software Development python
Member Avatar for vegaseat
0
310
Member Avatar for maskinao

Hi! I'm trying to write a code for my arduino project. it's an SMS-based Led matrix display. I seem to have problems with SRAM memory because of the size of the code. can you help me optimize it? #include "cmap.h" #include <SIM900.h> #include <sms.h> #include <SoftwareSerial.h> #define INTEN 6500 //speed …

Software Development c++ display
Member Avatar for jamescasundo
0
357
Member Avatar for funnym3

how to get the declared value from other java file and use it to another java file? like I want to show the user's real name using the textView when he/she successfuly login, from the main activity to the welcome page. example "Welcome User". I have tried this but it's …

Software Development android-development ide java
0
204
Member Avatar for Ndangoh Joseph

please guys look at the code below #include <stdio.h> int main(void) { enum days {monday=1, tuesday, wednesday, thursday, friday, saturday, sunday}; enum days today=monday, tomorow=today+1; printf("\n today is the %d day of the week\n", today); printf("tomorow is the %d day of the week\n", tomorow); printf("\n today is %s and tomorow …

Software Development c
Member Avatar for Moschops
0
129
Member Avatar for Bharath_4

Let x be a node in SLL. Write a C++ function to delete the data in this node. Following this deletion, the number of nodes in the list is one less than before the deletion. Your function must run for O(1).

Software Development c++ linked-list
Member Avatar for happygeek
0
271
Member Avatar for CrypticXH4XOOR

Hello guyz, i just want to enter the world of programming but i didn't know from what i'm starting i took a short look in C also C++ and Java, so any one know what is the best for learning as a start.

Software Development
Member Avatar for Tcll
0
569
Member Avatar for Waldis_1

I am adding data to a table in MS Access (2010 Version) from VB 2010 (using INSERT INTO statement) but when I exit the database and enter again the records are lost. Is there any known condition that causes that loss?. Thans in advance.

Software Development vb.net
Member Avatar for Santanu.Das
0
372
Member Avatar for Waldis_1

When one is out of practice easy becomes difficult. In this function I want to count the records with icliente status "pendiente" as criteria so we know if customer has a pending loan, but the function returns 0. What's wrong in the function? Public Function prestamospendientes() MsgBox(Me.txtid.Text) Me.Refresh() Dim prestamopendiente …

Software Development open-source vb.net
Member Avatar for Waldis_1
0
137
Member Avatar for michael.james.90475

public void log (){ if(start==null) System.out.println("List is empty.."); else{ Node temp=start; System.out.print("->"); //get rid of each user with a similar method but with a random user removed.... while(temp.next!=start ) { int r = rand.nextInt(2) ; if(r==0) { deleteAt(counter); System.out.println("Is Logged Off "+temp.data); } else if(r==1) { System.out.println("Is Logged on "+temp.data); …

Software Development java
Member Avatar for michael.james.90475
0
258
Member Avatar for aluhnev

int Cabin (int n); int _tmain(int argc, _TCHAR* argv[]) { cout << Cabin(8) << endl; return 0; } int Cabin (int n) { if (n == 1) return 0; else return Cabin(n/2) + 1; } Hi ,can someone explain why is the answer 3 here:if to folow the formula the …

Software Development c++
Member Avatar for aluhnev
0
265
Member Avatar for tgreiner

I have written some code that contains a system to report error messages to error log file. I use a class structure to do this. However, some parts of the code contain functions that I think might be useful in a more generic context. So, I am trying to use …

Software Development c++
Member Avatar for tgreiner
0
172
Member Avatar for aluhnev

//Hi Lads.This is my first attempt to create template functions. //Here is the main ,which needed to create Locate.h file/header and //in that Locate.h create templates to support the main. //If the value does not exist in the array, -1 is returned. // Templates.cpp : Defines the entry point for …

Software Development c++
Member Avatar for aluhnev
0
195
Member Avatar for Dawnbox

Hello! First time posting here so bare with me with my formating and other stuff. I've got a task were I'm going to create a caesar cipher. You should be able to write a sentance to the program and the shifting it should use. Then the letters should be shifted …

Software Development python
Member Avatar for Dawnbox
0
346
Member Avatar for Tcll

This language is built with python to give me a dynamic backend to make this possible. The language is based off ASM opcodes but generalizes them into basic coding practices. More info here: http://tcll5850.proboards.com/thread/271/umcsl note: WIP the language is meant to make it possible to convert between ASM and other …

Software Development assembly python
0
278
Member Avatar for poloblue

Good Afternoon, How do you insert a tab in a xml document. thank you

Software Development xml
Member Avatar for Mike Askew
0
134
Member Avatar for HuePig

Hi, I have a Blackboard object which is a singleton, what it does is store the message and the reciever. The challenge is that the blackboard will send an alert to the reciever and the reciever have to check the blackboard for the message. class Subscriber{ public: virtual ~Subscriber() {} …

Software Development c++
Member Avatar for Banfa
0
357
Member Avatar for kks21199

I want to download a file from, [Click Here](Here is the link : http://www33.zippyshare.com/v/67074373/file.html) I got this code : Dim Str As String = Me.WebBrowser1.Document.GetElementById("downloadB").GetAttribute("href") If (Str.EndsWith("zip")) Then WebBrowser1.Navigate("http://www33.zippyshare.com" + Str) End If amd it works fine but my problem is that my application is automated and I want the …

Software Development session
Member Avatar for Begginnerdev
0
1K
Member Avatar for JayGarxP

I keep getting access violations even though I made sure to make all my methods and functions const! Driving me insane. When I add a player then try to display all players the program tries to read my privates then gets violated. (Still lots of bugs in it elsewhere, but …

Software Development c++
Member Avatar for Banfa
0
291
Member Avatar for cambalinho

by several reasons, i must create the static with it's paint message: case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); if(inst->Paint==NULL) { RECT f; GetClientRect(hwnd,&f); HBRUSH s=CreateSolidBrush(inst->clrBackColor); SelectObject(hdc,(HBRUSH)s); if (inst->clrBackColor==-1) { //hide, copy the parent control and show the control again ShowWindow(inst->hwnd,SW_HIDE); BitBlt(hdc,0,0,f.right-f.left,f.bottom-f.top,GetDC(GetParent(inst->hwnd)),inst->intLeft,inst->intTop,SRCCOPY); ShowWindow(inst->hwnd,SW_SHOW); } else FillRect(hdc,&f,s); SetBkMode(hdc,TRANSPARENT); …

Software Development c++
0
105
Member Avatar for David KBG

Good Day, I really need your help with this program. Question: FIFA 2010 Group match During the world cup, 32 of the best teams fight it out for the coveted world cup trophy. The teams are placed in eight groups of four. In each group, the teams play each other …

Software Development c
Member Avatar for happygeek
0
154
Member Avatar for Slavi

Hey guys, I am facing a problem with one of my homeworks, it states: The various analyses implemented in the program analysis module will make use of a number of general data structures and algorithms and in this exercise we shall focus on those. The parser provides a representation of …

Software Development data-structure java
Member Avatar for Slavi
0
204
Member Avatar for COKEDUDE

I am trying to cast an int value in a struct to a double. I am guessing I am screwing up the parenthesis somehow. I wasn't able to find anything useful in the forum or in google. struct START { int x; int y; double heuristic; }; struct SHAPES { …

Software Development c c# c++
Member Avatar for COKEDUDE
0
166
Member Avatar for moaz.amin.37

Hello to all first look this code class Square1 implements Runnable{ int a; public void run(){ a=10; } } class Square2 implements Runnable{ Square1 ob=new Square1(); public void run(){ System.out.println("Square Of this number is = "+(ob.a*ob.a)); } } class SquareThread{ public static void main(String args[]){ Thread t1=new Thread(new Square1()); Thread …

Software Development java
Member Avatar for moaz.amin.37
0
1K
Member Avatar for Hassan_9

exception has been thrown by the target of an invocation please i need some help

Software Development vb.net
Member Avatar for Hassan_9
0
401
Member Avatar for psmb

I need a C++ program to implement a heap based priority queue which accepts job ID, priority number and submitter name as inputs. the program should heap sort whenever a new job ID or priority or submitter name is entered. The jobs that have maximum priority should be extracted (along …

Software Development c++ queue
Member Avatar for mike_2000_17
0
194

The End.