132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Stpdoug

I have another problem this time if anyone can help with random files i am writting and displaying records from the while but i want to display all records in the file that has data say i have 100 records but only 15 contain user data i want to display …

Software Development file-system java
Member Avatar for Stpdoug
0
176
Member Avatar for f4fjks

Hey All! kindly please tell me how to get user input right after the outtextxy function in graphics mode. Compiler : Turbo C , Win XP here is my program: [CODE]#include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int gd=detect,gm,s; initgraph(&gd,&gm,"c:\\tc\\bgi"); cleardevice(); outtextxy(100,120,"enter number here : "); scanf("%d",&s); getch(); }[/CODE] now here …

Software Development c++
Member Avatar for Cihan_1
0
677
Member Avatar for sbhavan

I want to develop a web application. In that I need to implement that the user can't open it in more than one instance in any system. I want to restrict it based on the user and machine. ie. a single user name should be used to login to the …

Software Development java java-jsp
Member Avatar for rubberman
0
479
Member Avatar for edrick.pascual.5

Write a program that displays the frequencies of sales commissions. The commission for each salesperson is calculated as $200 plus 9% of gross sales. For example a salesperson who grosses $5000 in a week makes 200 + .09 *5000 = 200 + 450 = $650 The program will input a …

Software Development java storage
Member Avatar for castajiz_2
0
492
Member Avatar for lrhimma

hi everyone im doing small vbproject that must auto generate id using the current date format in vb.net-(VISUAL STUDIO 2012) with Ms access database. When the button1 click the autonumber should be displayed in text. And when it save, it should be saved in the database access. The id number …

Software Development vb.net visual-studio
Member Avatar for lrhimma
0
2K
Member Avatar for london-G

Hello, I would like to create a macro. I have two worksheets, both containing an ID. Would like to update the price from the second worksheet corresponding to the ID. Any ideas? I am quite new to this so a bit of guidance will be appreciated.

Software Development
Member Avatar for ddanbe
0
126
Member Avatar for sing1006

#include <time.h> #include <math.h> #include <stdio.h> #include <conio.h> #include <string.h> #include <stdlib.h> #define ROW 9 #define COL 9 int printboard(int grid[ROW][COL]){ int x,y,n,chk; srand(time(NULL)); for(x=0;x<ROW;x++){ for(y=0;y<COL;y++){ do{ n=rand()%7+2; grid[x][y]=n; if (((grid[x][y]==grid[x-1][y]) && (grid[x][y]==grid[x-2][y])) || ((grid[x][y]==grid[x][y-1]) && (grid[x][y]==grid[x][y-2]))){ chk=1; continue; }else{ chk=0; printf("%d ", n); } }while(chk==1); } printf("\n\n"); } } …

Software Development c
Member Avatar for Ancient Dragon
0
428
Member Avatar for MOKSHo

write a template for a function called total . the function should keep a running total of values entered by the user , then return the total . the argument sent into the function should be the number of values the function is to read . Test the template in …

Software Development c c# c++
0
153
Member Avatar for COKEDUDE

When doing a linked list of chars with just a single character do you think it's better to use pointers in your struct like this? Typedef struct String_Node { Struct String_Node* next; Struct String_Node* prev; int id; char* c; } String_Node_t; Or better to not use a pointer with the …

Software Development c linked-list
Member Avatar for deceptikon
0
946
Member Avatar for scottyg95

