132,726 Archived Topics
Remove Filter ![]() | |
i have a function in a module that requries integer values. these values are set by the user typing in two textboxes on the form. the texboxes contain Hexadecimal data in string form. function: Friend Function addNewCode(ByVal Location As Integer, ByVal Opcode As Integer) As Boolean If (Not LocStack.Count < … Software Development queue vb.net visual-basic | |
Hi there, In my program i have given the user the possibillity to add new buttons to the form I then serialize the form to a xml file so it is saved. Any data that is edited while the program is running will be saved (for example user edits the … Software Development xml | |
i going to make socket application in c# i dont know more about socket but i have tried but fail . now i want know some more information plz share with me. 1)my server is located in other city . 2)what type of socket i need TCP or UDP ? … | |
hello! i am developing a simple application which will get data from different database like mssql , access , foxpro , and after getting data it will create 4 text files tows.txt , customer.txt , product.text , trasection.txt , prob is this that i am very new to foxpro , … Software Development data-structure mssql vb.net | |
My assignmnet is to read a csv into a structure. A few sample lines of the csv look like this: 21, John Henry Blue, 6598 Wish Street, Elves, CA, 54862 9, Chad Vile, 32 Bundle St. , Carver, IN, 28105 I can't use pointers, except to point to the file … Software Development c | |
I'm really not into obj-c, it's not a very intuitive language, and c++ is what I know and it's much cleaner. However, I do want to get started in making iphone apps. Is there anyway I can do this in c++? | |
#include <stdio.h> #include <stdlib.h> #include<string.h> void main() { char a[200],n,c,b; int i; printf("enter the new string: "); scanf("%20s",a); printf("enter the character to be replaced: "); scanf("%20s",b); printf("enter the new character: "); scanf("%20s",c); for(i=0;a[i]!='\0';i++) { if(b==a[i]) { a[i]=c; } } printf("%s",a); } i have 0 errors when compiler starts to work.it … Software Development c | |
#include <stdio.h> #include <stdlib.h> void main() { char a[100]; int i,c=0; printf("enter the text: "); scanf("%20s",a); for(i=0;a[i]!='\0';i++) { if(a[i]==32) { c++; } } printf("number of spaces in text is %d",c); } ascii value of space is 32 but it shows o spaces in output Software Development c | |
Hello im new in python and have a small project to do . my project is cms detector in python at first its in consol and does not has gui . because of im a newbie in programing i dont know how to begin the project . is there any … | |
![]() | hi... typdef char * hello; const hello ptr1,ptr2; So, in this snippet, my question is that what is constant ? is ptr1 constant or the value to which ptr1 will "point to" will be constant ? and will u please give reason also? my thinking: const hello means (const char … Software Development c |
![]() | hi, #include<stdio.h> int main() { const int i=10; int *ptr= (int*)&i; printf("%d",*ptr); *ptr=11; printf("%d",*ptr); printf("%d",i); getch(); return 0; } in this, we trickly changed the value of a constant variable. how is it changing the value of i ? in the o/p it is giving o/p , value of i … Software Development c ![]() |
![]() | hi, int common(node *temp,int c,int d) { int a=0; if(temp==NULL) return 0; else if(temp->a==c || temp->a==d) return 1; a=common(temp->left,c,d)+common(temp->right,c,d); if(a==2) { printf("%d\n",temp->a); // break; return 0; } else return a; } this is my recusrion code. Actually, I want to end this recusrion process by adding some statement where i … Software Development c ![]() |
Hi all I've been asked to write a C++ program that the user enters a five digit integer. The program then needs to return how many zeros in the number, how many odd numbers and how many even numbers. I've set it up to %2=0 and %2!=0 to determine if … Software Development c++ | |
![]() | hi, int arr[2][2][2]={1,2,3,4,5,6,7,8}: int *p,*q; q=(int*)arr; printf("%d",*q); my question is that how is it giving output as "1"(ofcourse, without quotes). what will change if i don't typecast arr in 3rd line of code? will anyone please explain.Is it giving o/p "1" ,just because of that typecast ? my thinking: as … Software Development c ![]() |
hello ! i am now working on office management system. i have a code to disable the usbport , i want to use it in win7 , before this i already used it in other project on windows xp , it works fine , but now in windows 7 it … Software Development vb.net | |
I am new to c++ language, and i am stucked with this que. my teacher told me to write a prog. that will calculate (1)square-(3)square+(5)square-(7)square+(9)square.............so on using for loop can you help me. Software Development c++ | |
hi everybody, i wish everything is okey? my question is how i can the value of textbox show on colums in datagridview , my textbox read data from DB ?? thx before... Software Development vb.net | |
Hi, I am displaying the values in Datagrid using VB.Net , SQL, i places add button below the grid , i want to add a new row when i click that button, i tried but didnt work can you assist? Software Development vb.net | |
Hello to everyone, Im a beginner in vb.net and currently Im developing a "reminder" program, the user inserts a task that he as to do, the date and the time to be remimbered! Im saving the task in a txt file like this, "Make dinner,Reminder,24-07-2012 18:31:00", but line by line, … Software Development vb.net | |
Hi, I am writing a Silverlight Bing Maps based application and I am trying to merge two (and more) polygons. The approach I am using at the moment is the following: The geometry for the polygons is stored in a database, and Im writing and reading from it through a … Software Development mathematics sql | |
Below is part of my code for a simple java game. I am trying to keep the most recent 10 scores and names of the game in the prevScore and prevScoreName arrays. Both return statements in the method come up as errors, saying it requires int[] and what is found … Software Development java | |
hello.... 1. how does one link a 2 radiobuttons in c# 2010 to the same column in ms sql 2005 2. what could be the problem when one tries to enter data from texboxes in c# 2010 to ms sql 2005 but its not reflecting? 3. what is the syntax … | |
While lunching the application in TOMCAT 5.5 and JDK 1.5 I am getting below exception could some help me in resolving the issue Jul 25, 2012 4:12:50 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at … Software Development apache java java-jsp programming-construct | |
I am using VB2008 fr my project , I am having an error while inserting data in the sales form The error is;:__ "Number of query values and destination fields are not the same". Here is my code-: Dim sql As String sql = "insert into sales (SalesId ,PropertyNo, SellerNo, … Software Development vb.net | |
Private Sub DataGridView1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.SelectionChanged Dim con As New SqlClient.SqlConnection("data source=GOLDA2\GOLDA;initial catalog=school;Integrated Security=True") Dim sql As String = "Select * from fees where particulars=" & "'DataGridView1.Rows(0).Cells(1).Value'" & "" Dim dataadapter As New SqlDataAdapter(sql, con) Dim ds As New DataSet() con.Open() dataadapter.Fill(ds, "fees") con.Close() … Software Development dataset open-source vb.net | |
I am writing a script that solves a Quadratic equation. What I am doing wrong and why? The error I get is: [COLOR="Red"]Traceback (most recent call last): File "/home/matthew/Desktop/QuadraticSolver.py", line 5, in <module> c1 = (b * -1) + math.sqrt(((b*b) - 4*a*c) / 2*a) ValueError: math domain error[/COLOR] Here is … Software Development python | |
#include <stdio.h> #include <stdlib.h> void main() { char a[50]; int n; printf("enter the string : "); gets(a); n=strlen(a); printf("%d",n); for(i=n;i>0;i--) { printf("%c",a[i]); } } the error is at i=n why cant we use i=n; Software Development c | |
Could anyone recommend some reading material to help be better understand the ADOBE SDK C++ API. I'll need it for parsing pdf's and other things. Is there a book written on this or are we restricted to what is on the adobe developers website? Thanks danny2000 | |
How to pass values from textbox to datagridview in VB 2008???? Software Development vb.net | |
This Is my Question : Using loop statement, write a VB .NET program that prompts an integer in the range of 1 to 10 (both inclusive) from the user in an input box, and prints a multiplication table of the integer entered. For example, when the user enters 8, your … Software Development vb.net | |
Hi geeks, I'm using visual studio to write and execute programs. I want to create breakpoint not like software breakpoints(F9 for debugging). I want to build the project in release mode and want to have breakpoint. I heard something like _asm int 3 to create breakpoint. Can anyone explain _asm … Software Development c visual-studio | |
Hey guys, when i doing my VB, i get stuck on the try catch end try...i dono where should i put the try catch end try for the question..this is my question Using loop statement, write a VB .NET program that prompts TWENTY (20) integers in the range of 1 … Software Development vb.net | |
The computer is a binary beast. We want to go from the one-fingered digital box to the ten-fingered human being and convert binary to denary(base 10) numbers. This is how it works, for instance, binary 10010 is calculated as 1*16+0*8+0*4+1*2+0*1 = decimal 18. Just because it's easy, let's throw in … Software Development c | |
Hey guys hello, I am new to programming language. I have some suggestions about **Ditto Clipboard manager**. For that i would like to edit some part of ditto clipboard manager. Can you guys please help me **how can I edit it's source code**. It's available free at here, please [Click … Software Development c++ ide open-source | |
Hello, I'm trying to develop an algorithm/program that calculates the distance between two points. These values are stored inside a 1D array, which, acts as a 2D array (I think you know what I mean!) The values are: 150 50 15 20 The calculation should therefore be: d = √(150 … | |
I have a very tough problem- how do you make an icon/character move across a console screen? For example, if I press W, +++++ ++E++ +++++ Then I press D +++++ +++E+ +++++ And I want it to be like the CHOICE command in CMD- Without requiring the user to … Software Development python | |
Hi, I am trying to create a simple GUI which let user to populate a list box base on a click event in wxpython. Can you please point me into a simple tutorial or example which has a sample? For example I have a list of colors: Red, Green, Blue, … | |
I have the following code: #include <iostream> #include <fstream> #include <string> #include <ctime> #include <windows.h> #include <cstdlib> enum ERR_CODE {SUCCESS, ERROR}; But as soon as I compile it it gives this error: C:\Users\User\Desktop\Program.cpp|8|error: expected identifier before numeric constant C:\Users\User\Desktop\Program.cpp|8|error: expected '}' before numeric constant C:\Users\User\Desktop\Program.cpp|8|error: expected unqualified-id before numeric constant … Software Development c++ | |
I'm currently reading the book "C++ primer plus 6th edition" and it says the char pointer needs to be a constant. I don't really understand the explanation so I did some tests. I don't understand why when I use cin to an already used char pointer, it crashes. But when … Software Development c++ | |
This is the code that I have and for some reason it is not given me that I need. #include <iostream> #include <iomanip> using namespace std; int main () { // variables double salary = 0.0; int RATE = .03; // enter salary cout << "Salary (-1 to stop): "; … Software Development c++ | |
#include <stdio.h> #include <stdlib.h> void main() { char str[10],str1[10],str2[20]; int i,j,k; printf("enter string1: "); gets(str1); printf("enter the string 2: "); gets(str2); for(i=0,j=0;str1[i]!='\0';i++,j++) str[j]=str[i]; for(i=0,k=j;str2[i]!='\0';i++,k++) str[k]=str2[i]; printf("%s",str); } not producing correct output Software Development c | |
Hi! Guys. I want to make a game in C++. I don't know anything about game programming at the moment, but will make it one day. :) could you suggest me , great game ideas in C++. game that is presentable and interesting. Please give your best ideas and suggest … Software Development c++ | |
this is more of a career questions thread. my situation: 15 years plus in marketing management, career change for programming. i concider myself as a Jr. programmer, been programming since november 2011. hoping from PHP to C to Java, back and forth, depending on what im ask to do. i … | |
i am using c# and i have radion buttons that i want to check them, then when i click ok button it takes me to the required form corresponding to the text on the radio button. thanks Software Development | |
Hi, i am trying to pass the value of a text box to a sql statement, the only thing is that the sql statement is located in a different file to where the text boxes are. i have had some trouble in the past with this, as when i call … Software Development sql | |
Hello, I have a bit of a problem. In C# I am doing an Windows Form Excel Addin using Visual Studio 2010. In my form I have a DatagridView that is connected to an Access databe and by pressing a button the user can send data to an Excel spreadsheet … Software Development visual-studio | |
![]() | Is there any way to remove an imported library? `Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32` `Type "copyright", "credits" or "license()" for more information.` `>>> dir()` `['__builtins__', '__doc__', '__name__', '__package__']` (Currently imported packages) `>>> import time` `>>> dir()` `['__builtins__', '__doc__', '__name__', '__package__', 'time']` … Software Development python |
#include <stdio.h> #include <stdlib.h> void main() { int a=5,b=10,*ptr,*pt1; ptr=&a; pt1=&b; b=*ptr; a=*pt1; printf("%d \n %d",a,b); } producing same values not swapped Software Development c |
The End.