132,726 Archived Topics
Remove Filter ![]() | |
I am getting an attribute error...Group not found on cookie = m.group(1) Can any one fix my code here? [CODE]#!usr/bin/python import re import urllib import urllib2 def MassVote(first_number, last_number, email1, email3, password, community_id, join = False, unjoin = False): def curl(url, cookie = None, get_header = False, fields = None): … Software Development python | |
my problem is quiet similar, i used atof here my data and code: "square10.dat" 0.01 1:0.1 0.04 1:0.2 0.09 1:0.3 0.16 1:0.4 0.25 1:0.5 0.36 1:0.6 0.49 1:0.7 0.64 1:0.8 0.81 1:0.9 1.00 1:1.0 THE CODE: [code=c] #include <stdio.h> int main() { char c[10]; /* declare a char array */ … Software Development c | |
When I run this program I can only access the first row of data. Can any one help so that I can access all the lines? I am trying to store numbers into a 2-dimensional array. [icode]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () … Software Development c++ | |
Hi I have a simple code snippet here that writes to a file called Student.txt : [CODE="java"] import java.io.*; import java.util.*; public class Streams { public static void main(String[] args) { String studentFirstName = "Bob "; String studentLastName = " Smith "; String finalGrade = "A"; try { PrintWriter out … Software Development java | |
I am newbie to java implementation... can any one tel me the oops concepts with real time examples.... thanks in advance... Software Development java | |
Hello, I need help to try and figure out why one of my functions does not write to the file. I have 4 functions (below) and all of them write to the file except the updateRecord function. I know this is the case because I keep checking the .dat file … Software Development c++ file-system ios | |
Can some one tell me how to plot a contour map of the height of the earth surface? Software Development | |
I would like to create columns dynamically using VB in MS ACCESS. Help needed. Software Development visual-basic | |
I need help in VB.NET on how to read the entile file line by line which has about 500 lines, and then search line by line if search match found and then display it I have arrange them into an array but because the search need 2 matches on in … Software Development display vb.net visual-basic | |
Hello. Currently i am creating a small application that works around packets. The packets are sent every 600ms. Now my quesition is this: Currently i have this (An example) [code="syntax"] public class Example { private int exampleInt = 0; public void setExample(int i) { exampleInt = i; } public void … Software Development java | |
import javax.swing.*; import javax.swing.event.*; import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.border.*; import java.awt.geom.*; class proj extends JFrame implements ChangeListener ,Runnable,ActionListener //main class { // Declarations public int bottom; public Thread t; int padding = 4; JFrame f; JTabbedPane jt ,jt1; JPanel jp,jp1,jp2,jp3,jp4; JButton j,j1,j2; JLabel lab,lab1; JComboBox jcb,jcb1; //public … Software Development java java-swing user-interface | |
I am trying to create a program that generates random passwords using the characters A-Z and the numbers 0-9. It will also have an input of what you want the length of the password to be. What I don't know how to do is to create a method to choose … Software Development java | |
The below program works fine for a input file that has only one line. but goes to an infinite loop for a multiline file. Kindly suggest. [code][COLOR="Red"] #include<iostream.h> #include<conio.h> #include<fstream.h> void main() { char data[10000]; int i=0; ifstream ofile("c:\\temp\\welcome.txt"); cout<<"File opened\n"; // clrscr(); ofile.seekg(-1,ios::end); while(1) { if(ofile.tellg()==-1) break; i++; ofile.get(data[i]); … | |
Hey. The title displays the error and i was just wondering how i could fix it. Thanks! [CODE=C++]#include "resource.h" IDR_MYMENU MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", ID_FILE_EXIT END POPUP "&Stuff" BEGIN MENUITEM "&Go", ID_STUFF_GO MENUITEM "G&o somewhere else", 0, GRAYED END END IDI_MYICON ICON "menu_one.ico" [/CODE] | |
I am not sure how to prevent the padded characters within a string array from printing. The user inputs the information in function enterRecords() and then prints in outputLine(ostream &output, const Tools &record ) function. I am having issues with outputline when I try to print to screen and then … Software Development c++ file-system ios | |
I'm trying to find the moving average of 20 numbers at a time, being read from a list. This moving average then needs to be inserted into the list. Here is my code: [code]inplis = file(r'table.csv','r').readlines() outp = file(r'avg_volume.csv','w') import math emptyList = [] totalVolume = 0 counter = 0 … Software Development python | |
Hi, ive generated files from a text file to a checklist box. now i want to delete some of it, example i have anna on the first check box and when i check it and click on the delete command the name anna will be removed from the checklist box … Software Development | |
Hi: i am new to C++.. can u help me write a simple program in C++ to take an input of words and just return them in the reverse order..just the words alone not the characters.. thanks Kavitha. Software Development c++ | |
I'm having problems creating an array with a dynamic size using new. Here is the relevant code: [CODE] enum LandCondition { Bad, Good }; //... int IMG_WIDTH, IMG_HEIGHT; LandCondition* land; //... land = new LandCondition[IMG_WIDTH][IMG_HEIGHT];//causes errors [/CODE] The errors VC++ gives me are: error C2540: non-constant expression as array bound … Software Development c++ | |
I am having 2 main issues with this function: 1) For some reason my while loop is working but not correctly. If the user enters 0 rather than the while loop terminating and proceeding to the next line of code in the main function, the program begins to repeat infinite … Software Development c++ | |
Hello, I am attempting to use RegisterClientScriptBlock and it is not seeming to work. Can someone take a look at my code? Here is my C# (which I have in my PageLoad) [CODE]var videoLoadScript = " var so = new SWFObject('player.swf','mpl','955',' 540','9');"; videoLoadScript += "so.addParam('allowscriptaccess','always');"; videoLoadScript += "so.addParam('allowfullscreen','true');"; videoLoadScript += … Software Development | |
Hi, I need to know this urgently. My friends like to use my software on their computers, and after they set it up with the setup wizard, when they run the actual program, half of them get an error on their computers saying 'The application has failed to start because … Software Development c++ | |
Hi guys I don't request any code help, just want to know how they make windows with themes like this: [url]http://www.codeproject.com/KB/library/PrettyWinApiClass/DevStudioSmall.jpg[/url] or like office 2007 Do they do it with winapi, directx, .net or is it possible for all of em' And ehm, another question: does winapi have a future? … Software Development c++ | |
Hi everybody! I wrote for my company one little test application: Frame , Pmw.NoteBook and few buttons. and one main button 'Start' under NoteBook which starts process depend on name of Pmw.NoteBook... everything is fine , the problem is each of the processes run ~10 min and all this time: … Software Development gui multithreading python | |
How to get url images in picture box/image box using Visual Basic 6.0 dekstop application? Plz Help me..... Software Development image visual-basic | |
I am creating a form that will have numerous labels in it, enough so that it will go beyond the length of the form and screen size. How can I set a scroll bar to work with the form and also, I can't extend the form itself far enough to … Software Development visual-basic | |
i am new to java and i was trying to solve a program, a) i wanted to print marks scored by 3 students in 3 subjects. b) i wanted to get the total marks scored by each student and find out the highest total marks scored. c)I also want to … Software Development java | |
hi , Can someone help me with a program if possible .. I have similar files with file name like prog1.in , prog2.in .... progr100.in which has some 47 rows of data in a txt format (almost same files ). I have another file name file1.txt having 100 rows just … Software Development c++ file-system | |
hai i have an application running on AIX 5.2 in C++ when iam trying to execute the application, everything is going fine, but on exit its getting core dumped, and the stack trace is as shown below Illegal instruction (illegal opcode) in . at 0x0 ($t1) warning: Unable to access … Software Development c++ | |
I have here the the cpp file named as clock [code=cplusplus] #include <iostream> #include <fstream> #include <string> using namespace std; #include <cstdlib> int main() { // ofstream constructor opens file ofstream outClientFile("clients.dat", ios::out); if(!outClientFile) { cerr << "File could not be opened" << endl; exit(1); } cout << "Enter the … Software Development c++ ios visual-studio | |
Hello, this type of structures are confusing. I hav been working with C for a while but this subtlety is yet unknown. I have come accross such a structure in a program where suposedly it will be used for FIFO management: [CODE=C] typedef struct FIFO_TAG{ struct FIFO_TAG *NextElement; }FIFO; [/CODE] … | |
I have the following code and am trying to get a range of data in an xl file and put into an array, so I can then analyse it. The array says it is not empty, but how can I see the data as the app fails if I try … Software Development pascal | |
lets say for some reason you needed to draw a very small image and plot each pixel indivudually with code using directx. Is this possible and pick out that pixels colour and everything or do you need to use a supported format like a .bmp or something. all help is … Software Development c++ | |
Hi there! I am working on a project that requires a login screen (which I have done) and upon (hardcoded) authentication, would spawn another window which deposits the user into the game lobby. What is the best way to go about this? I have all my code finished for the … | |
this is my assignment question. You must implement a simulation program to model air traffic among a collection of airports, as discussed in class. There are two important extensions that will be made to the model. First, in addition to arriving aircraft using the runway, departing aircraft must also use … | |
how to convert jtextfield into appropriate form of string and store it in JDBC of oracle software I am trying to read string from JTextField and convert it into string and store it in oracle database | |
I am using D2005 Ent and when I used to close a project with say 5 units open, on opening it back up, the 5 units would be visible and the project would be as I left it. Recently this has changed and only a particular unit is open when … Software Development pascal | |
how can i execute through browser. plese tell me. Software Development java | |
Hello World! I am trying to read in a list of numbers from a file and put it into an array. Please i would be unbelievably grateful if you could tell me whats wrong with my code. This is my code: [code] #include <stdio.h> FILE *fi; FILE *fo; int main() … Software Development c | |
HI guys i am a beginner c++ programmer so hopefully this one will be easy for the gurus. i am trying to write a class to do matrix multiplication and then use it. In the class are 5 functions: one to define the dimensions of the matrix two to enter … Software Development c++ matrix-multiplication | |
I was wondering if anyone knew how to code to read a record from an inventory database? I think you need to use a while loop. while read rcd1 rcd2 rcd3 do that's all I got so far. I am really getting upset about this pesudocode thing. I don't understand … Software Development vb.net | |
I need help because I do not know what the error means so I am not sure how to correct this. The error states: .cpp(70) : warning C4996: 'strncpy' was declared deprecated \string.h(156) : see declaration of 'strncpy' My code is the following: [code] // set the tool name void … Software Development c++ | |
Hello, I am not sure what the error means. I think it has to do with how I called the strncpy function. My error is: .cpp(70) : warning C4996: 'strncpy' was declared deprecated My code is the following: [code] // set the tool name void Tools::setToolName( string toolNameString) { // … Software Development c++ | |
Hi all! In my Windows Forms Application (C# 2005), I am using ListBox but it have a problem when I remove item. listBox.Items.RemoveAt(1); ---> [I]Items collection cannot be modified when the DataSource property is set.[/I] [U][B]Note:[/B][/U] It have just appeared when I used [B]listbox.DataSource = dataTable[/B]; If I dont use … Software Development c# | |
Hi friends, Please tell me wherer i can get crystal report control Thank you Software Development visual-basic | |
Hi, I'm in need of some help on a project I'm doing for a class. In this project were creating an inventory management system for a soda pop company. The menu's and initial part of the program has already been created, my job is to take three fields, sku, quantity, … Software Development c++ | |
Hi, I have a webBrowser and a Button. When i clicked the button I want to display a URL. When it displayed the WebBrowser should be in fullscreen. How can do this? Thanks in advance. Renjith Software Development vb.net | |
Yes folks me again, but if I don't struggle through, I don't learn it. I'm constructing my main (no interactivity at this point), and when I start to declare/create my first object, it doesn't like the string portion of the input and tells me this: error C2664: 'Contributor::Contributor(std::string,double,gender,int)' : cannot … Software Development c++ |
The End.