132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for john_bboy7

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
Member Avatar for john_bboy7
0
187
Member Avatar for me_roy

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
Member Avatar for Major Major
0
119
Member Avatar for JackDurden

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++
Member Avatar for joshmo
0
304
Member Avatar for ymf

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
Member Avatar for ymf
0
123
Member Avatar for Shanti C

I am newbie to java implementation... can any one tel me the oops concepts with real time examples.... thanks in advance...

Software Development java
Member Avatar for Shanti C
0
89
Member Avatar for robertmacedonia

Hi, I would like to ask you for help in converting this code from C to C++. It's my little friend 's homework, but I can't help him 'cause I know nothing about C :( In fact, I just can't figure the "scanf" part out, I think the other part …

Software Development c c# c++
Member Avatar for Tilir
0
177
Member Avatar for QuantNeeds

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
Member Avatar for Agni
0
160
Member Avatar for jubleebow

Can some one tell me how to plot a contour map of the height of the earth surface?

Software Development
Member Avatar for rajkhatri1985
0
127
Member Avatar for dinilkarun

I would like to create columns dynamically using VB in MS ACCESS. Help needed.

Software Development visual-basic
Member Avatar for debasisdas
0
73
Member Avatar for molivia03

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
Member Avatar for debasisdas
0
154
Member Avatar for bulger2503

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
Member Avatar for bulger2503
0
144
Member Avatar for shwetha_cs26

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
Member Avatar for VernonDozier
0
171
Member Avatar for bloody_ninja

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
Member Avatar for Alex Edwards
0
641
Member Avatar for srisaravanavel

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]); …

Software Development c++ ios
Member Avatar for srisaravanavel
0
108
Member Avatar for Code Shark

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]

Software Development c++ gui
Member Avatar for TheBeast32
0
330
Member Avatar for QuantNeeds

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
Member Avatar for Ancient Dragon
0
217
Member Avatar for StarryEyedSoy

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
Member Avatar for jlm699
0
142
Member Avatar for dc_24l

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
Member Avatar for dc_24l
0
246
Member Avatar for kavithabhaskar

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++
Member Avatar for eSeong
0
84
Member Avatar for CoolGamer48

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++
Member Avatar for CoolGamer48
0
110
Member Avatar for QuantNeeds

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++
Member Avatar for Lerner
0
256
Member Avatar for SaraJo

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
Member Avatar for SaraJo
0
153
Member Avatar for Wiki_Tiki

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++
Member Avatar for Tigran
0
142
Member Avatar for Tigran

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++
Member Avatar for Tigran
0
148
Member Avatar for splakhin

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
Member Avatar for splakhin
0
140
Member Avatar for sutanu_halder

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
Member Avatar for bhererros
0
328
Member Avatar for ibesokewl24

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
Member Avatar for selvaganapathy
0
116
Member Avatar for newtechie

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
Member Avatar for Ezzaral
0
106
Member Avatar for prog77

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
Member Avatar for VernonDozier
0
91
Member Avatar for vadan

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++
Member Avatar for Salem
0
173
Member Avatar for masterjiraya

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
Member Avatar for masterjiraya
0
112
Member Avatar for tzushky

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] …

Software Development c c# c++ python
Member Avatar for tzushky
0
277
Member Avatar for toolbox03

how do I extract the arguments using getopt Usage: test.py -P abc -S def -G xyz How do I extract the values abc, def and xyz?

Software Development python
Member Avatar for jlm699
0
114
Member Avatar for Smithy888

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
0
65
Member Avatar for cam875

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++
Member Avatar for cam875
0
262
Member Avatar for nokomis

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 …

Software Development html-css java
Member Avatar for peter_budo
0
87
Member Avatar for wenny86

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 …

Software Development api c++ queue
Member Avatar for ArkM
0
2K
Member Avatar for giriking

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

Software Development java oracle
Member Avatar for nitinmukesh
0
90
Member Avatar for Smithy888

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
Member Avatar for Smithy888
0
85
Member Avatar for ravikiran032
Member Avatar for nitinmukesh
0
91
Member Avatar for fatasscp

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
Member Avatar for me_roy
0
189
Member Avatar for a1159538

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
Member Avatar for a1159538
0
168
Member Avatar for army88m2

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
Member Avatar for Renukavani
0
172
Member Avatar for QuantNeeds

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++
Member Avatar for QuantNeeds
0
418
Member Avatar for QuantNeeds

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++
Member Avatar for QuantNeeds
0
1K
Member Avatar for vietnamese

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#
Member Avatar for camilojvarona
0
103
Member Avatar for pardeep3dec

Hi friends, Please tell me wherer i can get crystal report control Thank you

Software Development visual-basic
Member Avatar for debasisdas
0
92
Member Avatar for jkrege03

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++
Member Avatar for ssaurabh
0
1K
Member Avatar for RenjithVR

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
Member Avatar for RenjithVR
0
182
Member Avatar for henpecked1

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++
Member Avatar for ArkM
0
2K

The End.