64,152 Solved Topics
Remove Filter ![]() | |
[CODE]#include<stdio.h> #include<string.h> void FindWord (char used[30] , char string[30] , int wordsize); char* CleanString (char string[30], int wordsize); int main (void) { FILE *fp; char letters[30]; char words[30]; char used[30]; char *string; int wordsize; int input_size; input_size = wordsize = 0; fp = fopen("dictionary.txt","r");/*contains a list of words in the … | |
Am trying to BACKUP database in .bak format and when i compile it am getting [B]-2147221504 source file doesnt exist error [/B] can anybody please HELP.. Thanks in advance | |
i want to create a stored procedure that can return the initial character of two string inside the description field. ex. Computer Security -> in one data only if i use this statement select left(description) from table1 i want to return only CS when i run my script. is there … | |
I have this OLEDB connection string connectionstring as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ data.toString & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=2 I just want to know what is the meaning of HDR and IMEX, and what are their purpose on the connection string Thanks.. | |
'why is that when i change something on one form, when i ran the program,the changes i made don't seem to take effect? example, i set a button's visibility to false, when i ran that form, the button still appears. even if i already saved it before running i already … | |
Hi everyone.. Problem: no space between each tables.Could anyone please advice.. solutions: here is the coding: protected void btnShow_Click(object sender, EventArgs e) { if (ddlMonth.Text != "") {d.Controls.Clear(); DateTime start = DateTime.Parse(ddlMonth.SelectedValue); DateTime end = start.AddMonths(1).Subtract(new TimeSpan(1, 0, 0, 0)); switch (ddlRecurr.Text) { #region Daily case "Daily":{ foreach (preventive p … | |
![]() | I currently have the following code [CODE]Data1.Recordset.Sort = ("Barcode ID DEC")[/CODE] In which i want to sort all the Barcode ID records in Descending order. The barcodes have leading zero's which i think may be the problem. For example 00000055. Any suggestions? |
Hi masters, I want to replace a string with another string in textbox How i can do this? Please help Thank you | |
Never Mind the title of the post guys and gals… it turns out that writing the post helped me vent my frustration and clear my mind. I found the issue and solved the problem while I was writing the initial post! I'm writing this because I haven't figured out how to … | |
![]() | I think my issue is in line 18. The program runs just fine, but my answer isn't correct when I enter a radius and height. Not sure what I am doing wrong here. [CODE]import java.util.Scanner; import java.text.DecimalFormat; public class ConeA { public static void main (String[] args) { double surface; … ![]() |
I have a form where a user can search for properties from a database. Everything is working except for the suburb search. I would like the user to be able to search for more then one suburb. At the moment I have the information from the textbox being separated into … | |
I've been trying to better my lesser side of knowledge in the C# programming language by tackling graphics head on. I've learned a little bit, but I'm getting stumped right now because I can't explain 100% what's going on here. I've developed a Pong game to teach myself how to … | |
A snippet: package com.deitel.jhtp7.ch14; public class AccountRecord { ..... Doubt: 1. What does the above package statement imply. As in how(path) this AccountRecord.java will be stored? As in what folder hierarchy should I create? 2. In Command prompt I have set my Current Directory as : E:\RDL\Dropbox\Coding\Core Java\File So will … | |
I was just trying to compile a program from Sams Teach Yourself C#, I've done some before but just changes to an existing program. Now I'm trying to make my own. I get an error on the picShowPicture command. I believe it's in the System.Drawing namespace which I have a … | |
Hello. We have been asked to write a program of an event driven simulation in dynamic partition. where we are given a number of jobs with it's given time and job size. the job should remain on the memory until completion (time clocks down to 0). the program should measure … | |
Good Morning Good People... I have a question that I can't seem to find the answer to anywhere, so decided someone in here would know... Simplest explanation... I have a form which has 2 submit buttons... one to accept and one to decline Each of them needs to set the … | |
I have an array of file names which gets split into 3's using array_chunk, then using array_push "X" is added to each array chunk. I now want to to reassemble the array chunks into one "2D" array. I have been playing around with array_merge, but I can only get the … | |
[code]public class StringBuilderConstructors { public static void main(String args[]) { StringBuilder sb3 = new StringBuilder("hello"); System.out.printf("buffer3 = %s\n", sb3.toString()); //written in textbook System.out.printf(sb3); //i tried System.out.println("buffer3=" + sb3); // i tried }} o/p: buffer3 = hello hello buffer3=hello[/code] doubt: The book says toString() gives the string representation an object. That … | |
Okay so I am creating a windows form to basically act as a bank ledger for an individual. Pretty simple they must enter the account information, and a beginning balance. The key is the validation, it is really tripping me up. I need to ensure that upon clicking the continue … | |
Hi, Thank you all for your help. I wrote this code and I want (Combobox2) to show only the cities that are selected from (Combobox1) Example: When (Michigan) is selected from (Combobox1) - (Detroit & Ann Arbor) are the only choices that should be selected from (Combobox2) And When (Ohio) … | |
I have created the main.aspx as a template and main.aspx has a table with a menu on the side, and a footer. The main part of the page is blank for the body. then i include testmenuright.ascx in the allocated section of the table in main.aspx. now i want to … | |
I have written a simple program to save details about a maximum of 20 people using structures. But when i run it, gets gives me error....... Here is the code... [CODE]// Hihi.cpp : Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { … | |
Hi all, I am developing an website which is required to hide and show HTML. like if visitors user and password are correct then will show "You are logged in as "Namd " "Edit" "Logout" ,as and if logout is pressed then "user name " "password " "forgot password ?" … | |
Hello Friends, I need one urgent help on this topic. I have a database in mysql. The column in table is of datatype time(0) Similarly I have a control datetimepicker in vb.net I have assigned format property as [COLOR="red"]custom[/COLOR] to the control and the CustomFormat property as [COLOR="Red"]HH:mm:ss tt [/COLOR]so … | |
Hi, How to show dropdownlist first item blank . can i set the index property to -1 instead of 0. | |
Hello friends, I am new to Jsp Here am facing a problem while trying to retrieve the data from ms access db using student no(number) form.jps ========= [CODE]<html><head> <BODY style="background-color:SteelBlue"> <center> <p> </p> <p> </p> <p> </p> <p> </p> <form method="post" action="search.jsp"><h3> Enter Ur Number: </h3><input type="text" size="3" name="no"><br /> <p><input type="submit" value="Submit"> </form> … | |
How can i get battery status? Any help will really appreciated. Regards Sawamura | |
Hello Every One ! I m working on a software , i have one field name expiry_Date , now i want to make an query which subtract the current date from the expiry_date and give answer in no.of days , i use getdate() for current date , can any one … | |
Good Morning Guys/Gals. Need some help with this. How long does it take to dispose of da and confdt? What im trying to say is, that this function works fine if i execute it every 5 seconds or so, giving it enough time to close the controls, but if I … | |
Hi, In my page their is one combobox and one listbox. When i select an item in combobox then selected item added to listbox. Combobox has ispostback property to true. Now my question is, how to check item is already present in listbox on combobox selected item changed event. Thanks … | |
Hello, I'm looking for c++ api example for ncurses programming and needless to say that it is not available except 7 part snake game development video on youtube which is a bit difficult for a noob like me to understand. GNU ncurse 5.9 documentation heading states that it has c++ … | |
Hi all, I have been messing around with datagrid styling for a couple of days now, and I am having one issue left which I can not seem to solve. I want to highligt the text of the row on which I hover with the mouse. Well this seems like … | |
""" Write a function to convert temperature from Celsius to Fahrenheit scale. oC to oF Conversion: Multipy by 9, then divide by 5, then add 32. Examples >>> Cel2Fah(28.0) '82.40' >>> Cel2Fah(0.00) '32.00' """ so it says, but i couldn't think of an a way to do so efficiently. But … | |
Hello Friends, I need help on the below issue I have two forms -DoctorAppointment -DoctorSchedule the DoctorAppointment form has all the details about the doctor and the patient and one Schedule button which will show the DoctorSchedule form When I click on any value in the DoctorSchedule form like Monday … | |
Hi all, Can anybody help me...How to create insert store procedure in access db with c# windows application. | |
Hi, I am new in this C#, and i need to know what are the first thing should i know in C#.and what program should i make for the beginners like me. Thank you in advance. | |
Hello, I do not understand the following parts in bold - how it works, what is is for..etc. I'm not following the book's explanation.. [CODE]#include <iostream> using namespace std; [B] double totalCost(int numberParameter, double priceParameter);[/B] int main( ) { double price, bill; int number; cout << "Enter the number of … | |
Good Day. I am using VB.net 2010 and SQL client server. I have to make a Weekly Report Manager that stores an Trainees' weekly activity, which would probably be in a paragraph form. I think I can use Textbox (multilined) or Richtextbox for this. But When I tried to store … | |
For some reason, whenever I try to find a slash at the end of a byte string (in this case, base_url which is set to "www.google.com/"), it doesn't seem to want to return that it is or isn't there. However, if I change base_url to something like "www.google.com" where m … | |
hi,guys, i am facing on hiding the image source problem, may i know how to prevent user by using right click on image and check on the path image source location?thks for any info ya.cheers | |
Hi im trying to insert date to my .mdb database, but when i check it, the date turned into random numbers, like 3.2938482 here's my code [CODE] Dim constring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\dbperpus.mdb" Dim query2 As String = "select * from fpinjam2" connect = New OleDbConnection(constring) connect.Open() cmd = … | |
Hi I am designing a custom textfield in j2me. Can anyone suggest me how to make it predictive? | |
Hello The instructions for installing the Android SDK on Eclipse are different than on MyEclipse (following Google). Any step by step? Thank you | |
Hey Lets see if I can explain myself correctly...... I have 2 projects, one a program and another a library. First project is basically this, more or less (obviously it is more complicated) [code] //This is the main project //Inside com.stuct: //Global.java package com.stuct; public class Global { public static … | |
[B]For some reason whenever i print out the code below "System.out.println("Heat 1:"); never prints but rather somehow just leaves the terminal window. because when i use print instead of println it shows but not when i use println[/B] [CODE] System.out.println("Heat 1:"); System.out.println(heat1[0][0] +"\n"+ heat1[1][0] +"\n"+ heat1[2][0] +"\n"+ heat1[3][0] +"\n"+ heat1[4][0]+"\n"); … | |
In working on a logfile for an application, I needed to limit the size of the logfile to 1000 bytes. Since it is not possible to delete lines from a file in C++, I used the following steps: Rename the logfile to a temporary name. Read the temporary file. Write … | |
![]() | I have inputted a word from a user and i want to find that word in a text file. My text file is like this. -------------- name1:value1 name2:value2 name3:value3 ... ... -------------- So if my user inputs name1 so i want corresponding value1.. How can i do these? Can anyone … |
Not sure if this can be done in php or whether I should look at other alternatives. I'm trying to access 4 different sources of data to put on one page - Amazon API, Ebay, our sales data on one server and our inventory data on another server. (Historical reason … | |
Hello everyone, I'm coming up with a very primitive question: I need to take two numbers from console and process them. Since I'm getting input from console with Console.Readline(), how can I seperate those numbers from the string? Thanks in advance.. | |
Here is another simple question (I'm asking them because I couldn't find a way by myself): Suppose I have a string [CODE]x = "Daniweb"[/CODE] When I try to update an element like : [CODE]x[3] = k[/CODE] The Visual Studio says it is read only and gives error. How can I … |
The End.