43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Perry31

Hi, I tried to do like below, but its not printing the expected one. Plz suggest to proceed further. OUTPUT: Enter the string: abc Entered string is : NULL void main() { char *a; printf("Enter the string: "); scanf("%s",&a); printf("\nEntered string is :%s", a); getch(); }

Software Development c
Member Avatar for DeanMSands3
0
8K
Member Avatar for Ari5555

In XP, I was able to show the File Properties dialog from c# code. The essential bits are shown below; This no longer works in Windows 7 64 bit. Surely it must be implemented more simply now? I have searched the internet for a replacement method without success. I noticed …

Software Development file-system
Member Avatar for Ari5555
0
405
Member Avatar for iAndrewMeyer

I am trying to store the permutations generated by the recursive permutation function so that I can use them in main; however, I cannot figure how to get them to store correctly. I.E. when I run this function with a string AB, inside the recursive AB and BA gets printed …

Software Development c
Member Avatar for VernonDozier
0
189
Member Avatar for nuclear

So I was trying out SDL_gfx lib and tryed using the rotozoomSurface() [Click Here](http://www.ferzkopp.net/Software/SDL_gfx-2.0/Docs/html/_s_d_l__rotozoom_8h.html#a3cb0c11d5edc929579c807dc7612348c) which should've rotated my surface at runtime, but it seems that whenever I do that my surface turns invisible. It doesn't matter if I predefine the rotation or use it at runtime, the same happens, I've …

Software Development c++
Member Avatar for nuclear
0
234
Member Avatar for vilas_tadoori

**Pyramid Pattern** Dear Listers, I am in the process of wrting a java code that prints the following pattern 123454321 1234*4321 123***321 12*****21 1*******1 This is the code that I have written as public class Pyramid { public static void main(String[] args) { int j; for (int i=1; i<5; i++) …

Software Development java
Member Avatar for NormR1
0
998
Member Avatar for shizzle08

can you help me how to select from multiple tables. so far this is my code how do i Dim dr As OleDbDataReader Dim dc As New OleDbCommand dc.Connection = conn dc.CommandText = "SELECT * FROM tblClient, tblLoan WHERE ClientNo = '" & ClientNo & "'" dr = dc.ExecuteReader If …

Software Development vb.net
Member Avatar for poojavb
0
158
Member Avatar for poojavb

Hello Friends, One help is required.... I have a select query which is based on two criterias.... if the order is in process or if the order is received.... The datagridview will show all the records from the database,,,, I want to disable the rows in datagridview which will be …

Software Development vb.net
Member Avatar for poojavb
0
5K
Member Avatar for RyMarr475

Hello, I'm pretty new to Java and this is my first GUI project, so try to explain like I am 5. I declare a label normally, then I set an Icon into it like this: x=rand.nextInt(4)+1; if (x==1) { computer.changeInfo("Fox McCloud", 500, 250, 100, 100, 65, 25, 15, 110, 35, …

Software Development gui java
Member Avatar for NormR1
0
1K
Member Avatar for hughesadam_87

Real quick question. If I have a string 'hi my name is bill' and I want to reduce this to a list of letters, with no whitespaces (eg ['h', 'i', 'm', 'y'] as opposed to ['hi', 'i', ' ' , 'm', 'y', ' ', 'n'...]), is there a really quick …

Software Development python
Member Avatar for snippsat
0
189
Member Avatar for niths

hi all, I have a asp page. In that i am displaying some data in a grid view from database.In grid view i am displaying TicketNo,TicketName and status. Now my problem is that when page loads if the status have a value as 'OPEN' that row should be in red …

Software Development dataset
Member Avatar for A0110
0
258
Member Avatar for GeekTool

Hello, i am now trying to draw a tree with stars using for loop. I find a code for this but i did not get the logic of the code. Please can anybody explain it to me ? The code is below: public class DrawingTree { public static void main(String[]args) …

Software Development java
Member Avatar for GeekTool
0
2K
Member Avatar for Jackk123

#include "stdafx.h" #include <iostream> using namespace std; int main () { int a, b, c; cout << "š"; cin >> a; cout << "Č"; cin >> b; c = a+ b; cout << "Ć" << c << endl; return 0; } So i tried using characters from my own language …

Software Development c++
Member Avatar for Jackk123
0
889
Member Avatar for ironman99

help me with this error pls. you have an eror your sql syntax; check the manual taht corresponds to your mysql server for the right sytax to use near cmd = new MySqlCommand( "UPDATE products SET (prodid = @prodID, prodname = @prodName, unitprice = @unitPrice, qtyonhand = @qtyOnHand) WHERE prodid …

Software Development sql
Member Avatar for ironman99
0
109
Member Avatar for rajkumar8910

I want to select sum of fiels value between two Dates so here i using this command SELECT SUM (TotalCost) FROM SiteExpense where ToDate between @dtp and @dtp1 But it give Error so plz Resolve It

Software Development
Member Avatar for baig772
-1
76
Member Avatar for Afi83

Hi there, I am trying to use parallel.for in order to calculate the summation of all the values in an multidimensional array. I googled and found [Click Here](http://msdn.microsoft.com/en-us/library/ff963547.aspx). However, this is just for one dimensional arrays. The LINQ does not work for multidimensional array. And when I use parallel.for it …

Software Development vb.net
Member Avatar for Afi83
0
221
Member Avatar for Serpterion

Hello! It's been a great while since I last used DaniWeb and have come back with a quandry in hopes I can get some guru support on... My perl is very beginner. I used to code in ++ so I know the general rule of programming; however, I do not …

Software Development perl
Member Avatar for Serpterion
0
189
Member Avatar for 47pirates

I want to update the contents of Jtable as shown below when the Jcombobox's item state is chaged in the left panel. but i am not being successful in it .Please help. ![untitled29](/attachments/large/2/untitled29.JPG "untitled29") when the table no value is changed in the left panel , i want corresponding Jtable …

Software Development java java-swing
Member Avatar for 47pirates
0
520
Member Avatar for gomonkeyninja

Okay, so this is my final assignment for a class I am taking. I'm making a Book Library Database that keeps track of all books that are entered and changed, things like that. I figured a useful feature would be saving your data in a text file so that it …

Software Development java
Member Avatar for gomonkeyninja
0
351
Member Avatar for GeekTool

I am trying to choose a string out of 4 strings randomly, and to show this string on the console. How can i do it ? For example, there is a question, if user answers it correctly, then the console will display one of the strings that i chose. I …

Software Development java
Member Avatar for GeekTool
0
209
Member Avatar for tubzz

Dr Mirna always gives True/False tests to her class. Her tests have always 10 questions. The maximum class size is 5. She needs a program that will calculate the students’ grades based on the best grade. Grade A will range from the best score, to the best score minus 2. …

Software Development c++
Member Avatar for deceptikon
0
674
Member Avatar for GeekTool

Hello, i want to write a program that will help an elementary school student to lean multiplication. For this, i use random object to produce two new positive one-digit integers. For this, i have coded this, but then got confused of the scope issue. Here is the code so far: …

Software Development java
Member Avatar for NormR1
0
159
Member Avatar for cse.avinash

I ve to sort an array according to finish time and accordingly start time should be arranged, how can we do this using predefined function qsort. Both Start time and finish time, i ve considered it be in a structure , .here is the code.. #include<stdio.h> #include<stdlib.h> int compare (const …

Software Development c
Member Avatar for cse.avinash
0
97
Member Avatar for ctrl-alt-del

Good afternoon everyone, Currently I am experiencing a problem with a flowdocument that I am trying to print. All the code is doing exactly what it is suppoed to do, but when I press the print button in my program, the page that comes out of the printer almost seems …

Software Development printer
Member Avatar for ctrl-alt-del
0
364
Member Avatar for phfilly

Hi -i've started using netbeans and compiling in it recently and I'm not sure what the problem is here. Not sure if it isn't reading the Element.cpp/.h files while building/running the main.cpp In my main: Element a, b(5); cout<<(5+b)<< endl; Then in the .h: Element operator+(const Element&obj); And in the …

Software Development c++
Member Avatar for rubberman
0
168
Member Avatar for Iamateur

My doubt is : 1] I have got many forms and MDI container. There is close button on all the forms.One of the form name is Homepage. 2]Whenever the user clicks on close button,i.e.the cross button with minimize and maximize box, The form will close but at the same time …

Software Development vb.net
Member Avatar for poojavb
0
249
Member Avatar for Pricess

hello, im have problem with my code..im used access database, when i select combobox1, the textbox will appear data set as value member....but data not appear on textbox..someone can help me :) this my code Sub fillcombo() Dim acscmd As New OleDb.OleDbCommand acscmd.CommandText = strsql acscmd.Connection = acsconn acsdr = …

Software Development microsoft-access open-source vb.net
Member Avatar for M.Waqas Aslam
0
2K
Member Avatar for tubzz

Assume that the following data is stored in file “data.txt”: 2 5 7 1 12 -999 1 4 11 55 66 3 43 23 -999 9 87 56 34 22 12 21 -999 8 7 5 4 6 111 -999 The number -999 at the end of each line acts …

Software Development c++ file-system
Member Avatar for tubzz
0
192
Member Avatar for Ritesh_4

hello, is there currently a tool which can convert C# codes to Java (for example to be used in NetBeans)?

Software Development c c# c++ java java-netbeans
Member Avatar for Ritesh_4
0
403
Member Avatar for jsj1411

how to save records in listview into ms access database table using a button , i've tried with my codes but nothing is saved in the database `Inline Code Example Here` private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim con As New OleDbConnection con.ConnectionString = …

Member Avatar for Reverend Jim
0
169
Member Avatar for perllearner007

Hello, I have a file inputfile abc pqr ghi lmn xyz How do I extract certain line in using perl? For example: I want rows pqr, ghi, lmn. I want to assign line numbers and extract these rows..so for pqr, ghi and lmn I will use lines 2, 3 and …

Software Development perl
Member Avatar for 2teez
0
224
Member Avatar for steven447

I use a parser called jsoup to parse html amd store it in a mysql database. The parser reads the files with an input stream. The problam is that some class en id atributes are given with class="". The parser cant find those atributes and returns a blank string. I …

Software Development java
Member Avatar for Shinedevil
0
157
Member Avatar for crag0

I am a beginner to pything and I am looking to monitor a directory and run a script everytime something is input into the directory. I am wondering the best method for doing this using python? Any point in the right direction I would appreciate.

Software Development display python
Member Avatar for TrustyTony
0
299
Member Avatar for s0urce

Been working on this for so long I am lost and my mind is mush,lol. On line 106 i have this error (class camera is public, should be declared in a file named `camera.java`) I have a lot of incompatible types required: `java.lang.String found: camera.camera.string errors`. I do not know …

Software Development java
Member Avatar for s0urce
0
203
Member Avatar for s0urce

The program runs but I can not get it to add the totals from the three employess. Then when i enter an employee info the totals show after each employee instead of the end. Please help. If you can please explain what I need to do in simple terms. Its …

Software Development c++
Member Avatar for s0urce
0
141
Member Avatar for jsj1411

i have 6 collumn in a listview , how do i multiply each data by row in collumn 4 and 5 and display the result in collumn 6.?? `Inline Code Example Here` Dim itm As ListViewItem str(0) = txttarikh.Text str(1) = txtresit.Text str(2) = Txtkod.Text str(3) = Txtnama.Text str(4) = …

Software Development listview vb.net
Member Avatar for jsj1411
0
291
Member Avatar for memomk

hey i have this error The debugged program raised the exception unhandled RuntimeError "underlying C/C++ object has been deleted" the code is: class qthread(QtCore.QThread): def __init__(self, x, y, z): self.x=x self.y=y self.z=z self.name="" self.m=hashlib.md5() def changeresultsig(self, text): self.emit(QtCore.SIGNAL("changeresult(text)"),text) def conssig(self, text): self.emit(QtCore.SIGNAL("cons(text)"), text) def enablesig(self): self.emit(QtCore.SIGNAL("enable(")) def disablesig(self): self.emit(QtCOre.SIGNAL("disable()")) def …

Software Development c++ gui python session
Member Avatar for memomk
0
963
Member Avatar for MadJako

Hi super cool experts! Big Java noobie here and first time poster, so sorry in advance if this forum isn't for people like me. I'm trying to write a silly math program as my first user input test, but I seem to be getting error with the variables from the …

Software Development java
Member Avatar for MadJako
0
616
Member Avatar for paranoidSandra

hi there!here's the problem in a nutshell: there are 2 files.the program creates 2 processes: the parent process outputs text lines from the 1st file and for each one of these lines the child process outputs relative info from the 2nd file. e.g. <1st line from file1> <relative info from …

Software Development c client-server
Member Avatar for paranoidSandra
0
121
Member Avatar for Sendy Hipo

i have this problem to write and read data, here's what im trying to make : Write a program that uses a structure to store the following inventory data in a file: -Item Description -Quantity on Hand -Wholesale Cost -Retail Cost -Date Added to Inventory The program should have a …

Software Development app-store c++ data-structure ios
Member Avatar for Sendy Hipo
0
614
Member Avatar for IDC_Sharp
Member Avatar for lolafuertes
0
296
Member Avatar for Cameronsmith63

Hi All, Is there there a way for me to add a portable database to an application? In other words, i want to install my application on a other pc, then during install, the database must be stored or installed somewhere on that pc. Im just thinking of sorting this …

Software Development
Member Avatar for skatamatic
0
112
Member Avatar for ktsangop

Hello everyone! I want to monitor my network using wireshark 's tshark command line tool. What i want to accomplish is to redirect tshark's output to a c++ application, so i can examine data and output a more comprehensive analysis without keeping a huge amount of data. I am working …

Software Development c++ http-protocol
Member Avatar for ktsangop
0
974
Member Avatar for treyb

I have been running a script that will will delete archive folders that are older than 14 days. I have been doing created. However there are times when the script will not run and my boses want the folders deleted but the name of the folder. The folders names are …

Software Development python
Member Avatar for treyb
0
234
Member Avatar for GeekTool

In the book i use, a craps game is the project. Here is the code: import java.util.Random; public class Craps { private static final Random randomNumbers = new Random(); private enum Status { COUNTINUE, WIN, LOST }; private static final int SNAKE_EYES = 2; private static final int TREY = …

Software Development java
Member Avatar for ~s.o.s~
0
3K
Member Avatar for belenos46

So, I'm currently trying to open a .xls/.xlsx file, tell it to run a macro to refresh the workbooks, and then save the file as a different file name, thus leaving the original untouched. Now, technically, it is working, because the last person who held my position wrote a dll …

Software Development microsoft microsoft-office vb.net
Member Avatar for belenos46
0
321
Member Avatar for Simone Z.

Hi! In my program I have to calculate the Adler32 checksum of a file, but I've a problem in using this algorithm. The function prototype is: unsigned long adler32(unsigned long adler, const char *buf, unsigned int len); I know how to calculate the Adler32 checksum of a string, but in …

Software Development algorithm c++ file-system
Member Avatar for Simone Z.
0
2K
Member Avatar for renzlo

Hi, All, Sample Table Job_ID Job_Name Status 1 TEST00001 FOR KE 2 TEST00002 FOR KE 3 TEST00003 FOR KE 4 TEST00004 FOR KE 5 TEST00005 FOR KE I have sql query that will get a jobname where status is equal to 'FOR KE' and I have multiple users that will …

Software Development sql vb.net
Member Avatar for renzlo
0
349
Member Avatar for poojavb

Hello Friends....One more doubt... I have a connection module in which I have written the open and close database connection.... if database connection is an error it will return false else if success it will return true the function of the modules will be called from the form code.... what …

Software Development open-source vb.net
Member Avatar for poojavb
0
255
Member Avatar for SuperManofBC

Simple Sound Player Goal The goal of this assignment is to implement a simple sound player. The application has been partially implemented, and you need to complete the missing bits. When you open the project, you will see the class structure depicted below. Three of the classes are fully implemented …

Software Development audio gui java open-source user-interface
Member Avatar for stultuske
0
648
Member Avatar for Beginner20

hi.. Im a beginner in visual basic 2010 im making my first project i created form3 for the search function so i created 2 checkbox to give the user the choice to choose to search by name or by date or by both of them and i created a button …

Software Development vb.net visual-basic
Member Avatar for M.Waqas Aslam
0
150

The End.