132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Rubinder singh

I need a code which can solve the equations like this :- 56*78+(78/8) In this we know that brackets must be solved first and then divide/multiply and then add/subtract. So, i need a code for solving this kind of equations which contains multiple operators in single line. Thnks :)

Software Development c mathematics
Member Avatar for Rouf mir
0
303
Member Avatar for on93

anyone know how to print this output ???? using three for loop ***** **** *** ** *

Software Development c
Member Avatar for Tajinderpal
0
230
Member Avatar for gacusana.aljan

how to create a window with label and button above the label. can you codes this label : MAIN MENU BUTTON : RECURSION BUTTON: EXIT PLEASE HELP ME ! ITS ALL ABOUT RECURSION

Software Development java
Member Avatar for stultuske
0
107
Member Avatar for jdseader

The following four classes are an attempt to set up three different JFrames and switch between them. The three frames are: MainView, DetailView, and FormView. The main class is MultipleFramesExample. The four source codes constitute a NetBeans project with a package called FrameViews. MainView, DetailView, and FormView are essentially identical …

Software Development java java-netbeans java-swing
Member Avatar for JamesCherrill
0
4K
Member Avatar for everettnewell

With both subs you must enter the values as you would write them into a sql string i.e. 'mustsurroundstrings' I'm rather new at VB.Net and SQL but these work for me and are seem pretty efficient. If anyone has a way to improve on them or finds a flaw in …

Software Development sql vb.net
Member Avatar for Maulikpra
0
539
Member Avatar for I_m_rude

hi, My question is about the const keyword. union emp { char name[]; int age; float salary; }; const union emp e1; int main() { strcpy(e1.name,"H"); printf("%s",e1.name); e1.age=45; printf("%d",e1.age); printf("%f\n",e1.salary); return 0; } I know this code has error which is that "cannot modify constant objects". But Can anyone tell …

Software Development c
Member Avatar for I_m_rude
0
136
Member Avatar for I_m_rude

hi, int a[][2]={1,2,3,4}; int *p[]={(int*)a,(int*)a+1, (int*)a+2}; for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d ",*(*(p+i)+j)); Firstly, This is part of any code. And i want to ask that in *p[] definition, why it is written (int*) with every element since a is already an pointer. Secondly, when I am accessing *(*(p+1)+1) element in loop, then …

Software Development c
Member Avatar for I_m_rude
0
126
Member Avatar for Cameronsmith63

How come I cant find this anywhere???? I've tried everything but posting here. Please help. I've got VS 2010 Ultimate...Sigh. I even tried it at work.

Software Development assembly
Member Avatar for Cameronsmith63
0
102
Member Avatar for krunal1986

