132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zeus1216gw

I'm trying to write a program in C++ that will tell the user to input 5 numbers and it'll display the largest number and whether it was the 1st, 2nd 3rd...so on entry. any help? this is what I have so far #include "stdafx.h" #include <iostream> #include <math.h> #include <iomanip> …

Software Development c++
Member Avatar for nirav99
0
102
Member Avatar for jjplaw

Hi, I'm a newbie in this vast world of programming. I've been given some codes in C which are compiled & linked using makefile. I can compile the code using nmake from VS2005. Now i want to build the program in C++ VS2005 IDE. From a quick google search, there …

Software Development c++ ide
Member Avatar for jjplaw
0
130
Member Avatar for ermithun

Hello, Can anyone please help me in understanding the below as i need to debug it for finding out the reason for signal 11 in the code, Caught fatal signal 11 (Segmentation Fault) utl_dump_stack: Start of stack trace (using walkcontext) for pid 17461 /data/runtime/mycode/LDAPv3SL/prodlib/libLDAPv3SL_impl.so:std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::erase(std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator,std::list<LDAPCtrl,std::allocator<LDAPCtrl> >::iterator)+0xf4 [ …

Software Development c++
Member Avatar for ermithun
0
108
Member Avatar for dinilkarun

Hi All, I am using the following code to write data into an excel sheet: [CODE]# Open the Output Spreadsheet objExcel = win32com.client.Dispatch("Excel.Application") # Creating object to write to Spreadsheet self.xlApp =Dispatch("Excel.Application") # Creating Workbook self.Wkbk = self.xlApp.Workbooks.Add() # Get sheet count intShtCnt=self.Wkbk.Worksheets.Count # Creating worksheets wsObjReport = self.Wkbk.Worksheets.Add() # …

Software Development python
Member Avatar for dinilkarun
0
2K
Member Avatar for csharplearner

Hello all, I am trying to connect to sqlserver on godaddy but facing so much trouble with the connection strings. I wanted to use C# but wasnt successfully in making a connection. when i simply copy-pasted their vb-script connection strings sample.. it worked. I tried to modify vb to c# …

Software Development c# vbscript
Member Avatar for jerry32uk
0
437
Member Avatar for manutd4life

Hello every1, my problem is how to remove controlBox of MDI child. i mean that i already set MDI child: ControlBox to False minimizeBox to false MaximizeBox to flase set windowstate to maximized formborderstyle to fixed3d When i open the form in MDI Parent, all the button minimize, maximize, exit …

Software Development vb.net
Member Avatar for kvprajapati
0
187
Member Avatar for lotrsimp12345

//main [code] #include <iostream> #include <cstdlib> using namespace std; #include "libro.h" int main() { test ab; cout<<"enter width limit"; int length; cin>>length; ab.alternate(length); } [/code] //implementation [code] #include <iostream> #include <cctype> #include <cstdlib> using namespace std; #include "libro.h" int test::alternate(int width) { //for odd, 3 char-ellipsis if(width%2==1) { keep=width-3; } …

Software Development c++
Member Avatar for lotrsimp12345
0
145
Member Avatar for iliketacos

I need help please. this cgi program works fine only if the user puts in more than 66 chars..i chopped the lines into 66 chars each so they would fit in the textarea the problem is that record comments() works perfectly for writing multiple lines and the \n char in …

Software Development html-css python
Member Avatar for iliketacos
0
261
Member Avatar for su_candy

Hi all, I'm working on creating an application whcih acquires image data from camera and display it. I have right now acquired image data in the form of long* array. I would like to visualise this data. I am not sure how to display the array values as an image. …

Software Development c++ display visual-studio
Member Avatar for su_candy
0
166
Member Avatar for crash1989

I found this question in some programming contest.. Given are N squares with side 1. How many "different" rectangles can one form using these squares? Two rectangles are considered different if none of them can be rotated and moved to obtain the second one. During rectangle construction, you can neither …

Software Development c++
Member Avatar for crash1989
0
642
Member Avatar for Pramoda.M.A

Hi All, I am using Visal Studio 2005. I couldnt understand how Visual Studio is executing follwing code. Can anybody please tel me. I have worked on Turbo C compiler, VC++ compiler and Visual studio. I could understand the output of other two compilers for the following code. But i …

Software Development c visual-studio
Member Avatar for csurfer
0
150
Member Avatar for timos

When I try to compile this code [code] using namespace std; #include <iostream> class COne{ protected: int a; public: bool is_equil( COne & other){ if ( a == other->a) return 1; else return 0; }; int seta(int val){ a = val; return 0; }; }; int main(){ COne a, b; …

Software Development c++
Member Avatar for athlon32
0
126
Member Avatar for Your_mum

This will hopefully be my last noobish question post. Please could somebody explain or link to explanation: 1.yeild 2.return thanx in advance

Software Development python
Member Avatar for shadwickman
0
174
Member Avatar for leegeorg07

Hi a while back you guys helped me make a good spell checker, now i want to advance it so that if the difference between 2 words is small it will change them, I think i need to use diiflib for it but i don't know how to do itmy …

Software Development python
Member Avatar for leegeorg07
0
193
Member Avatar for serkan sendur

is there anyway to check if pocket pc is connected to desktop via activesync?

Software Development
Member Avatar for serkan sendur
0
176
Member Avatar for serkan sendur

here is the question: when you have a file you can open properties of that file and set "Copy to Output Directory" to "Always Copy",however, when you want to do the same thing for a folder, there is no option for copying. all there is rest to create that folder …

Software Development
Member Avatar for serkan sendur
0
2K
Member Avatar for serkan sendur

yeah i deploy the application using start button in VS, then application runs ok, then to debug it i run it again without any code change, it gives "Value does not fall within the expected range" error. Do you know why?

Software Development
Member Avatar for serkan sendur
0
87
Member Avatar for suretd

HI All, Another Question: I have created another program that queries the StockTracker database for all users and the stocks held by each user. The program compiles, but at run-time i get the error: [COLOR="Red"]"Exception in thread 'main' java.sql.SQLException: Column not found at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn<JdbcOdbcResultSet.java:1833> at sun.jdbc.odbc.JdbcOdbcResultSet.getString<JdbcOdbcResultSet.java:395> at StockByUser.main<StockByUser.java:43>"[/COLOR] I am …

Software Development java sql
Member Avatar for masijade
0
12K
Member Avatar for hughesadam_87

Hey guys, Has anyone here ever used python to produce data files which can be immediately read by excel? I thought at first if I just tab-delimited my data, I could copy and paste an entire data file into excel. This is not the case. When I take a tab …

Software Development python
Member Avatar for hughesadam_87
0
118
Member Avatar for jogisarge

Hi, i have a form with controls that show productinformation. now i have 10 textboxes named tbxPrice1 -> tbxPrice10 . in my artikecleobject exists a property list<articleprice> named articlepricelist that could have 0 till 10 elements. now i want to fill my 10 textboxes in a loop against my articlepricelist …

Software Development
Member Avatar for Ramy Mahrous
0
149
Member Avatar for Stormy_Weather

Hi, We are new to Visual Studio 2008, barely a month into a C++ course, and are currently working on a few personal projects. We have successfully created a console application with Visual Studio but are not sure on how to get the program to run outside of Visual Studio. …

Software Development c++ visual-studio
Member Avatar for tux4life
0
235
Member Avatar for lotrsimp12345

the error is on line 32 of my main program //interface file [code] #ifndef STREXTRA_H_INCLUDED #define STREXTRA_H_INCLUDED #include <iostream> using namespace std; class search { public: int find(unsigned char mystring,char letter); int find(char mystring[],string word); }; #endif // STREXTRA_H_INCLUDED [/code] //implementation [code] #include <iostream> #include <cstdlib> using namespace std; #include …

Software Development c++
Member Avatar for daviddoria
0
147
Member Avatar for JohnPhilipps

Good afternoon, I am in the process of learning java and I am a little bit stock on a couple of issues. I am working with javamail version-1.4.2 and JavaBeans Activation Framework 1.0.2 release. The purpose of my code is to give me the ability to move e-mails from one …

Software Development java open-source session
Member Avatar for JohnPhilipps
0
1K
Member Avatar for painless

Sequencer sequencer = MidiSystem.getSequencer (); can any 1 tell ...What's going on in this code ....

Software Development java
Member Avatar for painless
0
92
Member Avatar for paroshm

Hi I'm working with a structure like this: [code=c] struct table{ int id, rank, hop_sup; float dist,bs_dist, res_enrg, total; }; struct nd{ float x,y, enrg, bsdist; int id,my_rank, hop; int neighbor[50], prfrdnbor; float nbordist[50]; struct table nbr[25]; }node[127]; [/code] Do you think this would cause memory problem? In my program, …

Software Development c
Member Avatar for tux4life
0
132
Member Avatar for colmcy1

Hey all, need some help on little issue im having. I have 2 programs and I am writing an interface to link the 2 of them in MC VC 6 MFC. There is an input text file to input data for the second program. My dialog interface saves the input …

Software Development c++
Member Avatar for u8sand
0
91
Member Avatar for drxnele

Hi, i am making downloader, and I want to use diferent progressbar for every link (like ff downloader)... I made treemodel [CODE]treemodel = gtk.TreeStore(gtk.gdk.Pixbuf, str, gtk.ProgressBar)[/CODE] and i put in components with this [CODE] def insert_row(self, model, parent, type_image, file, pbar): myiter = model.insert_before(parent,None) model.set_value(myiter,0,type_image) model.set_value(myiter,1,file) model.set_value(myiter,2,pbar) return myiter[/CODE] my …

Software Development python
Member Avatar for drxnele
0
272
Member Avatar for kuay

package gcd; import java.io.*; class gcd { public static void main (String args []) throws IOException { BufferedReader dataIn= new BufferedReader(new InputStreamReader(System.in)); String strEntry; String str_C; String ans; int a[] = new int[10000]; int n=0,i=0,j=0,c=0,max=0,min=0; long prod=0; strEntry = dataIn.readLine(); n = Integer.parseInt(strEntry); for(i=1;i<=n;i++) { str_C = dataIn.readLine(); c = …

Software Development java
Member Avatar for JamesCherrill
0
113
Member Avatar for tomtetlaw

Whats the difference between a double and a float?

Software Development c++
Member Avatar for siddhant3s
0
133
Member Avatar for arun_354
Member Avatar for u8sand
0
582
Member Avatar for StaticShell

Hello all, I am new and I was hoping someone could please help me out. My problem is, I am trying to design a C program to read in a text file containing values, and output these values in binary form. the text file "values.txt" looks like this: 139 <tab> …

Software Development c file-system
Member Avatar for StaticShell
0
157
Member Avatar for jessejamesjjr

hey guys u no any thing bout tex files........... any thing?? i have a few questions to figure out.......... but if u have any advice on what i need to no wrt figuring out these coding questions please help me... i would gr8tly appr. it.... heres the question: and wrt …

Software Development c++
Member Avatar for jessejamesjjr
0
190
Member Avatar for wdsd

My goal is to write a function that takes a number and returns the number of solutions for that number, a form along the lines of f(a) = x_0 + x_1 +...+ x_n = a. where n can be any number such that n < a. Another restriction that I'm …

Software Development python
Member Avatar for BigTurtle
0
102
Member Avatar for SP IT

This is my final assignment before the semester is over. For this program I am supposed to create a switch within a loop. The switch works but the program will not loop. Can you please help me. [ICODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main(void) { double …

Software Development c++
Member Avatar for SP IT
0
105
Member Avatar for Hiroshe

Writting a program which involves tallying generated numbers. I'm having problems with the tallying part. It takes a number, and finds it in the second row of an array, and tallies (add 1) to the same position in the first row. Here's my extracted code: [CODE=C]#include <stdio.h> void tally(int number, …

Software Development c
Member Avatar for Hiroshe
0
1K
Member Avatar for redserpent7

Hi As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even when I try to compile a new MFC project I get the following errors: [CODE] c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2146: …

Member Avatar for redserpent7
0
245
Member Avatar for shaikh_farahnaz

hi everyone out there i'm seding this request again plz help me out .......thanks currently i'm facing this prblem can anyone help me out wid this i'm using ADOCD component in project and also added reference of adodb but resulted in following list of errors Error 1 'CommandTypeEnum' is ambiguous …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
202
Member Avatar for gingank

I has a question i create a form using vb but i dun know how to write the code for the it. So all the data i fill in the form will show it the MS SQL. So what to write the code and anyone have a good tutorial for …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
89
Member Avatar for gingank

Do anyone know how to use the vb to retrieval data from MS SQL ? Do anyone have a good tutorial about it can post it??

Software Development sql visual-basic
Member Avatar for vb5prgrmr
0
95
Member Avatar for suretd

Hi All, I have created a servlet HTMLBank.java which I need to display in my browser. I am using Tomcat as my server. I have saved the class for HTMLBank in: C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\WEB-INF\Classes\servlet But when i try to "run" my servlet in my browser, i get a message …

Member Avatar for suretd
0
1K
Member Avatar for san26

can anybody help me on this algo provided below.................... I need a c++ implementation for the following algorithm............. Algorithm RST-T Input: A set of points P = {(xi, yi)} Output: A rectilinear Steiner tree with all points in P connected A. Build an RST-T with horizontal trunk 1. Set ymid …

Software Development algorithm c++
Member Avatar for Nick Evan
0
132
Member Avatar for xyzt

In a book, I saw a definition like this: [CODE]static struct map_info mymap = { .name = “mymap”, .phys = FLASH_START_ADDR, .size = FLASH_LENGHT, .bankwidth = FLASH_WIDTH, };[/CODE] what does it mean..?It's not clear for me actually..

Software Development c
Member Avatar for tux4life
0
131
Member Avatar for madhurimonica

I am having a doubt that whter dataset can updated directly from datagrid (ie by making changes directly in the datagrid ).

Software Development dataset vb.net
Member Avatar for martonx
0
339
Member Avatar for Acegikmo

After I've been running my program for a while, it freezes and gives me this error in the console: [COLOR="Red"]Exception in thread "Thread-4" java.lang.IllegalArgumentException: timeout value is negative at java.lang.Thread.sleep(Native Method)[/COLOR] It gives me a line to where the error occurs, which is the same line where it says "try": …

Software Development java
Member Avatar for Acegikmo
0
2K
Member Avatar for madhurimonica

how to create a table using date data type i am getting error during creating table create table mrf(fr date); error: cannot find data type date

Software Development sql vb.net
Member Avatar for kvprajapati
0
43
Member Avatar for shaikh_farahnaz

hi everyone out there currently i'm facing this prblem can anyone help me out wid this i'm using ADOCD component in project and also added reference of adodb but resulted in following list of errors Error 1 'CommandTypeEnum' is ambiguous in the namespace 'ADODB'. D:\farah\tran_pro19\26june19\UrduTransliteration\MainForm.Designer.vb 73 33 Project1 Error 2 …

Software Development vb.net
Member Avatar for kvprajapati
0
96
Member Avatar for OffbeatPatriot

I'm making a module to simulate a neural network, speed is an issue so I've written it in c, basically you build the network in python, and then run call a simulate method that is pure c. One thing I want to add is the ability to inject current into …

Software Development python
Member Avatar for OffbeatPatriot
0
264
Member Avatar for manikandan_n84

hai everybody, how to send a mail via ip address in asp.net using vb

Software Development asp.net vb.net
Member Avatar for kvprajapati
0
112
Member Avatar for Tank50

Hi I created C# project ,but there is problem,the problem is if I click on close button in right side upper corner in windows application while program is running ,then it's close,but I cant compile it in second time because its giving error massage "your Test10.Exe is already running",but there …

Software Development c#
Member Avatar for sknake
0
154
Member Avatar for ctrl-alt-del

Hi all! Since I've been having a little more time for doing some recreational stuff I decided to continue programming again. But as you might have guessed from me posting here... I've found myself a problem again. All around the internet as well as on tv you see these nifty …

Software Development
Member Avatar for ddanbe
0
140

The End.