43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for lemonzipper

Hello All, I would like the user to be able to choose the file_name (assuming it already exists) and be able to append information to it. However, this condensed version, below, of what I'm trying to do gives me a compilation error. I feel like it has something to do …

Software Development c++ ios
Member Avatar for lemonzipper
0
258
Member Avatar for Singlem

Hey I'm using a dbexpress to connect to a mysql server, that works. I then do a query and from that assign values to variables. Now my issue it that I can't seem to find a way to read a 'NULL' value from the Database and assign it to a …

Software Development delphi pascal
Member Avatar for Singlem
0
156
Member Avatar for Gribouillis

How would you safely round a floating point number to the nearest integer ? Python has the built in function [icode]round[/icode], but it returns a floating point number [code=python] >>> round(4.9) 5.0 >>> help(round) Help on built-in function round in module __builtin__: round(...) round(number[, ndigits]) -> floating point number Round …

Software Development python
Member Avatar for Gribouillis
0
3K
Member Avatar for bleedi

Hey! Again, small but devious problem for me: I have a string that gets time as an input, in a format like "9.45" or "15.37". How do I extract the hours and minutes to integer variables, when the hour part may consist of either one or two digits? If it …

Software Development c++
Member Avatar for bleedi
0
140
Member Avatar for java_programmer

I am writing a macro, which will take an excel sheet as input, process the data and after processing the data, will create a new excel sheet with the processed data. In the input excel sheet, there will be some blank row, which I need to be ignored. But i …

Software Development visual-basic
Member Avatar for AndreRet
0
165
Member Avatar for litlemaster

I have three as 1.Contacts --> contact_ID, contact_name 2.Members --> contact_ID, Group_ID 3.Groups --> group_ID, contact_ID I want to SELECT contacts_names from Contacts where some Group_ID such that all the contact_IDs belong to one group_ID in table Members. In short I want to Group my contacts. Please Help

Software Development
Member Avatar for litlemaster
0
71
Member Avatar for evinkeating

I have a program that works fine under windows, but when i run it on Unix I get a very slightly diffent set of results, followed by a 'segmentation fault' message. I'm at a loss to explain why. Any ideas?

Software Development c unix
Member Avatar for evinkeating
0
891
Member Avatar for judithSampathwa

Hi, I have a question regarding the date time in C#. I want to get the date and the time in two digit 4 as 08.45am 27/07/2010. How can I get it like this. thankxxxx

Software Development
Member Avatar for Geekitygeek
0
136
Member Avatar for evinkeating

I've a 2-d array declared as such [CODE]lower_tri = (float **)malloc(sizeof(float *)*(dimention)); for(i =0; i < dimention; ++i) lower_tri[i] = (float *)malloc(sizeof(float)*(i+1));[/CODE] So that it looks like... [] [][] [][][] [][][][] ... However, it causes a segmentation fault when I try to de-allocate the array with [CODE]free(lower_tri);[/CODE] (only in unix, …

Software Development c unix
Member Avatar for Ancient Dragon
0
209
Member Avatar for CodeAerial

Ok, just as my topic says, I'm having trouble why it cannot consider negative multipliers. Code below: [CODE]//Multiplication by Repeated addition #include<stdio.h> main() { int k, l, m, n; printf("Enter Multiplicand: "); scanf("%d", &k); printf("Enter Multiplier: "); scanf("%d",&l); n=0; for(m=0;m<l;m++){ n=n+k; } printf("Result is: %d", n); printf("\nThank you for using …

Software Development c
Member Avatar for Liyaan
0
1K
Member Avatar for fourty

Im a doing a project using vb6.. How do i generate the data report for the project.. Your help will be much appreciated fourty.

Software Development vb.net
Member Avatar for Naveed_786
0
100
Member Avatar for kjmlovesbetti

Please help, I am new at vb.net and pretty terrible with very little knowledge. I have a checkboxlist(chklst) with 6 colors. I have 6 labels...Label1, Label2, etc... When Button1 is clicked, I would like to have list item1, if selected, to = Label1.text I would like to have list item2, …

Software Development vb.net
Member Avatar for kjmlovesbetti
0
174
Member Avatar for Naveed_786

