199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for santhya123

In this task,the csv file has retreived and it viewed by using datagrid. but now how we can take a specified header name from the datatable??

Member Avatar for sknake
0
121
Member Avatar for sivananda2009
Member Avatar for jrosh

I used below code to extract year from a date object. [CODE] java.util.Date ye = new java.util.Date(); int y = ye.getYear(); System.out.println(y); [/CODE] But it prints ,109 How I get the year as 2009??

Member Avatar for jrosh
0
228
Member Avatar for bcohenllc

Alright.. i figured out mostly everything but my math is still screwing me up. I need to accumulate running totals for number of checks and number of deposits ;and total value of checks and total value of deposits. Im supposed to do this by looping through my arrays and this …

0
175
Member Avatar for desiguru

I have a file called file.dat and have to write a program called sdev.c which adds up all of the numbers in file.dat from each line. (Assuming that one number is per line) which has to open like this $ ./sdev < file.dat Now I can do all of the …

Member Avatar for Ancient Dragon
0
68
Member Avatar for Talguy

Last week I was goofing around with multidimensional vectors and removing an element from each row. I got my code to remove and element from each row working inside int main, but when I put all this code inside of a function I started to get errors. The common error …

Member Avatar for Talguy
0
564
Member Avatar for low1988

Firstly ,i'm not asking about the code,i need suggestion and idea how to do it.I don't even know what should be the first thing in the main menu,because i think it is not some sort of input and output program.I thought i might relate to something like queue or stack …

Member Avatar for crazyboy
0
128
Member Avatar for restrictment

Hello all, I was soooo close to nearly being done with my game..however when I added the final 'armory' loop I got an error! I took the loop out of the program, and ran it by itself, and it worked fine...yet when it is in the program it is wrong? …

Member Avatar for restrictment
0
119
Member Avatar for namour84

hello sorry which method is the correct one we solved a question me and my friend in different methods and we went to our prof he said his method is the correct one and i couldn't get his idea so this one the first one is my way of solution …

Member Avatar for wildgoose
0
102
Member Avatar for PoRco1x

I looked around and I didn't quite find what I was looking for. I know that to initialize an array of objects, we have to go something like this : Object *array[10]; But my question is : Why exactly can't we just go like this.. Object array[10];

Member Avatar for necrolin
0
144
Member Avatar for dldsob

I declared 4 different arrays. I dont know how to display all the arrays. Can anyone please help me with this? I want to display all 4 arrays like this: Student 1 2 3 4 5 6 7 Time Status Final 1 0 0 0 0 0 0 0 6.50 …

Member Avatar for PoRco1x
0
85
Member Avatar for ryy705

Hello, With PHP I've saved all my website settings in one file e.g [code] 'baseUrl' => 'http://localhost/thisSite', 'resources' => '../Resources/', 'templates' => '../Resources/TPL/', [/code] This makes the site very portable. I simply make changes to this one file and I can move the site to any server. But I how …

Member Avatar for ryy705
0
228
Member Avatar for mms6

binding_locations(strA, strB) My specifications The first parameter represents a strand of DNA. The second parameter is one strand from a recognition sequence. Return a list of all the indices where the recognition sequence appears in the DNA strand. (These are the restriction sites.) ------------------------------------------------------- For example, if the DNA palindrome …

Member Avatar for AutoPython
0
103
Member Avatar for RC1007

I've got one form in a masterpage en here i've got one asp:button with a submit function that sends data to my mail for now. And then I made a contactform in a contentpage with a asp:button.Herefore is a second submitbutton. All code behind vb.net(the function) Problem: when i click …

0
98
Member Avatar for neithan

Hi everyone. I am so confused in input and output! I'm following what it looked to be a nice tutorial from VTC and it shows how to use scanf and printf. But i'm seeing everywhere things like printf and scanf and getc, getch, puts, gets...wtf? I learnt the diff between …

Member Avatar for Narue
0
191
Member Avatar for ab00120

Hi there, At university I learnt Fortran to an adequate level for simple programs and as I enjoyed it i looked towards trying to learn C++. Up to now its been very slow but progressing, however i seem to have hit a bit of a brick wall. From just material …

Member Avatar for ab00120
0
96
Member Avatar for power_computer

I have created a insert function which inserts the item in the template array, the position of the item in the array template list is depending on the ratio of wins over total games played, I have manged to work out the insertion sort if the two scores of a …

0
80
Member Avatar for swinefish

Hey all I'm writing a rasterizer at the moment, and one of the basic transformations you can perform is rotation. This demands the use of trig functions. However, when rotating a cube, my cube slowly shrinks. Is this s result of loss of accuracy in Math.sin() and Math.cos()? Or is …

Member Avatar for mrnutty
0
130
Member Avatar for nizbit

