132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 … | |
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 … | |
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 | |
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 | |
#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 | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
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 ********** * * * * … | |
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 | |
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 | |
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++ ![]() | |
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 | |
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++ | |
This is a function that generates a string of random characters to the length that you specify. | |
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++ | |
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++ | |
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 | |
#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++ | |
![]() | 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 |
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++ | |
please i need who can explain how i can develop a copyright detection sofware for me Software Development c++ | |
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 … | |
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++ | |
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 | |
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 | |
![]() | 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  Software Development assembly |
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 … | |
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 … | |
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 … | |
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 | |
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 ********** … | |
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 | |
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 | |
Write a recursive function, vowels, that returns the number of vowels in a string (character array).no global variables are allowed ?? Software Development c++ | |
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 … | |
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 | |
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++ | |
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 … | |
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 | |
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 … | |
How to convert Text File to C/C++ File to include folder Software Development c++ | |
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 | |
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 | |
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 | |
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++ |
The End.