Hi all, When i try to decrypt my password which is stored in binary(16),null datatype in DB, it gives me error like 'Invalid length for a Base-64 char array.'. i try the below code from one of the asp.net forum. public string DecryptPassowrd(object obj) { string password = obj.ToString(); System.Text.UTF8Encoding …

Software Development
Member Avatar for krunal1986
0
281
Member Avatar for cmmmm

When i run a single number (1-9), it'll output as ONEONE or TWOTWO, etc.. As well with numbers 11-19, they'll show up as ONEELEVEN or TWOTWELVE, etc. 20-100 outputs fine whereas 101 becomes ONE HUNDRED TEN ONE ONE, etc.I have no idea what I've done any help would be greatly …

Software Development java
Member Avatar for stultuske
0
240
Member Avatar for princy.mohan.1

i'm using 4 pictureboxes and 1 textbox in one particular application. when i click on picturebox1 i need a certain value to be fed as input to the textbox, simillarly for the other pictureboxes too. how can it be done ?

Software Development vb.net
Member Avatar for Gé48
0
267
Member Avatar for Pyler

I wanted to write a simple program that uses classes but I've been running into errors. Anyone have a clue as to what is wrong with my code because I can't seem to figure it out. #include <iostream> #include <iomanip> #include <cmath> using namespace std; class cone{ private: double radius; …

Software Development c++ oop
Member Avatar for Rashakil Fol
0
255
Member Avatar for darthswift00

Id like to know, if say i have a data grid that is connected to a sql database, it displays the table columns once a user enters a search. eg;(in your sql table colnm names are member_name,m_address). Now instead of display those names from the sql, can it display your …

Software Development vb.net
Member Avatar for daniel955
0
137
Member Avatar for thiemebr

**I have this page which upload an image. It works fine in one server that runs Windows Server 2003 / IIS6 but the same page runing on another server with Windows Server 2008 / IIS7 gives the following error message. Both servers are running Framework 4.0** Parameter is not valid. …

Software Development file-stream image vb.net windows-server
Member Avatar for daniel955
0
231
Member Avatar for vbmanDan

Eventually i want to load names from a database to textboxes which are created at runtime. Thought i'd try just getting names into a listbox first though as i'm new to using databases in vb and for some reason nothings getting added to the listbox Heres the code iv'e got …

Software Development open-source sql vb.net
Member Avatar for daniel955
0
204
Member Avatar for bloodbender

Hello Daniweb! I have a .txt file on a URL and I'm able to read its contents and display them however and wherever I want in my applet without any issues with this simple code: URL url = new URL("http://blabla.com/something.txt"); BufferedReader input = new BufferedReader(new InputStreamReader(url.openStream())); String str; Boolean continueLoop …

Software Development file-system java
Member Avatar for bloodbender
0
225
Member Avatar for stevelance99

hey can anyone help me with the decrypt part...cant seem to get it to work.... #include <iostream> using namespace std; unsigned char s[256]; unsigned int i, j; void swap(unsigned char *s, unsigned int i, unsigned int j) { unsigned char temp = s[i]; s[i] = s[j]; s[j] = temp; } …

Software Development c++
Member Avatar for WaltP
0
402
Member Avatar for GregDen

I am writing a VB app that provides the user with a menu of reports written in Crystal Reports 4.6. When the user selects a report, it is shown in the Crystal Reports preview window from where it can be printed to the selected printer. My problem is that the …

Software Development printer visual-basic
Member Avatar for GregDen
0
1K
Member Avatar for tjamesp

Hi, I am trying to write a macro in Excel 2003 that will sort some data and delete the unwanted rows. Basically, starting on line 3, in columns C to L, if the charater strings "N" or "NI" DO NOT appear, I want to delete the row. The number of …

Software Development visual-basic
Member Avatar for hectop
0
145
Member Avatar for Vish0203

How to define multiple characters using macros?? I want to declare all the hexadecimal digits under a name "hexa". Does anyone know it how to do that?? The below code is wrong! Any suggestions to make it correct?? #define hexa 'A','B','C','D','E','F','0','1','2','3','4','5','6','7','8','9' #include<stdio.h> int main() { char a; printf("Enter a character= …

Software Development c
Member Avatar for Vish0203
0
137
Member Avatar for iFrolox

Yea, i've made a lot of threads xD well, im learning and im doing things for different projects. Is there a shorter way to change the backcolor of the textboxes instead of doing this: Private Sub TextBox1_GotFocus(sender As Object, e As EventArgs) Handles TextBox1.GotFocus Me.TextBox1.BackColor = Color.FromArgb(65, 65, 65) End …

Software Development vb.net
Member Avatar for iFrolox
0
2K
Member Avatar for whypython

Suppose I have this textfile A: League 1: a = 123456, b = england a = 234564, b = brazil a = 939311, b = germany ... League 2: a= 213213, b = italy ... ... League 500: a = 74778, b = denmark ... ----------------------------------------------------- Now, I have another …

Software Development python
Member Avatar for Gribouillis
0
256
Member Avatar for kingkactuar

I'm writing a program in MARS that encrypts/decrypts a string with a simple addition/subtraction method to each character according to a 4 digit key such as '2848.' I'm now trying to navigate through each character in a string and just increase the decimal count by 1 just to test it …

Software Development assembly
0
125
Member Avatar for shanki himanshu

Why the program is running without line 14? #include<stdio.h> #include<iostream> //#include<conio.h> //#include<math.h> #define FOR(i,a,b) for(int i=a;i<b;i++) using namespace std; int main() { int a[]={1,2,3,4,5,6,7,8,9,10}; int *b; //b=(int *) malloc(sizeof(a)); b=a; //cout<<b; FOR(i,0,10) cout<<b[i]<<" "; //cout<<sizeof(b); //getch(); return 0; }

Software Development c
Member Avatar for shanki himanshu
0
100
Member Avatar for joey_r

Hey ya'll I was looking for some guidance. I'm building a "workout generator" for fun and got stuck. I want my program pick a random assortment of exercises and write them to a new file. What is the best way to randomly pick strings from a list of exercises; jump …

Software Development c
Member Avatar for joey_r
0
87
Member Avatar for MasterHacker110

I have this code and when ever i try to put in the value 'e' it doesnt want to take it, the program freses. #include <iostream> #include <string> #include <fstream> using namespace std; int encrypt(); int decrypt(); int phi, M, n, e, d, C, N, D, answer, p, q, s; …

Software Development c++ encryption ios
Member Avatar for MasterHacker110
0
130
Member Avatar for soapyillusion

Hello all, I recently started working with java, and I have been in the process of creating a new game for use on Android operating systems. I have at least 90 percent of the game fully conceptulized and at least 30 percent of it already in actual code. However I …

Software Development android java operating-system
Member Avatar for soapyillusion
0
110
Member Avatar for godzab

Why can't I use inline functions with my setter method in c++. Here is the code: Main.cpp #include <iostream> #include "Employee.h" using namespace std; int main() { Employee h; h.setAge(30); h.setSalary(70000); h.setyearsOfService(5); h.printAllInfo(); return 0; } Employee.h #ifndef EMPLOYEE_H #define EMPLOYEE_H class Employee { public: inline int getAge(); int setAge(int …

Software Development c++
Member Avatar for mike_2000_17
0
194
Member Avatar for I_m_rude

hello, I am learning C from past 1 year, Now, I want to improve my coding skills by learning techniques like dynamic programming, backtracking and all that stuff. Can u please tell me or give me links from where i can learn, practise and improve these skills ? please help …

Software Development c
Member Avatar for I_m_rude
0
108
Member Avatar for MasterHacker110

I am writing a chatbot and it's database is going to be contained in a .txt file. Now i have this code: #include <iostream> #include <string> #include <fstream> using namespace std; int main() { string line; string uinput, resp; char key = line[0]; ifstream file("t.txt"); cout<<": "; getline(cin, line); while(getline(file, …

Software Development c++
Member Avatar for MasterHacker110
0
210
Member Avatar for adnan18

#include<iostream> using namespace std; const int STACK_SIZE = 100; class stack { private: int count; // number of items in the stack int data[STACK_SIZE]; public: stack(); ~stack(); void push(const int item); // push an item on the stack int pop(void); // pop item off the stack }; stack::stack() // constructor …

Software Development c++
Member Avatar for deceptikon
0
196
Member Avatar for preety girl

HI everyone ,In this semester i have a course on data structure , My teacher is going to recomend us C# or C++ for implementing structures . i have good skills on c language and java but dont know C# and i hate c++(however i have learnt some bit of …

Software Development data-structure
Member Avatar for deceptikon
0
137
Member Avatar for laavanya

what kind of concepts must be taken up for mini projects by students,especially for their first project...??please reply...

Software Development c
Member Avatar for laavanya
0
212
Member Avatar for daino

If I write a C++ program and compile it into an executable file AND, don't have to install the program, will I have trouble running that C++ written program on other platforms? Do portability issues accross different platforms only arise when I have to install the program? I'm currently breezing …

Software Development c c# c++
Member Avatar for deceptikon
0
345
Member Avatar for Tajinderpal

I have created a screen capture of the current screen ,but i want to capture the entire html page as image can any body help me. Here is the code of screen capture.. import java.io.*; import java.awt.*; import java.awt.image.*; import javax.imageio.*; class A { public static void main(String[] ar) throws …

Software Development html-css image java
Member Avatar for JamesCherrill
0
4K
Member Avatar for plusplus

how to keep a certain form always behind other forms

Software Development visual-basic
Member Avatar for samsylvestertty
0
166
Member Avatar for jonc

Hi, I've got an XML file that I need to make changes to before creating an output XML file. I've got an XSLT Transform file which does part of the job fine, but I'm needing to go one step further which is where I'm struggling. In C# I'm using an …

Software Development c# data-structure xml
Member Avatar for Mike Askew
0
3K
Member Avatar for WolfPack

Hi, How do you delete a newline character that is inside a VB string? Apparently Trim removes only spaces. Thanks in Advance.

Software Development visual-basic
Member Avatar for hcassper
0
13K
Member Avatar for marreameathue

help i'm rather new at this but have some understanding but am having some probs with 1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(8) : error C2144: syntax error : 'int' should be preceded by ';' 1>c:\users\kysinden\documents\visual studio 2008\projects\real\real\test.cpp(9) : error C2447: '{' : missing function header (old-style formal list?) i am makeing an number …

Software Development c++ visual-studio
Member Avatar for phorce
0
374
Member Avatar for jab8288

I am trying to format my text firlds so that if the user inputs letters or somethings improper, it will display an error message and ask the user to retry entering the number. i am not quite sure where to start with this part. i have the calculator code working …

Software Development java java-swing oracle
Member Avatar for JamesCherrill
0
193
Member Avatar for khaled_jawaher

I have a sample question,can i return a Jframe in a method defined in a jaxws webservice implementation class.if soo give me steps simple steps onlt or keywords, i ve tried for example: import java.awt.*; import javax.jws.WebService; import javax.jws.WebMethod; @WebService(serviceName="frameService", portName="framePort", name="frame",wsdlLocation = "WEB-INF/primary.wsdl") @BindingType(value=javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING) public class frameserver implements Serializable{ …

Software Development java
Member Avatar for peter_budo
0
250
Member Avatar for jumboora

Hi, I am a newbie in C#. I am trying to read a text file line by line (each line has fixed length of 128 numerical values). Text file has more than 300 lines. Now i want to select and copy each line after 5 lines (i.e., interval = 5 …

Software Development file-system
Member Avatar for Cameronsmith63
0
231
Member Avatar for atunio

i am new please guide me how can i take input from user in java. i did java from lot of time ago now i am starting learn again i did learn take input from user by this, there is a statement to write input from user first we initialize …

Software Development java
Member Avatar for stultuske
0
414
Member Avatar for rahman86

HI all in Daniweb. I have a problem here. I wanted to create a desktop database application using Java DB Embedded. What is the problem here i try creating a frame from scratch and want to connect to the database. I have create a connection to the database. it was …

Software Development java java-swing
Member Avatar for bloggernewbie
0
3K
Member Avatar for Ahmed.Adb.Elazeem

**hello evrey one i have problem,,,,, i want transfer data from textboxes to MsfilxGrid when i press a command1 ?? and when i finish iwant to save data from MsfilxGrid to database ?? when i press a command2 in VB6 **

Software Development visual-basic
Member Avatar for AndreRet
0
283
Member Avatar for thegreatkk

hi, i am doing a project using C#. i am new to this area. the task is to extract the zip or rar file using C#. in my windows form have a text box and button in the form. i will give the zip or rar file. when i click …

Software Development c# file-system
Member Avatar for programminfree
0
3K
Member Avatar for manticmadman

I am trying to check for a palindrome. I keep getting errors when reaching the first if statement. I feel it is because i returns as a letter and not the position number in the string. What am I missing? def palindrome(str): s=(str) sum=len(s) l=int(sum/2) for i in s[0:l]: if …

Software Development python
Member Avatar for TrustyTony
0
195
Member Avatar for jezguitarist30

Hi guyz, I'm just wondering if it's possible to add the mouse when capturing the screen or monitor in vb.net? because I'm doing a project that would record the screen and I'm actually successfull doing that by capturing the screen and include it in a timer, but my only problem …

Software Development vb.net
Member Avatar for jezguitarist30
0
178
Member Avatar for jgehlot09

I am trying to grab the string/object from the treeview. So when a user click on any item in the treeview, I can show it on the terminal. ANy help is appreciated.Here is the code. QtCore.QObject.connect(self.treeWidget, QtCore.SIGNAL("clicked(QModelIndex)"), self.treefunction) def treefunction(self, index): print index Output on clicking the item in treeview …

Software Development python
Member Avatar for jgehlot09
0
736
Member Avatar for colmar

I am trying to alter the voice in a DirectSS Text to speech control. I am able to make the control speak. "DirectSS1.speak (Label1.caption) 'This reads the words from a text box" Going on the above how do I change the voice. The other properties I am playing with as …

Software Development visual-basic
Member Avatar for InfrequentCoder
0
3K

The End.