This is a very basic question, but I'm very new to python. I want to read data in a file. The data is between two delimiters. I'm not exactly sure how I can extract the data and skip the delimiters. Any help would be great.

Member Avatar for vegaseat
0
279
Member Avatar for DazednAngry

I am working on an assignment and I need a bit of help. I am using a double linked list to find roots of polynomials, the list has a trailer node only. I can't seem to get it to create a list. I figure I am just missing something small …

Member Avatar for BestJewSinceJC
0
131
Member Avatar for wangatang126

Can someone help me edit this program. I am a begginer in C and suck at it somewhat. I can't figure out a way to make the function work since i have to initialize s to equal u and if i initialize it in the function it will always make …

Member Avatar for Grn Xtrm
0
189
Member Avatar for itzaaron

I am attempting to make a program that would take a phrase and the flip it backwards like this: [CODE] char teststr[] = “Have a nice day!!”;[/CODE] and change it to !!yad ecin a evaH Function? [CODE]void reverse(char unencrypted[], char encrypted[]);[/CODE]

Member Avatar for mrnutty
0
2K
Member Avatar for belper

Hello, I am developing a site with Dreamweaver CS3 and have a little knowledge of HTML. I need a solution for the following: Visitors can come to my site through a referrer for ex: [url]www.domain.com/?ref=cesar017[/url] The referrer’s information (cesar017) should be prefilled automatically in a form field on another page …

Member Avatar for belper
0
187
Member Avatar for belper

Hello, I am developing a site with Dreamweaver CS3 and have a little knowledge of HTML. I need a solution for the following: Visitors can come to my site through a referrer for ex: [url]www.domain.com/?ref=cesar017[/url] The referrer’s information (cesar017) should be prefilled automatically in a form field on another page …

Member Avatar for belper
0
576
Member Avatar for kingcrim05

The code should be pretty close to where i need it to be. It's just a sorting code for an input file that contains 6 numbers. What am i doing wrong? [code=c++] #include <iostream> #include <fstream> #include <iomanip> #include <math.h> using namespace std; /****** Variables *****/ /* Size of heap …

Member Avatar for kingcrim05
0
120
Member Avatar for 2fac323

I am confused by the question and having trouble designing the logic(pseudocode) for this problem, any help would be beneficial and appreciated.. Heartland Community College has a file of student records sorted by the hour of the student's first class on Mondays this semester. The hour of the first class …

Member Avatar for Chilton
0
135
Member Avatar for simpatar

Ok my program looks like this: [CODE]U = set([0,1,2,3,4,5,6,7,8,9]) A = set([2,4,5]) B = set([5,8]) C = set([5]) def main(): print('This is a program to give complement to given elements') x = input('Enter elements bla bla: ') y = U.difference(x) print('The complement of given elements are:', y) main()[/CODE] As you …

Member Avatar for simpatar
0
81
Member Avatar for NinjaLink

I need help with my function that is in my stack.h file which converts postfix expression to infix. My main.cpp reads the postfix expression from a file and outputs the expression to an output file. My main.cpp is currently working. I just need someone to help me with my toInfix …

0
104
Member Avatar for Logi.

Evening Folks, Having a bit of a problem with somthing i am trying to code, wondering if anyone here can help.... The basic idea is that i am trying to build a Priority Queue of binary tree nodes so that they are stored in ascending order by a number stored …

Member Avatar for quuba
0
886
Member Avatar for Bobby1

In this assignment, we will develop a simple inventory database program (database application) for a small computer store. We will use the database that we used in The program is menu-driven. It should be capable to perform the following operations on the database: 1. Find a record by product id …

Member Avatar for Grn Xtrm
0
80
Member Avatar for Excizted