I need to create two public static void mains, however when trying to create "mainfunction", I run into the illegal start of expression. Please help. import java.io.*; import java.util.Scanner; public class guessinggame { public static void main (String []args) { Scanner scanner = new Scanner(System.in); System.out.println ("Guessing Game"); System.out.println ("Do …

Software Development java
Member Avatar for stultuske
0
340
Member Avatar for jonathan710

So I was asked to solve this question...however when i compile it, it doesn't work...could somebody tell me what's wrong and how to solve it (im guessing it's something to do with overloading since my lecturer was talking abt it just before this was given)? thanks a lot! #include <iostream> …

Software Development c++ programming-construct
Member Avatar for DeanMSands3
0
270
Member Avatar for nav234

Hi all, Iam using [B]vb.net and WPF[/B] In a wpf window im showing a datagrid in the load event while in the load event itself,i need to count grand total amount from a single datagrid column and add it to a textbox in same page . My page looks like …

Software Development asp.net vb.net
Member Avatar for 123mahesh
0
5K
Member Avatar for andrew mendonca

For the maze program, with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path, where I have to use a recursive backtracking algorithm, I am still having trouble print the maze solution. Here is the unsolved maze: 8 12 ********** * * * * …

Software Development algorithm c++
Member Avatar for kal_crazy
0
312
Member Avatar for Prithiv_1

I have a code which add extra memcache instance at run time, but this makes my keys lost. I know there are several libraries available like consistent_hash, hash_ring but I am unable to use them in my code. I know there is ketama available but couldn't find python code sample …

Software Development caching-memcached python
Member Avatar for Prithiv_1
0
337
Member Avatar for jared.geli

Hi guys I need help on adding a value from 1 row to other column 1 row below. I know it's kinda confusing so here's what I want to do: Column_A Column_B Column_C 1 25% 25% 2 15% 40% 3 25% 65% 4 35% 100% So far I don't have …

Software Development vb.net
Member Avatar for jared.geli
0
200
Member Avatar for PratyushTheGreat

We get the co-ordinates of a projectile at t1, (a,b) at t2 (c,d) at t3, (e,f) and so on as required. Write a program in C++ to calculate equation of trajectory of projectile..

Software Development c++
Member Avatar for Rahul47
0
133
Member Avatar for mavtcr

Dear friends pl help me I want to select data from a data base table Tran with two selection criteria one is number and the other one is text When i use one criteria it works well But i am failed to use the two criteria my code is here …

Software Development visual-basic
Member Avatar for mavtcr
0
213
Member Avatar for moon.fall.58

I am having difficulties with the binarysearch function. I managed to get sorting and binary search done. However when I search a name it has to be the entire name for example Allison, Jeff. However, I want to know how to search just the first or last name of the …

Software Development c++
Member Avatar for Ancient Dragon
0
194
Member Avatar for Echo89

This is a function that generates a string of random characters to the length that you specify.

Software Development c c# c++
Member Avatar for 5n0wn1nja
0
7K
Member Avatar for Elias_2

A hospital desires to computerize its daily parking activity. The parking opens its doors from 8 AM till 8 PM. Therefore; they bought a device to issue cards, at the entrance gate upon the visitor request, showing the arrival time. Upon leaving the parking the same card is inserted again …

Software Development c++
Member Avatar for freeviewman
0
128
Member Avatar for prettyknitty

Hello, I was wondering what a second pair of eyes (or several) might have for opinions on this code? This program is supposed to store a user generated array, and functions which tell the highest, lowest, etc. Mainly, I need help with the "set cell" part, which is supposed to …

Software Development c++
Member Avatar for NathanOliver
0
220
Member Avatar for Stpdoug

Hey guys i am having a problem with displaying a single record out of a text file the code is not reaching the "if" function in the while loop of the "getRecord" Function please help. Everything else is working import java.io.*; import java.util.Scanner; import java.util.InputMismatchException; public class FileTest { //Globals …

Software Development display file-system java
Member Avatar for Stpdoug
0
337
Member Avatar for HenryR7

#include <iostream> #include <iomanip> #include <string> #include <cstddef> #include <cstring> #include <fstream> #include "IntStack.h" using namespace std; int main() { char c; ifstream inFile; string filename; cout << "Enter the filename " << endl; cin >> filename; inFile.open(filename); IntStack stack(50); if (!inFile) //file could not be opened { cout << …

Software Development c++
Member Avatar for HenryR7
0
169
Member Avatar for sravan953

Hey guys, As the title says, I want to know how I can reverse the characters in a string, but retaining the placement of the words as such, here's the code I used: [CODE]class reverse { void reverse(String s) { int l=s.length(),j=0; String s1=""; for(;j<l;j++) { char a=s.charAt(j); if(a==' ') …

Software Development java
Member Avatar for JamesCherrill
0
609
Member Avatar for cambalinho

i know: - &varname is the adress of varname; - *varname is the value of adressed variable. but: void *Vvariant=NULL; friend ostream& operator <<(ostream &os,const variant2 &obj) { os << obj.Vvariant; //how can i get the value of adressed variable? return os; } how can i get the value of …

Software Development c++
Member Avatar for cambalinho
0
127
Member Avatar for olabamiji14

please i need who can explain how i can develop a copyright detection sofware for me

Software Development c++
Member Avatar for mike_2000_17
0
133
Member Avatar for Derek_4

I am trying to create a player class to pick up and drop as well as carry items and this is the code I have so far. However, I am unsure what needs to be changed for it to work. import java.util.ArrayList; public class Player { private String Name_; private …

Software Development java storage
Member Avatar for Derek_4
0
393
Member Avatar for HenryR7

intstack.h cannot be changed class IntStack private: int *stackArray; // Pointer to the dynamically allocated stack array int stackSize; // The stack size int top; // Indicates the top of the stack public: // Constructor IntStack(int); // Destructor ~IntStack(); // Stack operations void push(int); int pop(); bool isFull() const; bool …

Software Development c++
Member Avatar for HenryR7
0
150
Member Avatar for chris.shipley.315

I really am trying to figure this out but just cannot get it right. I have 2 tables, "tblSalesMain" and "tblRepMain". I am trying to return to a combobox a reps first and last name instead of an "ID". For example, when a sale is selected it will show all …

Software Development vb.net
Member Avatar for Ancient Dragon
0
126
Member Avatar for Exinta

In my project I have got a listview filled with contacts which are stored in a XML file. This is the connection between the two of these and basically this is how the contacts are loaded: Please note that first function is called on form loading: void LoadContacts() { string …

Software Development file-system listview xml
Member Avatar for Ketsuekiame
0
215
Member Avatar for Rahul47

What is possibly wrong with this code ? data segment msg db "Enter a character: " data ends code segment assume cs:code , ds:data mov dx,data mov ds,ax mov dx,offset msg mov ax,08h int 21h mov bx,ax mov ax,4c00h int 21h code ends end ![766258137b1795d569beae9cd872b521](/attachments/large/4/766258137b1795d569beae9cd872b521.jpg "766258137b1795d569beae9cd872b521")

Software Development assembly
Member Avatar for turboscrew
0
241
Member Avatar for Sumith Asanka

Hi Guys I have a problem while an error and rollback Please check this example if i have an error at **CreateClassPayment()** method, it will go and execute rollback function but it doesn't rollback the transaction at **CreateAttendent()** but will not go for next transactions also **formSMSContents() and UPDATESMSPORTAL()**,can any …

Software Development c c# c++
Member Avatar for Ketsuekiame
0
312
Member Avatar for qasim.khan.923724

Can anyone help me with this code i have started it but then I got confused thanks. Option 1: Create two-dimensional array choc_yourname[50][7] using the data in file chocolates.txt and print the values of this array on the screen Option 2: Calculate the average quantity of sold chocolates per day …

Software Development c c# c++
Member Avatar for qasim.khan.923724
0
144
Member Avatar for jaasaria

hi guys , i have a problem with my loading/refresh record in my form. i have only almost 500 record and take so long before refreshing/display the data. i have a user input form where user enter their record and while saving(direct to the database) and refreshing data i just …

Software Development listview vb.net
Member Avatar for Begginnerdev
0
964
Member Avatar for newbie14

We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets fluctuates. Checked through and ensure all the resultset are closed and finally even the socket is close just based on …

Software Development http-protocol java
Member Avatar for newbie14
0
911
Member Avatar for andrew mendonca

In this program, I am trying to print a solution for the maze with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path. I am using a recursive backtracking algorithm in this program. For instance, here is a small (8-by-12) maze: 8 12 ********** …

Software Development algorithm c++
Member Avatar for kal_crazy
0
1K
Member Avatar for CodingCucumber

How to exit a program but keep the turtle window open? I have tried exit() but it doesn't keep the turtle window open

Software Development python
Member Avatar for Gribouillis
0
304
Member Avatar for sankubha

i having thread class ,each time when i am calling it creates new object and run new thread, i want to access specified thread variable from another class. is it possible??? help me....

Software Development java
Member Avatar for JamesCherrill
0
145
Member Avatar for leenana

Write a recursive function, vowels, that returns the number of vowels in a string (character array).no global variables are allowed ??

Software Development c++
Member Avatar for gerard4143
0
262
Member Avatar for sk8ergirl

I have class with two method to read and write to file and in my GUI jFram ArrayList<PersonTest> person = new ArrayList<>(); RWData readWrite = new RWData(); DefaultListModel<PersonTest> model; private void fillList() { model = new DefaultListModel<>(); for (PersonTest temp : person) { model.addElement(temp); } jList1.setModel(model); } private void btnLoadActionPerformed(java.awt.event.ActionEvent …

Software Development gui java
Member Avatar for JamesCherrill
0
252
Member Avatar for Pyler

Multiple generic arrays is it possible to create something like <String, Integer>[] a; If I wanted to create an array that stores objects of String and Integer?

Software Development java
Member Avatar for jwenting
0
154
Member Avatar for owenransen

I have a project created with VC2010 and the initial layout is almost ideal, it has a CFileView and a CClasView in a tabbed bar on the left and a CPropertiesWnd on the right. But for my project these windows need to say where they are and not be moveable, …

Software Development c++
Member Avatar for owenransen
0
207
Member Avatar for vijaya436

I am a newbie to hibernate and I am trying to insert a row. The below is my code along with log. I am not getting any exception, however when verified in the Database, the row itself is not getting inserted. hibernate-cfg.xml <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration …

Software Development java session
Member Avatar for vijaya436
0
3K
Member Avatar for poksmdpk

can anyone help me in this problem? i have to put sql server data in my combobox on my form, i watch several tutorial in youtube and read here some other codes but i still don't how to. please can anyone help me? Using combocon As New SqlConnection("Data Source=NSSISQLSERVER;Initial Catalog=NSSIDB;Persist …

Software Development open-source vb.net
Member Avatar for poksmdpk
0
152
Member Avatar for lauuuer69

Hello, Coders! I'm a professional backlink builder and I work for a company for 2 years right now. One of the services I provide is Social Bookmarks. I have a "semi automatic" system that gets the job done but due to recent changes in my company I need to make …

Software Development api json seo
0
263
Member Avatar for Qutbuddin

How to convert Text File to C/C++ File to include folder

Software Development c++
Member Avatar for mike_2000_17
0
4K
Member Avatar for dp121307

I have to write the an AVLTree in python, followed all the instructions and I feel I have it just right, only problem is I can't figure out how to display my tree. I have to use the test given below, as well as the 2 methods below in the …

Software Development data-structure display python
0
196
Member Avatar for Lost&Found

Hi, I'm looking for a little help. I'm trying to create a script with the ability to take home page as an argument, printing a message to say something about the site and then validate whether or not this is a valid URL. I'm relatively new to Python and haven't …

Software Development python
Member Avatar for Gribouillis
0
311
Member Avatar for aldahoudi

im trying to do this for fun but i cant figure out why i keep getting "null" instead of previous entry. ps. this isnt homework Thank you public class GetUser { public static void main(String[] args) { String name; String a []; char x='y'; int i; int n=1; do{ System.out.println(); …

Software Development java
Member Avatar for aldahoudi
0
123
Member Avatar for mc3330418

I am trying to read in a word to a string and then output the letters, in alphabetical order, and count how many instances of that letter. array a 2 r 2 y 1 #include "ArrayList.h" #include <iostream> #include <string> struct ItemType { char letter; int count; }; int main() …

Software Development c++
Member Avatar for rubberman
0
112

The End.