132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ashish2expert

Hello, Though I have done this question without string functions but can anybody give me short algorithm for this. Here is the question: Write a program that reverse the words in a sentence: Enter a sentence: *you can cage a swallow can't you?* Reversal of sentence: *you can't cage a …

Software Development algorithm c
Member Avatar for ashish2expert
0
925
Member Avatar for Unused Mass

My listview has 3 columns. "Text" , "Delay" and "". The "" column is to show which one is being ran by filling it with a "<". If I use List.Items(currentTimer - 1).SubItems.Add("<") Then it works, but how will I remove it? SubItems(1) modifies column 1, and SubItems(2) is out …

Software Development listview vb.net
Member Avatar for Begginnerdev
0
189
Member Avatar for dewdropz

Hi I have the following code which is giving an error while trying to use scanf with it. Please help resolve uint16_t x[3]={1,2,3}; uint16_t y; printf(" %"PRIu16",y); (works) printf("Enter a value for y: "); scanf("%"PRIu16, &y); warning: format '%u' expects argument of type 'unsigned int *', but argument 2 has …

Software Development c
Member Avatar for deceptikon
0
242
Member Avatar for mohan564

i want to select values from database.that values should be displayed in listbox. <Thanks in Advance >

Software Development seo
Member Avatar for Ketsuekiame
0
134
Member Avatar for Mclovin

I'm struggeling with a problem which probably is farely easy to solve. I just cant find a simple way to do it. I want to be able to recognize the occurance of digits in a string. Lets say the string looks like: [CODE] file_Name1 = 'abc123de' file_Name2 = 'qwe987rty' [/CODE] …

Software Development python
Member Avatar for Lucaci Andrew
0
2K
Member Avatar for Vish0203

hi.. I'm trying to read a .docx file using apache poi api methods.. But i'm facing a few problems.. Can anyone suggest me the changes to be made in this code?? package apiole; import java.io.*; import org.apache.poi.xwpf.extractor.XWPFWordExtractor; public class Apiole { public static void main(String[] args) throws IOException { File …

Software Development apache api java
Member Avatar for Vish0203
0
288
Member Avatar for Hemanth.Satkuri

I am calling a Stored Proc in Oracle using Hibernate. Procedure: create or replace procedure GetStocks(email in VARCHAR2) is BEGIN execute immediate 'SELECT * FROM stock WHERE email=email'; END; Java Code Query query = session.createSQLQuery("CALL GetStocks(:email)").addEntity(Stock.class).setParameter("email", "abc@xyz.com"); System.out.println("QUERY:"+query.toString()); System.out.println("QUERY SIZE:"+query.list().size()); List result = query.list(); for(int i=0; i<result.size(); i++){ Stock st …

Software Development java oracle session
Member Avatar for riahc3
0
372
Member Avatar for ponnu

I have vb form tht accepts user data.I need to check whether user enters emailid in the correct format ?Please provide suggestion .Thanks in advance

Software Development visual-basic
Member Avatar for ponnu
0
249
Member Avatar for khair.ullah

hi everyone i am try to write a code for a checkbox that work like a radioButton dynamicaly in vb.net. i.e. if i have 5 check box and i try to check the first one other will become unchecked. Second with same code if i increase the number of check …

Software Development gui vb.net
Member Avatar for khair.ullah
0
950
Member Avatar for nicholasamh

Hi, I am using visual studio 2008, C++ MFc. I have create 2 edit box. I will let user key in at the editbox1. Then i will get line and paste what user have key in to editbox2. I want it to be something like hyper terminal format. That mean …

Software Development c++ visual-studio
Member Avatar for ningappa
0
212
Member Avatar for Bile

-->>Now I have managed to go through some codes that creates a System Tray Icon... -->>I've managed to create it but something is wrong here that disturbs Me... -->>When I Click on the Tray Icon of My Software it wont Load My Application... -->>That is Say if it was Minimized …

Software Development visual-basic
Member Avatar for AndreRet
0
298
Member Avatar for PBubble

Good evening! I'm trying to figure out how to retrieve and display data from MS Access to my project's DataGridView. So far I have the codes to make the options for the CheckedListBox appear. SAMPLE: (Codes for other categories are not included since they're all basically the same) 'view client …

Member Avatar for tinstaafl
0
954
Member Avatar for Counterpartz

Hello, my current assignment states this: "Modify the console application you created in HW1 in the following manner. Instead of using five Console.ReadLine() statements to read the user’s input into the five variables, use one Console.ReadLine() statement that’s inside a loop that executes five times. The rest of your code …

Software Development c#
Member Avatar for tinstaafl
0
320
Member Avatar for dewdropz

Help, I am getting a segmentation error. Basically I need a function to print out certain elements of an array. I have created the functions displayArrayVal1 and displayArrayVal2. x_array and y_array are both global. Where am I going wrong? #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> uint16_t x_array[8]={1,2,3}; uint32_t …

Software Development c
Member Avatar for nullptr
0
325
Member Avatar for elanch

hi all! I have created two datetime picker for getting input for start time and end time. but i could'nt able to calculate time duration between them. How to calculate the time duration by getting start and end time input. Thanks in advance elanch

Software Development visual-basic
Member Avatar for dhineshbabu2k1
0
2K
Member Avatar for mikeybware

I have a database of customers (MS Access database) and I am trying to check out the demographics. I would like to list the top 5 cities and their count (how many times this city is found in my database), as well as the top 5 postal codes and their …

Software Development vb.net
Member Avatar for TnTinMN
0
133
Member Avatar for sukhanya

I am very new to c#. How do I write a code for this scenario, There is one Button in my web form. If I click on it, It should retrieve all the names of customers from the database. Can someone please give guide me with code Did not find …

Software Development
Member Avatar for sukhanya
0
151
Member Avatar for mrpython1

Im trying to create a booking system for a cinema, What i want to do is : open my csv with available seats, print it then ask the user what seat it wants, then the csv need to update taking away the seat, and then that seat gets added to …

Software Development python
Member Avatar for longtomjr
0
4K
Member Avatar for J-P1988

Hello, When i compile i get theses undefiend reference to extern lobal variable. In my code, i try to do an file that define it and extern it on SystemeBataille.cpp call th definitor on main.cpp but same error. If i place my extern on an specific function exemple SystemeBataille::placeExternHere i …

Software Development c++ gaming video
Member Avatar for J-P1988
0
6K
Member Avatar for vikarna

In a Telnet program, the output of command doesnt fit the screen. How can i see that?

Software Development display shell-scripting
Member Avatar for rubberman
0
97
Member Avatar for ConfusedLearner

Show the hex addresses and variable values after the statements have been executed. (All pointers are 4 bytes!) The first byte of memory below is xFF2A. Not too sure if I am doing this right. Please help. Thanks. t s r q x d c b a 8 8 4 …

Software Development c++
Member Avatar for raptr_dflo
0
220
Member Avatar for niario

I tried to create an hourglass with asterisk characters using 'for' loop... both decrement and increment works fine, but I got stucked with text alignment where those asterisks supposed to be printed in the center and justified to bring an hourglass look instead of being sticked to left or right …

Software Development c++
Member Avatar for raptr_dflo
0
472
Member Avatar for richard.haines.39

Need some assistance with this program. Don't know what I need to do. import java.io.*; // Needed to open and modify binary data public class FileEncryptionFilter { public static void main(String [] args) throws IOException { // An array to write the file int[] numbers = { 2, 4, 6, …

Software Development encryption file-system java
Member Avatar for richard.haines.39
0
862
Member Avatar for devianleong

Hi, I've a form which allow a user to select the year and category. Year and category will pass the value to the query : "SELECT * FROM Shares WHERE Year = '"&yearr.txt&"' AND Category = '"&category.text&"'" After that I want the report print the report to excel base on …

Software Development vb.net
Member Avatar for Reverend Jim
0
449
Member Avatar for habenero

I was here once before and I'm back; Here's my quandary: What I want to do is build a filename (and save it of course) using what the user puts into a txtbox. In that filename I have the user select one of three option buttons and a number of …

Software Development visual-basic
Member Avatar for Reverend Jim
0
164
Member Avatar for tricket_7

I am trying to figure out the best way to approach this..... I am creating a grocery line simulation using a queue, and I know that I will want to create a Customer class that has the information for serviceTime. I am weak on creating classes, what I want to …

Software Development java queue
Member Avatar for bguild
0
785
Member Avatar for RobRTaylor

Not sure if the title accuratly reflects the question, but here it goes. I have a dropdown (a ComboBox) with some text. Simple enough, when the dropdown is opened and text selected, it puts the text in a text box below. If cbCallNotesPrefills.Text = "Sample Text" Then txtCallNotes.Text = "Sample …

Software Development vb.net
Member Avatar for RobRTaylor
0
216
Member Avatar for dp121307

So I made the login program that reads the usernames and password from a file (names.txt). The program works correctly. But my problem is I want to ask give the user 3 chances to get the username right before the program closes and 10 chances to get the password right …

Software Development python
Member Avatar for dp121307
0
204
Member Avatar for nitin1

#include<iostream> #include <cstdio> #include<string> using namespace std; typedef struct node node; struct node { int value; node * child[26]; }*root; node * newnode() { node * nn; nn=(node*)malloc(sizeof(node)); nn->value=0; for(int i=0;i<26;i++) { nn->child[i]=NULL; } return nn; } bool insert(string s) { node * temp=root; bool xx=false; for(int level=0;level<s.length();level++) { int …

Software Development c++
Member Avatar for deceptikon
0
129
Member Avatar for karlcunanan

Hi Vb.net geniuses! I am a complete beginner in programming and would like to seek assistance regarding this very small issue of mine :( It is perfectly working if the CardID is only numbers, but if I mix letters with it this error is showing "*Conversion from 'string' to 'boolean' …

Software Development vb.net
Member Avatar for Reverend Jim
0
3K
Member Avatar for MRehanQadri

Can't find out the error. #include <iostream> using namespace std; struct node{ int id; int *next; }; node * get_data(int ); node * get_data(void); void insert_node (node **, node **, node *); void display_data(node *); int main(){ node *head=0, *tail=0, *newPtr=0; newPtr = get_data(); insert_node (&head,&tail,newPtr); display_data (head); return 0; …

Software Development c++ linked-list
Member Avatar for deceptikon
0
194
Member Avatar for killer88
Member Avatar for tinstaafl
0
117
Member Avatar for killer88
Member Avatar for tinstaafl
0
187
Member Avatar for xHellghostx

For example let's say we have the property called Customer that returns a value of name String name; <== Global Variable public String getName() { return name; } public String setName(holdingName) { name=holdingName; } and a constructor called Match public FullName(String realName) { holdingName = realName; } Can I do …

Software Development java oop
Member Avatar for stultuske
0
320
Member Avatar for killer88

Can i develop spam filter in C# ? if is it so , where do i start ?

Software Development c#
Member Avatar for killer88
0
597
Member Avatar for Ketsuekiame

So, in answering another thread on this forum, I decided to do some performance testing on String. Mainly because a friend of mine said "You should always use `new String` it's the fastest!". I wasn't convinced and argued in favour of StringBuilder, at which point I was directed to some …

Software Development
Member Avatar for TnTinMN
0
252
Member Avatar for Octet

Hello Daniweb, I'm beginning to learn Python, which I hope shall be a useful tool to help with server administration and the such. I am however having some problems, I'm sure this is a very simple problem but I can't see what is going wrong. #!/usr/bin/env python3.3 validSelection = 0 …

Software Development python
Member Avatar for Octet
0
210
Member Avatar for kimangel

Hi experts, kimangel is here again, doubling my time. Thanks alot for helping. I have problem with two tables, when I click cmdSearch button searching for Employees_IdNo error occur "The specified field 'Employees_IdNo' could refer to more one table in the FROM clause in your SQL statement. below is my …

Software Development visual-basic
Member Avatar for AndreRet
0
179
Member Avatar for riahc3

Hello Im trying to make a small program but when I get the .EXE from the Debug or/and the Release folder it complains about a DLL missing (RestSharp) which is avaliable in those folders if I move it to (for example) C:/ How can I "embed" the DLL into the …

Software Development
Member Avatar for TnTinMN
0
374
Member Avatar for SakuraAssassin

im having trouble displaying the 10 most common word pairs. im sure it is just a matter of sorting and taking the data but i am unsure on how to do this? private static void generateOutput() { for(Entry e : result.entrySet()) { System.out.println("Symbol: " + e.getKey()); Map<String, Integer> count = …

Software Development java
Member Avatar for SakuraAssassin
0
175
Member Avatar for capton

Hello everyone! I know QObjects doesn't support copy constructors but how can i create a copy of a QObject. I want to make changes to the object while still maintaining the original copy. Thanks

Software Development c++ qt
Member Avatar for deceptikon
0
277
Member Avatar for Ashenvale

Hi! I'm searching for a way to delete an Item from a collection in a list box... Listbox1.Items.Add(Textbox1.Text) Listbox2.Items.Add(Textbox2.Text) Listbox3.Items.Add(Textbox3.Text) Adding an item in a listbox is easy, but deleting it, the way I want it to.. T_T nah! dunno.. or maybe i'm just plain stupid. I want the user …

Software Development vb.net
Member Avatar for G_Waddell
0
156
Member Avatar for FelineHazard

Hi Guys, I am writing a Perl script that needs to initiate various http (or https) requests. Before doing so, I would like first to verify that a given string is indeed a valid URL address. I would like to do so (preferably) **without** using regexp. Reason being, that URLs …

Software Development perl
Member Avatar for FelineHazard
0
760
Member Avatar for capton

Hello, my Qt app gives the following run time error > HEAP[testApp.exe]: > QInvalid address specified to RtlFreeHeap( 0D920000, 0F29F1C0 )uoted Text Here But it's free from error when i comment out these lines table->setCellWidget(currentRow,4,wid); table->setCellWidget(currentRow,2,++wid); table->setCellWidget(currentRow,1,(++wid)); Please i need help seriously. for(int i=0; i<currentSem->courses->count(); i++) { QVBoxLayout *vlayer = …

Software Development c++ qt
Member Avatar for capton
0
216
Member Avatar for kshahnazari

Hey guys I just learned how to work with header files but I have a simple error . I suggest you guys dont look at gameboard.cpp because it just runs fine with ubuntu and no errors with it. my problem is when I run the main it gives the eroor …

Software Development c++ ubuntu
Member Avatar for Moschops
0
283
Member Avatar for cisumma

Hello I have a XML DB. I write the first element. I can not get the entries to (fragments) to write to the Database. I know I do not have the error handler setup right. The error stops the process on the transform. Is there some debugging techniques I could …

Software Development apache file-stream xml
Member Avatar for cisumma
0
867
Member Avatar for sedirox

I need help trying to figure out how to insert into a multi linked list. I know how it works with a linked list with only one piece of data but not 2 pieces with 2 pointers. Essentially what I want to be able to do is creat a multi …

Software Development c++ linked-list
Member Avatar for rioeduardo
0
1K
Member Avatar for cutiexhubx_1

hi everyone..can u please help me with my project? server to client quiz using java... please.. i really need it..

Software Development client-server java
Member Avatar for M4trixSh4d0w
0
176
Member Avatar for riahc3

Hello Im having problems removing the ALT+0160 character from a string. iswhitespace doesnt seem to work. How can I manually remove it?

Software Development java
Member Avatar for M4trixSh4d0w
0
94
Member Avatar for Ayesha.Shahnawaz

I've got 2 flex grids in one VB form and I wanna connect both of these Flex Grids to 2 different tables in MS Access. This is how my form looks like: http://i213.photobucket.com/albums/cc228/rose_408/form_zps100c290c.png Here's the code for the service flex grid (FlexService): Private Sub Form_Load() Set conn = New ADODB.Connection …

Member Avatar for AndreRet
0
278

The End.