Hello DaniWeb. ;) I have a problem with char->tchar conversion, that i cant seem to solve. I want to launch another program, anh the relative path to that program is fetched from MYSQL. [CODE] updateBox = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG2), hWnd, updateDiag); hThread = (HANDLE)_beginthreadex(NULL, 0, Blah::Start, NULL, NULL, NULL); [COLOR="red"]_stprintf(patcherLoc, _T("%s/Patcher …

Member Avatar for Excizted
0
239
Member Avatar for jjf3rd77

Hey all this is the problem i am currently stuck on; in fact my whole class doesn't get it... Write a C++ program with a loop that asks user to enter a series of integers in the range of [-100 100]. If user enters a number out of that range, …

Member Avatar for jjf3rd77
0
255
Member Avatar for power_computer

I have a program that reads from a file, and inserts the read items into a template array. Once that file is read into the array the second file is read, if there is a invald name ie name not int the array it is not updated. The second file …

Member Avatar for power_computer
0
132
Member Avatar for rackster992

Hello Everyone I am new to this forum and new to learning Python. I was looking for a good book to help teach it to myself and on a recommendation purchased the book [I]Python Programming In Context[/I] by Bradley Miller and David Ranum. This is a good book in terms …

Member Avatar for dcghelp
0
1K
Member Avatar for rready1

all I need to do is have a control that a user keys in a code that is validated against the sql table and brings back the associated web page for that code. does anyone know how to do this in Visual Studio 2003

Member Avatar for w412
0
103
Member Avatar for JoQsh

I'm working on some code for a school project that involves outputting the average GPA of a group of male and female students. The total GPA (before dividing to get the average) needs to be rounded as each student's GPA is added in order to get the correct output. However, …

Member Avatar for JoQsh
0
152
Member Avatar for ravenrider

Hi guys!!! everytime I try to read the course description from the file it crashes, (fin>>Des; (*cptr).setclassD(Des);) I even used the getline function and still not workling ... maybe this a very easy fix but I have been trying to fix it for hours and now I'm turning to you …

Member Avatar for ravenrider
0
101
Member Avatar for Karkalash

Hi: I have to write a program generating the fibonacci sequence based on the length desired by the user. I'm using arrays and methods too. So I have to do one method to generate the sequence and another to print the other method. So far so good, except the last …

Member Avatar for dotaa
0
2K
Member Avatar for pspwxp fan

I use Dev C++ and had to re-install it for a reason. Ever since then, whenever i build any project, even a helloworld, i get this. Error -1073741515 Execution terminated This happens in the object file, *.o, according to the build log. No description of the error, nothing. Any ideas?

Member Avatar for pspwxp fan
0
279
Member Avatar for runee1000

Hi, I just started learning java, so my skills are quite limited and I have yet to learn many many concepts. Right now, I am trying to create a hangman game(which as you can see is still incomplete). The problem I get is, the word being "mystery" when I guess …

Member Avatar for BestJewSinceJC
0
135
Member Avatar for Yeen

I ran into a something I did not expect when making a small program. I'm not including the whole program, just exemplifying the stick in the wheel, as it's part of a homework assignment. I'd just like some clarification on why the last "x = 1" is ignored. [CODE] x …

Member Avatar for pspwxp fan
0
101
Member Avatar for dangari

I have already implemented AJAX (DWR) in a web application.My concern is that I don't want the users to lose the efficiency of AJAX simply because browser settings have disabled javascript.Already I have seen someone who has hinted on using degradable AJAX to implement AJAX regardless of whether javascript is …

Member Avatar for Airshow
0
183
Member Avatar for sumit007

Hi I m making web page and for that i am using mysql and php. In tha i enter data and that is to be stored in mysql database. I m having a problem in that. I want add, delete, previous, next, cancel and update button in that. But can't …

Member Avatar for sumit007
0
1K
Member Avatar for reedpride

[code] ; For: AT89C4051 @ 11.0592MHz ; Hardware: INTERFACED WITH ADC0831 ; Program goal: CREATE A DIGITAL VOLTAGE METER ; Assembler: M-IDE Studio for MCS-51 ;place all the usual pre code items here (INTERRUPT VECTORS, ETC) CS EQU P3.1 ;CONNECTED TO CS ON ADC0831 CLK EQU P3.0 ;CON TO CLK …

Member Avatar for reedpride
0
118
Member Avatar for MattyRobot

I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x …

Member Avatar for MattyRobot
0
96
Member Avatar for GooeyG

I'm in the process of designing a battleship game and I need some help of why I'm coming up with a error. The error is:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int. Another question is, how would i randomly place the battleships in the …

Member Avatar for mrnutty
0
267
Member Avatar for ricksvoid

Ive successfully managed to bind my DropDownList control to the membership.getAllUsers class. The problem is, no matter who i select from the list, it always returns the same value which is the first selection. Is this some kind of postback issue? Yikes! [CODE] Protected Sub fillDropList(ByVal sender As Object, ByVal …

Member Avatar for ricksvoid
0
838
Member Avatar for slim2hott

I have learned c++ over a long period of time and i have decided to use it to create windows programs with it. Right now, I am just practicing. I have made a window with three menus at the top. when you click one of the menuitems, a dialog box …

Member Avatar for garthus
0
157
Member Avatar for slatk3y

I am trying to do RMI Server-Client communication, but I get these exceptions when I try to run client: [CODE] java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1371 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:186) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) …

Member Avatar for slatk3y
0
118
Member Avatar for aabbddlah

Hello everyone i v just joined the forum and i would like u to give me some sort of help in my induction motor project i am using matlab to carry out the value for torque and then plot the torque Vs speed graph using matlab so torque should be …

Member Avatar for aabbddlah
0
105

The End.