43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for rtwister

on line 53 it says menu is undeclared. but if i bought menu first then mcdonalds is undeclared. does anyone know how i can sort this out? ty [CODE] #include <iostream> using namespace std; double money = 50.00; void Mcdonalds() { cout << "Welcome\n"; cout << "How can i help …

Software Development c c# c++
Member Avatar for Tom Gunn
0
77
Member Avatar for joe82

Hello everyone, My file has lines like: >9|102396631|genome..... CCACTTTCTCTCCGCGCTGGGTTGAACATGGTACATCAGACTCCCTGAATCTGTCAGATC TCTTGGTTGCTGTTGACAACTAAGACTTCGGAGCCTGGAG_GATTTGTTGAGGGGGAGCA GTTCTGGGTGTCCTCTGCTGTGACTGGGCTCCCGGCCTCTTGATAATGCGCAACAGCTGC GGTAGAACATCTCATTCCCAG >9|102362951|ENSRNOS.... I want to delete blank lines from this file please help me... Thanks

Software Development python
Member Avatar for joe82
0
12K
Member Avatar for GDICommander

Hello, everyone! I have a problem with memory free. Here is the necessary code to understand the problem: [CODE] void fillArray(char** referenceArray, FILE* grid) { //Chaîne qui va contenir une ligne du fichier. char* lineContent = malloc((width + 1) * sizeof(char)); //Pour contenir le "\0" int i, j; for (i …

Software Development c visual-studio
Member Avatar for jephthah
0
302
Member Avatar for akulkarni

[code] i read that a method that is is using throws clause must be mentioned in the try and catch block.So when we use "throws IOException" in the following program why dont we use try and catch import java.io.*; class testthrows { public static void main(String args[]) //throws IOException { …

Software Development java
Member Avatar for akulkarni
0
110
Member Avatar for jooa

Hi, I am trying to write some code to insert coordinates which are taken from the mouseClick position and then added to a 2D array. The user should click 6 positions on a panel and these positions should be stored in a 2D array. I hope you can help. Thank …

Software Development java
Member Avatar for jooa
0
4K
Member Avatar for Arrorn

How do I import a variable from another function in the same class [code=Python] class W(object): #my class def variable(self): #one of my functions f = 5 def printf(self): #what do i put here to import f from the function variable... #I'm currently working with python 3.1. #I know its …

Software Development python
Member Avatar for Arrorn
0
300
Member Avatar for functionalCode

I have a main form and I have menu's that open up within the form, but when I open a menu they open off the form. What do I need to do to make the forms open at the center of the main form? Thanks

Software Development
Member Avatar for sknake
0
59
Member Avatar for kingben

[code=c++] #define MIN_PASS_LENGTH 6 #define MAX_PASS_LENGTH 12 #define NUMBER_OF_PASSWORDS 3 #include<iostream.h> #include<stdlib.h> #include<time.h> #include<conio.h> #include<fstream.h> #include<string.h> //int i; //letters //int j; //numerals char rand_small_letter() { int nHigh = 122; int nLow = 97; int small_letter = ((rand()%(nHigh - nLow + 1)) + nLow); //values from 97 to 122 return (char)(small_letter); …

Software Development c c# c++ ios
Member Avatar for tux4life
0
882
Member Avatar for VBNick

Hello~! ...again.. I got some help from you guys a while ago with this same app because it wouldn't run on winxp. It runs fine now, but my brother is still telling me he cant get it to work right...so rather than go through all the trouble of trouble shooting(he …

Software Development c++ java
Member Avatar for Salem
0
258
Member Avatar for Whilliam

Hello.. Im trying to pass an integer to a function by adress because I want to change the value of the integer in the function. But it will not.. please help. Here is my function call: [code=c] insert_sorted(&VH, &L, n); [/code] Here is my function: [code=c] void insert_sorted(VirtualHeap *VH, LIST …

Software Development c
Member Avatar for tux4life
0
96
Member Avatar for S2009

Hi I want to store value from a row into a variable. I have used the following coding but it is not working properly. It is generating the following error: [B]Index was outside the bounds of the array.System.Data[/B] Please note that the table contains only one row. [code] objSqlConnection.ConnectionString = …

Software Development c# open-source
Member Avatar for adamdk
0
893
Member Avatar for Tank50

Hi I use the reporting services to generate the report.I use query like "Select Distinct(ID) from Table1".In that query Its generate the number of ID ,So In report user able to several "ID" at one time,so I think if I can use combo box then user can select ID which …

Software Development
Member Avatar for Tank50
0
91
Member Avatar for llemes4011

Hi. In my attempts to create an email client, netbean's GUI builder has made me very unhappy... so, I decided I'd rather code it by hand... not my best idea, but whatever. Now, I'm trying to nest a Vertical JSplitPane in a Horizontal JSplitPane, and I can't see the left …

Software Development gui java java-swing
Member Avatar for llemes4011
0
94
Member Avatar for laghaterohan

hello, i was just wondering as to what is the major difference between the Endswith() and Equals() method in .net (c#) ? I wrote the following code for string comparison n also for numerals by using Endswith method however even if i use Equals method i get the same output …

Software Development
Member Avatar for laghaterohan
0
246
Member Avatar for S2009

Hi I am developing a windows application. For your infomation FRONT END : C# (VISUAL STUDIO 2008) BACKEND : SQL SERVER 2008 In a single form I have an option for add and remove books. Two different buttons are used(Add and Remove Books). When I click on Add button the …

Software Development c# visual-studio windows-server
Member Avatar for lighthead
0
5K
Member Avatar for hitchiker

[code]Excel.Application ExcelApp = new Excel.ApplicationClass(); ExcelApp.Visible = false; String WorkbookPath = filename; Excel.Workbook ExcelWorkbook = ExcelApp.Workbooks.Open(WorkbookPath, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true, false, false); Excel.Worksheet Sheet = (Excel.Worksheet)ExcelWorkbook.Sheets[1]; DataTable newTable = new DataTable(); string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filename + ";Extended Properties= Excel …

Software Development c c# c++ open-source
Member Avatar for sknake
0
643
Member Avatar for rizillion

i need to how to give codings to buttons that are present in confirm dialog box. For Example if there are two buttons as "YES" and "NO" and if i click "YES" then the program should close. If i click no then th dialog box should return to the program. …

Software Development java
Member Avatar for peter_budo
0
164
Member Avatar for DoEds

this is our homework... // make a c program that will ask any number from the user. //Output all numbers multiples of 3 from number to 30. [ICODE]// make a c program that will ask any number from the user. //Output all numbers multiples of 3 from nuber to 30. …

Software Development c
Member Avatar for tux4life
0
109
Member Avatar for ddanbe

Hi all, I have made (just to learn C#) a calculator program, which is working OK. I made a Round button class for it, but the edges of the buttons still look "crispy". I set [B]SmoothingMode [/B]and [B]PixelOffsetMode[/B] to [B]HighQuality[/B] but it seems to have no effect. Is this once …

Software Development gui windows-vista
Member Avatar for emarshah
0
878
Member Avatar for yassar

Hi, I am modifying a software in delphi, The software is in Turkish, but it cannot show special Turkish characters properly. Can anyone help me solve this problem.

Software Development delphi pascal
Member Avatar for yassar
0
185
Member Avatar for sharat87

Hello, I have an application written in python and Tk. My application is to be scriptable with python, i.e., the user gives a small piece of code written in python, and that is to be executed by my application in a different interpreter, with different set of local variables. I …

Software Development python
Member Avatar for shadwickman
0
113
Member Avatar for emarshah

Hello to all, [INDENT]I am making an application which will only take images, convert it into binary image using a threshold. Now this binary image will be segmented horizontally on the basis of black pixels. In the attachment [ATTACH]10789[/ATTACH], this is the original image file. Now i have to segment …

Software Development image
Member Avatar for emarshah
0
163
Member Avatar for Thew

Hello, I have a small question. I have done some projects in C++ and Delphi. In C++, when I work with classes, I always use pointers.I make functions and classes that takes pointer to a class as an argument. But in Delphi, like this example: (some class).Create(Owner: TComponent) function take …

Software Development delphi pascal
Member Avatar for Thew
0
76
Member Avatar for dinilkarun

Hi All, I am using the below code to write into a text file [CODE] # Write into log file inp=file(Doc\Log.txt, 'w') inp.write('Log file start') inp.close()[/CODE] The text file 'Log.txt' is present in 'Doc' folder inside the application folder. Now I want to create a text file with a time …

Software Development file-system python
Member Avatar for baki100
0
164
Member Avatar for Piya27

Hi All, How can I accomplish splitting of data(string). For eg, If I want to split the 'Date Of Birth' ( given in the format dd/mm/yy) into its constituents dd, mm and yy separately. Specifically, I have a DOB field in my database(sql) and in the form, I have three …

Software Development vb.net
Member Avatar for Piya27
0
80
Member Avatar for firoz.raj

I Simple want when user click on the combo box .the other corresponding detail should come in a text box.i have written a code but it is not working .Kindly help me. any help would be Greatly appreciated.here is the code what i have written. [code=vb] Private Sub CboEmpName_Click() Dim …

Software Development visual-basic
Member Avatar for firoz.raj
0
108
Member Avatar for OffbeatPatriot

[code=c] #include <stdio.h> int main() { printf("hello\n"); return 0; } [/code] It's all the more frustrating because I've designed stuff MUCH more complicated on this computer. My errors seem to be all linking errors. I've done all I can think of, which was really just to make sure my subsystem …

Software Development c visual-studio
Member Avatar for OffbeatPatriot
0
592
Member Avatar for ihatehippies

If I wanted to save the binary information of an executable as a string object in a .py file what would be the easiest way to go about that without receiving null byte and EOF errors.. I've messed around with converting each char to its ordinal and then separating them …

Software Development python
Member Avatar for vegaseat
0
147
Member Avatar for iliketacos

this script give me a memory error in parse()...what is a memory error and how can i fix it? [code] import cgi class COM: def __init__(self): f=open('C:/site/commentlog.txt', 'r') self.lines=f.readlines() f.close() def writecom(self, post): f=open('C:/site/commentlog.txt', 'a') f.write(post) f.close() def getcom(self): try: form=cgi.FieldStorage() q=form.getvalue("posts") if q: writecom(q) return q except: return 0 …

Software Development html-css python
Member Avatar for vegaseat
0
117
Member Avatar for jlm699

I feel like I'm losing my mind... I uninstalled wxPython this morning and was going to reinstall with the latest version as I'm having peculiar problems with UliPad that I just downloaded yesterday. Well after uninstalling the wx package and docs & demos I went to the wxPython page and …

Software Development python
Member Avatar for vegaseat
0
221
Member Avatar for Ather14

I am trying generate even fibonacii numbers less than four million, but I keep getting negative numbers at some point and eventually it converges to a positive answer, which is obviously wrong. Can anyone please help me out? #include <conio.h> #include <stdio.h> void main (void) { clrscr(); int f1=1; int …

Software Development c++
Member Avatar for NathanOliver
0
181
Member Avatar for the_prox

Hi there, I need to write a program that draws a clock face with a time that the user enters in two text fields (one for the hours, one for the minutes). As far as I can tell I have all the code written, it's now just a matter of …

Software Development java java-swing
Member Avatar for VernonDozier
1
176
Member Avatar for gianniszaf

Hi there, I have the following string which is tab seperated [code]dasj dhsahdwe dhasdhajks ewqhehwq dsajkdhas edward das dsaw das daswf fjdk ewf jken dsajkw dskdw hklt ewq vn1 daskcn daskw[/code] How can I format it in python in order to make each column to have the width of the …

Software Development python
Member Avatar for vegaseat
0
553
Member Avatar for Zetlin

Ok so for the last couple of days I have been struggling with file handling. Here is my problem I create a new file and write some text into it. Then I open it again to add more text to it but somehow the new text is being written in …

Software Development file-system python
Member Avatar for Zetlin
0
249
Member Avatar for Jonx

So after some scrambling around trying to find a good beginner programming language, i have found python, and with my ultimate goal being game development, also pygame. I have just started learning some basics, and I was going through a tutorial when i ran into an error that im not …

Software Development python
Member Avatar for vegaseat
0
2K
Member Avatar for kes_ee

What is the difference between these two methods; [CODE=python]# Solution 1 list1 = ['a', 'b', 'c', 'd'] temp_list1 = list1 for i in range(len(list1)): temp_list1[i] = "1" print list1; # ['1', '1', '1', '1'] print temp_list1; # ['1', '1', '1', '1'] # Solution 2 list2 = ['a', 'b', 'c', 'd'] …

Software Development python
Member Avatar for vegaseat
0
130
Member Avatar for monkey_king

If I simply just want to tokenize the first element of a string and then output the remainder of the string, how can this be accomplished? thanks [CODE=c] #include <stdio.h> #include <string.h> int main(){ const char* line= "0 firstline"; char* l = strdup(line); printf("beforeToknization:\t%s\n",l); char *tok = strtok(l," "); printf("firstToken:%s\trestOfLine:%s\n",tok,l); …

Software Development c
Member Avatar for jephthah
0
3K
Member Avatar for daviddoria

I'm trying to start writing tests for all of my functions as per Test Driven Development. My question is, say I construct a test for "rotate vector". It would be something like this: [code] int TestRotateVector(const Vector &V) { Vector Original(1.0, 2.0); Vector Rotated = Original.Rotate(10); //rotate 10 degrees if(Rotated …

Software Development c++
Member Avatar for StuXYZ
0
186
Member Avatar for jasscat

How do I format a decimal number so that, if there are one or two digits to the right of the decimal point, that shows up (e.g. 123.45) but, if there are digits of zero to the right of the decimal point, the number is formatted as a whole number …

Software Development
Member Avatar for jasscat
0
180
Member Avatar for teddyg18

I have a program in which i open a a text file, access it's values and create and array with it. for example the text file may contain these values: 1 44 3 4 33 6 7 8 61 10 ; that's 10 integers what c++ tools could i use …

Software Development c++
Member Avatar for teddyg18
0
6K
Member Avatar for VernonDozier

OK, I haven't done much with Serialization. I have a simple program that creates four JPanels with different background colors and adds them to a larger JPanel using a 2 x 2 GridLayout. That larger JPanel is added to a JFrame. I've written my own serialization code to override the …

Software Development java java-swing os-x
Member Avatar for VernonDozier
0
1K
Member Avatar for iamwa

i am an IT STUDENT MY INSTRUCTUR HAS GIVEN ME ATASK TO BUILD WEB BROWSER IN JAVA AFTER GUI WHAT I HAD TO DO PLEASE HELP ME!!! NOT GIVE ME THE CODE JUST TELL ME EASY STEPS COMPLETE IT THANKS!!!

Software Development gui java web-browser
Member Avatar for saggy4
0
112
Member Avatar for tdeck

I've managed to figure out how to create tables in a dataset, fill them with data, and link one of those tables to be displayed in a DataGridView. It works great when the selectionmode is by row, row header, or cell, but unfortunately for this project I'd like the user …

Software Development dataset
Member Avatar for tdeck
0
145
Member Avatar for Naruse

i want to playing mp3 file with vb.net. how can i do this? regard Naruse

Software Development vb.net
Member Avatar for plusplus
0
1K
Member Avatar for j15

Hello everyone, I am not much of a programmer but have some limited experience with vb.NET, so please bear with me. I have written the following code to create a dataset and fill it with three different tables, one of which is empty to begin with but is populated successfully …

Software Development dataset open-source vb.net
Member Avatar for jetti
0
212
Member Avatar for whotookmyname

[code] string s; cout<< "Enter name: "; cin >> s; cout<<"\n"<<s; [/code] on running this i need: Enter name: Tejesh Kinariwala Tejesh Kinariwala it is showing: Enter name: Tejesh Kinariwala Tejesh so how to get the input till user hits return key, instead of breaking it at space

Software Development c++
Member Avatar for whotookmyname
0
80
Member Avatar for anilopo

i've wrote a code that read and write to some files, and i have a segmentation fault when i'm running it in the g++ (in the visual studio i don't have any problem like that..) anyway, i think the fault may come from this line, can anyone tell me if …

Software Development c++ file-system ios legal visual-studio
Member Avatar for anilopo
0
87
Member Avatar for sweetsasthi

I need a help in designing form in vb.net. In my project I have to design a form to save the company's applicaton form details.the applicaton form is of two page.I have to make the form design catchy so that data entry is easy. A section in the application form …

Software Development vb.net
Member Avatar for Piya27
0
96
Member Avatar for lotrsimp12345

gives me error main /* The purpose of this lab is to open a text file and then make a copy of it */ #include <iostream> #include <fstream> #include "Interface.h" using namespace std; int main() { //open up file to be read from string input; ifstream in; cout<<"enter file name …

Software Development c++
Member Avatar for lotrsimp12345
0
201
Member Avatar for qkslvr1621

I'm trying to write a program that asks the user for a number between 1 and 10, then prints a line of that many “X"s. The program compiles, but I cannot figure out how to make the variable 'total' print X's instead of a the actual number, if that makes …

Software Development c++
Member Avatar for qkslvr1621
0
105

The End.