43,549 Solved Topics
Remove Filter ![]() | |
>I use MySQL database Two tables: Table 1 articles Field: article nb article description supplier cell 100 nails company 1 no 200 screws company 2 yes >Table 1 stock Field: article nb. barcode nb. barcodedescription instock 100 10011 nails 2 inch 5000 100 10012 nails 5 inch 0 200 20012 … | |
#include<iostream> #include<conio.h> using namespace std; struct node { int info; node *left,*right; }; int main() { struct node *root; root=NULL; //root->info=NULL; //root = (struct node*)malloc(sizeof(struct node)); if(root==NULL) //cout<<root->info; cout<<root->info<< " "<<root->left<<" "<<root->right<<"\n"; getch(); return 0; } why it is giving an error? Software Development c linked-list ![]() | |
Hello, I am trying to recreate a data type in java used by adobe, it is an unsigned integer 30 bits long or U30 by the specification. Anyway i am having problems understanding the binary output, the definition states: "The variable-length encoding for u30 uses one to five bytes, depending … Software Development actionscript data-structure java | |
think a program that you can combine decision ,looping,recursion,array and function i find it hard to think a program that you can incoperate it all. Software Development c | |
I am using Code::Blocks and mingcc to produce an executable from some heritage c code circa 1998. Compiles OK. Linking problems. Even though I can use the Code::Blocks IDE to see where the parameters are declared in header.h files and implemented in main code c files, I get "undefined reference" … | |
http://www.daniweb.com/software-development/csharp/threads/202843/take-backup-of-sql-server-database-using-c Error : Back failed for Server I am using smo code from this thread , but it cant backup... Software Development | |
I am having problems accessing the Data Set, when i would type DataSet ds = new DataSet(); i will always get the red arrow line underneith, I then right clicked on the data > choose items in the toolbox and it is already checked yet i cant create it in … Software Development dataset | |
Greetings, i am doing a school project which basically deals with forms and an access database.I have various textboxes in a form.I want some textboxes to be filled automatically with a value when another textbox has been filled. For e.g , if the user fills in the 'Cost' textbox , … | |
how i can convert an integer value to percentage value (%) , using vb.net Software Development vb.net | |
hi, does textchange control for the textbox executes for every change in every character or for the full text? Software Development vb.net | |
i want to read each line of my file in seprated string what i have achieved till now is i can read the whole lines in one string and now i want to read each line in a sprated string any help; #include <cstdlib> #include <iostream> #include <fstream> using namespace … | |
How to set image of my own choice say baby.jpg as an icon on the title bar of the jFrame.. Please also help with codes if required ,, i am newbie in java and NetBeans.. Software Development image java java-netbeans | |
As i said earliar i am making HRMS , the last phase is logout button. when logout button is clicked , an option dialog should appear which ask for yes or no . PROBLEM is i dont know how to use JOptionPane.YES_NO_OPTION so that i can give user choice of … Software Development java | |
Well, here is my code: print "Welcome to the English to Pig Latin translator!" original = raw_input("Please enter a word: ") pyg = "ay" if len(original) >= 1 and original.isalpha() word = original.lower() first = word[0] if word == a or e or i or o or u print "Your … Software Development python | |
I have a question, been racking my brain trying to figure out why this is happening. Let me start off with a chunk of code. This takes values from a textbox and writes them to an Excel sheet: Public Sub printFrmDUIReportPreview() '// =============================== PRINT PREVIEW DUI REPORT FORM ================================== '// … Software Development operating-system printer vb.net | |
So, i've been redesigning the program I've been making to make reusable functions, rather than copy/pasting almost identical code to several different functions (which is what I would have ended up doing). These upcoming sections of code are functions designed to, on a button press, navigate to a URL, scrape … Software Development c++ | |
can someone tell me how to get the values of the dynamic texbox created..on my first code, i munaully put textboxes..but resulted to non efficient code according to my prof..so i found a code that dynamically create texboxes, but my problem now is how to get the values of them. … Software Development vb.net | |
**good day to all! i have a project all about color guess game. i just want to learn about using random functions in words because usually i only see random numbers. anyone can help me to create a source code that will randomize words? thank you! turbo c only.** Software Development c | |
![]() | **How to go back to** start_new_input: **of main() function?** #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char entered_characters[9999]; int direction_of_rotor1; int direction_of_rotor2; char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; char rotor1_backward(char Letter); char rotor1_forward(char Letter); char rotor2_backward(char Letter2); char rotor2_forward(char Letter2); char print(char print_char); int main() { cout << … Software Development c++ |
Hi All, Given an array of numbers, I want to find out the 2nd largest number in an array. Can anyone help me to solve the problem? Any help in terms of logic or code would be useful. Thanks, Vishal Software Development | |
void CRobotDlg::OnBnClickedSnip() { //---------- navigate to Snip CString sUrlSnip= L"http://Snip"; m_ctlBrowser.Navigate(sUrlSnip, 0,0,0,0); while (m_ctlBrowser.get_ReadyState() != READYSTATE_COMPLETE) { DelayMs( 100 ); } //------ page is ready to process IHTMLDocument2* pDoc= (IHTMLDocument2*)m_ctlBrowser.get_Document(); IHTMLElement* pElemBody= NULL; pDoc->get_body(&pElemBody); CComBSTR bstrHTML; pElemBody->get_innerHTML(&bstrHTML); CString sBody= bstrHTML; // easier to work with as a CString //MessageBox(sBody); // … Software Development c++ | |
Hi new member here! i'm having a problem with my code here but I really don't know why, its in the line where i'll comment.. #include<iostream> using namespace std; void convert(char*); void main(){ char r, sen[200]; do{ cout<<"Enter text: "; cin.getline(sen, 200); convert(sen); cout<<"Try again?[Y/N] "; cin>>r; cin.ignore(); }while(r=='y' || … Software Development c++ | |
Hello, I have 2 datatable, first table for customers personal information and second table for customers areas of interest. this two tables have same ID for same customers. So, when i want to check my some group of customers(like who intrests on sports stuffs) i need filter my first table … Software Development vb.net | |
Just a short question Can you help me please? thank you so much :) **What is printed by the following C++ code? cout << "'\\\"'";** Software Development c++ | |
![]() | When it gets to cout << "Chose direction of rotor 1:" << endl; cout << "*(i.e.:enter 1 for left and 2 for right)" << endl; and i enter 1 or 2 it couts "Wrong choice" #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; … Software Development c++ |
can someone give me an idea how I limit the decimals in the output of this code: /** * @(#)Text1.java * * * @author Bryan Mark * @version 1.00 2012/8/4 */ import java.io.*; public class Converter { public static void main(String[] args)throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); … Software Development java | |
can someone please help me with this java application that will display the output below: "Enter Middle Name: Gosling" "You Middle Initial is: G" and also java program that will let the user to enter value for fahrenheit & convert it to celsius. can someone give me codes for this.. … | |
I am working on a program that updates a Database via ASP.NET (C#) using Microsoft Access and OleDb and have the following problem when loading my web form in FireFox: *"The INSERT INTO statement contains the following unknown field name: 'txtCustomerID'. Make sure you have typed the name correctly, and … Software Development asp c c# c++ microsoft-access | |
> please help me check this sql statement. it is giving me this error "No value given for one or more required parameters. " cn.Open() Dim cmd As New OleDb.OleDbCommand cmd.Connection = cn cmd.CommandType = CommandType.Text cmd.CommandText = "Update HallTransaction Set status=? where ID=?" cmd.Parameters.Add("@statu", OleDb.OleDbType.VarChar).Value = check cmd.Parameters.Add("@Custid", OleDb.OleDbType.VarChar).Value … Software Development vb.net | |
Hello. I'm trying to make a simple language in Python. I have many functions, that handle arguments, and execute the commands. Although, the old way I was actually CALLING these functions was to have a dictionary of all the keywords to functions, and then get() it. Is these an easier … Software Development python | |
Given a 7x4 array generate four random numbers from the array with no repetition. I can already generate four random numbers the problem is the repetition part. Here's my code so far int f[4]; int s[4]; for( i = 0; i < 4; i++) { // use as index for … | |
How can I get the path that the file is in? For example, my script is running in ~/Desktop/Projects/Shell but it doesn't know that. How can I get it to know that? Like DIR = DIR_IM_IN? Software Development shell-scripting | |
Hi! Just wondering on how to know your level as a programmer. I'm having trouble selecting this while filling up online resume. I am using VB.net as a college student for almost 3 years now. Any idea guys? Software Development | |
Greetings guys can you help me with my problem i have a search textbox and i want to hide some rows on the datagrid that is not equal on the search textbox. can someone give me an idea? Thank you in advance. Software Development vb.net | |
Hi I hope someone can shed some light on the problem I am having at the momment with an Excel 2010 Sheet, the workbook has 13 sheets with formulas and I rotate the 2 values using vba there are other things going on like a link to SQL server that … Software Development client-server microsoft-office visual-basic | |
Hi All, I am a control engineer and i am trying to communicate with a sensor I have spoken to the manufacturer but they cannot help with the python side.I am trying to send a message to the sensor which tells it to connect. The sensors config is ip192.168.60.3 port … Software Development python | |
Hey guys, im new to C++. been learning for only about a week. The most complex program i can make is a calculator! But, i was wondering, how hard would it be to make a text-based zork-like game? Like i said before im new, so any tips and/or tricks to … | |
I can't seem to find an thread that matches my questions so I am starting a new thread... I made an application. I used: VB.net 2010 SAP Crystal Reports Runtime Engine for .NET Framework 4.0 SQL Server Database (.mdf) I don't really know how to setup so I just publish … Software Development digital-publishing publishing vb.net | |
Please help I'm trying to write a program in C using nested loops which has an output of 1-8 (newline) 2-9 (newline) 3-10 (newline) 4-11(newline) 5-12. I wrote a program but I know it has to be a simplier way and I don't think I used nested loops correctly because … Software Development c | |
I am trying to read the following xml file into my datagridview <?xml version="1.0" encoding="utf-8" ?> <DEFLECTIONS_TABLE> <Deflections number="1"> <Service_Class>A</Service_Class> <Verticle>600</Verticle> <Horizontal>400</Horizontal> <Service_Class>B</Service_Class> <Verticle>600</Verticle> <Horizontal>400</Horizontal> <Service_Class>C</Service_Class> <Verticle>600</Verticle> <Horizontal>400</Horizontal> <Service_Class>D</Service_Class> <Verticle>800</Verticle> <Horizontal>400</Horizontal> <Service_Class>E</Service_Class> <Verticle>1000</Verticle> <Horizontal>400</Horizontal> <Service_Class>F</Service_Class> <Verticle>1000</Verticle> <Horizontal>400</Horizontal> </Deflections> </DEFLECTIONS_TABLE> I made my windowsform and put a datagridview inside called deflection_datagrid. … | |
Hi, I'm trying to synchronize two processes but I get a deadlock that I can't manage to solve. To be more specific, my program has to do the following: 1. Parent creates a process and waits using sigsuspend. 2. Child creates a process. 3. Grandchild performs an execvp and gets … Software Development c ![]() | |
I have a simple class that stores attributes: In [1]: class Test(object): ...: a=10 ...: b=20 I have a function that returns attributes using attrgetter, and it accepts these through the args parameter to allow a user to pass various attribute fieldnames in. For example: In [4]: def getstuff(*args): ...: … Software Development python | |
i am try to create a program that prints the numerical value of EOF... any ideas for the function get the value of EOF using the ASCII table???? Software Development c ![]() | |
Hello, wondering if someone can help me quickly.. Basically, I have created a array to store all the data in a text file. The pointer of the array is sent to a function, which then populates it. Here is the code: void Data(char* theData) { ifstream txtFile(inputFile.c_str()); if(!txtFile.is_open()) { cerr … Software Development c++ | |
I am working on a project, i am using threads over here.. I run a thread and waiting for its isAlive status to become false but my thread is not terminating... Here is the Code Sample. Thread t = new Thread(new ThreadStart(print)); t.start(); while(t.IsAlive) { } console.writeline("Thread is Dead Now"); … Software Development | |
can anyone tell me whether we can use const variables for case ...eg I wrote the following code: const int i=2; int j=0; switch(1) { case i:printf("hii"); } now ...this snippet is running properly in turbo c but not in dev cpp... likewise if we use this const variable as … Software Development c | |
So me and a colleague at work are trying to decide upon a mini-project to do, simply to see how differently we would code it. Has anyone got a good resource for such ideas, or even have some themselves, that are semi-challenging and do-able in about a day? Cheers, Software Development | |
Can anyone please advise me on which version of Microsoft .NET Framework is needed for an XP SP2 (32bit) machine to run a VB.NET app developed on Microsoft Visual Basic 2010 Express? Feel a tad stupid about not checking :( Software Development asp.net vb.net visual-basic | |
Hi, i've been looking around for help with this problem but google seems to just send a load of crap my way so its finally got to the point where i'm asking specifically for help. Here is the code; void CWebRobotDlg::OnBnClickedDologin() { void* pElem= ElemFromID(L"username", IID_IHTMLInputElement) ; IHTMLInputElement* pTextBoxUser= (IHTMLInputElement*)pElem; … |
The End.