I have problem in printing i send the print but the blank page comes code i am using as follows: [CODE]Dim linesPerPage As Single = 0 Dim yPosition As Single = 0 Dim count As Integer = 0 Dim leftMargin As Single = e.MarginBounds.Left Dim topMargin As Single = e.MarginBounds.Top …

Software Development vb.net
Member Avatar for Oxiegen
0
119
Member Avatar for acrocephalus

Hello! I am trying to run the code provided in the texttable module documentation ([URL="http://jefke.free.fr/coding/python/texttable/"]http://jefke.free.fr/coding/python/texttable/[/URL]) as shown in the code, but it returns a name error which tells that Texttable is not defined. [CODE]import texttable table = Texttable() table.set_cols_align(["l", "r", "c"]) table.set_cols_valign(["t", "m", "b"]) table.add_rows([ ["Name", "Age", "Nickname"], ["Mr\nXavier\nHuon", 32, …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for fingerpainting

[B]Background: [/B] I'm extracting values from a file which is sometimes an xls and sometimes an xlsx file. An xls is easily read with xlrd, but xlrd nor any other Python library (as far as I could find) supports xlsx, so instead I'm using[URL="http://github.com/dilshod/xlsx2csv"] xlsx2csv[/URL] to convert to csv and …

Software Development file-system github python
Member Avatar for fingerpainting
0
9K
Member Avatar for molocas

Hello every one, I am new in C++ and I have a new project. I have a text file with numbers that are coordinates x,y The text files´s format looks like this: X Y 234 5678 343 3456 193 235 and so on Steps, 1.- Put all this file in …

Software Development c++
Member Avatar for Ancient Dragon
0
175
Member Avatar for Kanoisa

Hi guys, Im working through accelerated c++ book and in chapter 4 ex 2 i had to build a program that displayed the square of ints (i) 1->100 inclusive using setw() to align the results. this i did ok and it works fine like 3 lines of code. However in …

Software Development c++
Member Avatar for arkoenig
1
183
Member Avatar for avinash_545

hi everybody!!!! I am really new to vb.net and I wish to know how to embed Google maps into one of the forms of my project. help please.

Software Development google vb.net
Member Avatar for Pegazux
0
169
Member Avatar for jemimaloh

Hi there! this an excerpt from an extracted pdb file my team has done in the format of a text file. ATOM 1 N ASN A 2 [B]18.668 27.299 52.379[/B] 1.00 41.19 N ATOM 2 CA ASN A 2 [B]19.400 26.674 53.492[/B] 1.00 40.18 C ATOM 3 C ASN A …

Software Development java
Member Avatar for jemimaloh
0
2K
Member Avatar for dupowdis

I have this great little program that I have made in the JCreator IDE. It has four class files. All of the classes are in a package called org.jfree.panning. They are listed as follows: XYPLOT.class* PanningChartPanel.class PannableXYPLOT.class Pannable.class * = Main Class There are also four .java files corresponding to …

Software Development ide java
Member Avatar for dupowdis
0
656
Member Avatar for vinochick

Here is what I have so far. I understand the middle portion of it. I'm just having a hard time understanding which variables to stick in the voids. [CODE]#include <iostream> #include <iomanip> using namespace std; //function prototypes void getFahrenheit(); void calcCelsius(); void displayCelsius(); int main() { //declare variables int fahrenheit …

Software Development c++
Member Avatar for Andreas5
0
1K
Member Avatar for buddyalexander

I have just started to learn python (Learning Python), and I am trying to move some files to another folder that are over a week old. I keep getting an error about the files not existing. import shutil, sys, time, os src = 'c:/users/wca36050/temp1' dst = 'c:/users/wca36050/temp2' now = time.time() …

Software Development python
Member Avatar for TrustyTony
0
244
Member Avatar for gutiarfanatic7

I'm trying to make a blackjack game but I'm having a little trouble with a do/while loop. Maybe a do/while loop isn't the right kind of loop to be using? I dunno, you tell me. Here's the code: #include <cstdlib> #include <iostream> #include <string> #include <sstream> #include <ctime> using namespace …

Software Development c++
Member Avatar for gutiarfanatic7
0
117
Member Avatar for onthego

I can't seem to get a comma embedded string (i.e. an LDIF DN value) to save as a key in an associative list without the value being interpreted as a list itself. I can't find a method that will cause the value of the string variable to be interpreted intact …

Software Development python
Member Avatar for onthego
0
238
Member Avatar for Zinderin
Member Avatar for Zinderin

I'm using VS2005 ... when you set a button image, is that image stored in the app's resources like the icon is, or do I have to do that manually. Now, don't think I'm crazy for asking this... :P I was a long time Delphi user, and in Delphi when …

Software Development delphi visual-studio
Member Avatar for Zinderin
0
170
Member Avatar for cjmartin

New to Java. I am trying to display the contents of my ArrayList. In the ArrayList are objects based off the Class PalletLocations. If I loop through the ArrayList I just get the object name/location (not sure what it is). For example "wms.PalletLocations@30fc1f". [CODE]ArrayList<PalletLocations> palletLocList = new ArrayList<PalletLocations>(); PalletLocations palLoc …

Software Development java
Member Avatar for NormR1
0
619
Member Avatar for peter_budo

When I created new project I went to [I]Solution Explorer[/I] and in [I]Properties[/I] I double clicked on [I]Resources.resx[/I]. Here I clicked on [I]Add Resource[/I] and [I]Add Existing File[/I]. Selected images been added and I can use them for darg&drop on form. My problem is I need to create sort of …

Software Development image
Member Avatar for kkais
0
10K
Member Avatar for yap_1991

[CODE]import java.io.*; public class ftp { public ftp() { URL url = new URL("ftp://username:password@ftp.whatever.com/file.zip;type=i"); URLConnection con = url.openConnection(); BufferedInputStream in = new BufferedInputStream(con.getInputStream()); FileOutputStream out = new FileOutputStream("C:\\file.zip"); int i = 0; byte[] bytesIn = new byte[1024]; while ((i = in.read(bytesIn)) >= 0) { out.write(bytesIn, 0, i); } out.close(); in.close(); …

Software Development java
Member Avatar for yap_1991
0
479
Member Avatar for aint

When I write a code, I put time related codes in the beginning and at the end to see how many seconds it takes. Is it possible to write it as a module, and refer to it when i write a code just with a single line of code? [CODE]import …

Software Development python
Member Avatar for snippsat
0
112
Member Avatar for StaffanB

How do I obtain the characterindex that the cursor is currently pointing at in a richTextBox.

Software Development
Member Avatar for nick.crane
0
135
Member Avatar for nssltd

Hi i have been making a small login suite purely out of fun. i am using xml to record the passwords set by a user, i have coded most of it but i am baffeled by this error! here is my work so far; [code=c] private void al(String password, string …

Software Development xml
Member Avatar for nick.crane
0
150
Member Avatar for runee1000

Hi: For the longest time, I have been using the IDE "JCreator". I made previous games on it in the past for school, and when it would come to me implementing a background image in my game, I would make a background class, and have the image in my project's …

Software Development ide image java
Member Avatar for runee1000
0
202
Member Avatar for Scu

I am making a program with list of classes. I have this situation that I'm not aware of how to use: [CODE=c] class clsMyClass { private: unsigned int id, nodStart, nodStop; float pipeLen, pipeDiam; public: void AddElement(clsConducte element); [/CODE] In another part of program I will have a variable list …

Software Development c++
Member Avatar for Scu
0
115
Member Avatar for faby

hello everyone! I wanted to create a priority queue in which there would be different dictionaries with their priority numbers. The major problem I'm experiencing is that the queue just prints the dictionaries without regard for their priority. Please what do I have to do so that the queue prints …

Software Development python queue
Member Avatar for TrustyTony
0
2K
Member Avatar for Luther von Wulf

What are some good exercises for an experienced programmer new to C++? I have found lists and suggestions on the web, but they are always simple or I have already completed them in other programming languages like C or Basic. Something that will help with learning modern C++ is best.

Software Development c++
Member Avatar for mrnutty
-1
2K
Member Avatar for lewashby

In the following program I don't understand why 'mixer' is given as an argument to the function 'create_gui'. Please explain. File 1 [CODE]# imports from Tkinter import * from sound_panel import * import pygame.mixer # create gui app = Tk() app.title("Head First Mix") # create mixder mixer = pygame.mixer mixer.init() …

Software Development gui python tkinter
Member Avatar for vegaseat
0
134
Member Avatar for Auraomega

Hi there, I'm in the process of moving some code into Visual C++ 2008, the code works fine when compiled with Mingw however crashes when compiled with VC++: [CODE=c++] s_cell **cell; *cell = (s_cell *) malloc(sizeof(s_cell) * MAP_X); for(int loop = 0; loop < MAP_X; loop++) { cell[loop] = (s_cell …

Software Development c++
Member Avatar for Aranarth
0
168
Member Avatar for green-fresh

today when I tried some of member functions which i read about them in a cpp course i found in my c++ compiler (which is visual c++ 6) this error: error [COLOR="Red"]C2228: left of '.length' must have class/struct/union type[/COLOR] when i used this member function: [CODE]str_name.length()[/CODE] instead of strlen() function> …

Software Development c++
Member Avatar for jonsca
0
106
Member Avatar for empror9

hello, i have a small project which ask the user to input value of 'x', then show sin(x),cos(x) and tan(x) using this fourmla [url]http://www.daniweb.com/forums/attachment.php?attachmentid=16080&stc=1&d=1280001204[/url] and the project is says that i can use this fourmla to minmise the computation and increase the efficiency [url]http://www.daniweb.com/forums/attachment.php?attachmentid=16081&stc=1&d=1280001204[/url] so my first question, when i …

Software Development c++
Member Avatar for mike_2000_17
0
5K
Member Avatar for JOSheaIV

Okay so I am creating a program (well more an application as it's becoming alot of coding). But anyway, I have created multiple forms for it but I can't figure how to keep the form on top. I have found the code [CODE]this.TopMost = true;[/CODE] But that only keeps the …

Software Development
Member Avatar for JOSheaIV
0
155
Member Avatar for noora000

Hello, I need to write a programm in C++ to send a sms from a PC to a mobile phone as a part in my project, so can you please help me? Reegards, Noora

Software Development c++
Member Avatar for usamakarim
-1
1K
Member Avatar for Jollyyy100

Hi, am working on my assignment, i wanted to know whether there could be a way in which if i click on sign in on my vb.net button, i could get a pop up or a dialog style message asking me for the username and password. Is there any way …

Software Development vb.net visual-basic
Member Avatar for Oxiegen
0
164
Member Avatar for SgtMe

I want to make an array (using the built-in array module), to create an array made up of classes. All the objects in the array will be the same class, but I want to be able to append new classes on the end and read the values. Thanks in advance.

Software Development python
Member Avatar for SgtMe
0
176
Member Avatar for Jollyyy100

Hi, i want to know if its possible to bring upon many pictures in a single picturebox and navigating it. So far i have done the coding but when i run the program i cant see the picture being displayed following are my codes, and please help if theres any …

Software Development dataset vb.net visual-basic
0
92
Member Avatar for timrichardson

Hi. I'm getting the hang of tkinter now, thanks for help in my first thread on this. Now, I've happily using the simpledialog module, but it's not using the themed widgets (ttk). I think it's a good exercise for me as a python beginner to fix this myself, but I …

Software Development python tkinter
Member Avatar for vegaseat
0
314
Member Avatar for rowley4

I have a program that I need to print out a in the following manner: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 …

Software Development java
Member Avatar for rowley4
0
74
Member Avatar for Xufyan

whats wrong with my program ? [CODE]public class divisible { public static void main(String args[]) { int[] divisible; divisible = new int[] {4,9,25,144}; for (int i=0; i<divisible.length; i++) { if (divisible[i]%5== 0) System.out.println(divisible.length); } }[/CODE] I want to print the total elements in an array that are divisible by 5 …

Software Development java
Member Avatar for tong1
0
97
Member Avatar for qdiscoverer

Hi! I'm trying to save/load all my program's data with just one big serialization.(I'm really depending on this) Below are the codes I used to test serialization---but it seems that something is wrong with it. I'm too confused, since I learnt serialization as a 'magical genie' kind of thing that …

Software Development file-stream java
Member Avatar for qdiscoverer
0
123
Member Avatar for mikenable

Hi all, I'm having a lot of difficulty trying to get this program to compile. I'm pretty new to C++, but what I've come up with so far makes logical sense to me, and I don't understand what the message "Request for member 'displayBoard' in 'game', which is of non-class …

Software Development c++
Member Avatar for mike_2000_17
0
294

The End.