43,549 Solved Topics
Remove Filter ![]() | |
I've gotten feedback from my instructor to modify my code because it contains poor design techniques. I need to add a " return " after each function without it going back to " main " and also to avoid the use of global headers. I've tried to modify it several … Software Development c c# c++ daniweb-feedback database-design linked-list | |
i have an html form with a drop-down list that lists a bunch of images. how can i get my cgi script to load the image ? i have imported cgi and os text entered from a form and read from a file do ok, but i cant seem to … | |
hey there, i have written a script that gets my email messages, but i need to be able to strip off all of the stuff except the body of the message so i can write that to a text file. is there an easy way to do this ? Edit/Delete … | |
I do not understand why the instructions are being printed off of the margin(about 5 spaces). I would think they would be directly on the margin. I am talking about this part in particular [quote] you first need to choose to go first or second. If you choose to go … Software Development python | |
I am getting really tired, so I am probably doing something dumb(disclaimer). below is a python function I am trying to test [php] # answer.py # # this function asks for a move and checks to see # if it is a legal place to choose. position = ['X','O',' ',' … | |
Hi i have a form with a mschart and a msflexgrid in it. What i want to do is that when the form is maximized, scale these two components and move the rest of them (command buttons, combo boxes, etc) I would apprecciate your help Software Development visual-basic | |
Hello, Now that I have been instructed as to how to write unicode characters in Python, I would like to know if it is possible to get the unicode characters into a list, dictionary, etc. Here is my very simple code: [code]a = u'\u05e9\u05dc\u05d5\u05dd!' print a print print mylist = … Software Development python | |
Hi all, I am trying to learn unicode relative to Python, but to be honest, I'm floundering a whole lot. I have never had so much trouble with anything before, but to put it simply, I just don't get it. For example, I want to use Hebrew words in my … Software Development python | |
Hi i am re-studying C.So I just wanted to do a simple calculator program.I am using dev-c++ anyways the code is below please help. [CODE] #include <stdio.h> #include <conio.h> /*its a simple program that after getting the numbers from the user and inputs the operation*/ int main() { int i=0; … Software Development c++ | |
Since C and C++ are different languages, would it benefit Daniweb to split the C/C++ forum into separate C and C++ forums? Software Development c++ ![]() | |
from my understanding, a list can do everything a tuple can do plus more. The big advantage of using a list is you can change elements, lists are mutable. Are their situations where a tuple is preferable to a list? Software Development python | |
I am trying to follow this code I am reading in a book. First I will show you the code as the book has it. This is for a word jumble program. This algorythm I am refering to jumbles a word [php] import random # create a sequence of words … Software Development python | |
Hi everyone. This is my first post in the python thread and I am very new to the language. A while ago, i wrote a program that find the least common denominator for an array of numbers in Java. I recently started to look at the python language and I … Software Development first-post flash python | |
hey guys i got a problem with my program i cant get it to work properly. The question is: [COLOR=Purple]Write a C/C++ program to count the vowels and letters from the keyboard (maximum 50 characters). The string may contain spaces. Then it prints out the number of occurrences of each … Software Development c++ | |
Hey there, i have a python cgi script that prints out html just fine in the Opera browser but doesnt print at all under FireFox. weird, eh? i am getting nothing in the apache logs about any error. perhaps its a firefox issue, but i doubt it. any suggestions. simple … | |
Hi. Im doing a c++ course. And we are doing a assignment to do with I/O File streams. We are using struct. I can add, update, print, and search for records. Now, I need help to read data into an array and sort the array on any one field and … Software Development c++ | |
here below is my code [code] #!/usr/bin/python #this is my third python script print \ """ this is a python program to figure out total sales price, including tax\n\n \t\t\tprogrammed by\n \t\t\tShane Lindberg\n\n """ base_price=int(raw_input("please enter the base price of the car:\n$")) under_coat=int(1000) stereo=int(200) air=int(750) tax=int(base_price*.07) print "the total price … Software Development python | |
Hey there. Here is the deal.... i have a script that is supposed to open a file based on criteria from a web form. i cant seem to get it to work though. here is the code: [CODE]form = cgi.FieldStorage() DataRecord = form['DataTime'].value Customer = form['CustName'].value # should be automatically … Software Development python | |
I'm busy writing an application for work which needs to connect to a list of our servers and check some ports to ensure the correct ones we require are open and ones we don't use are closed. I'm using winsock and checking for a connection and the results are being … Software Development visual-basic | |
Hellow I'm just started whit C. I'm usig gcc and get this error: [CODE]test.c: In function 'main': test.c:8: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast ..... [/CODE] This is my code: [CODE]#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ int arg = atoi(argv[argc-1]); … Software Development c | |
Hi everyone, i was hoping i could find some help here. I am trying to get settings i have written into a textfile to be put in an array. Here is what is in the txt file: 8 44100 1 2 1 I read the textfile with: pStream = new … Software Development c | |
Hello ladies and gents, Wanted to make this part of an exercise in wich I enter each time two integers into an array for wich I have to use STL container vector. Ive got this sofar, but getting an error message when I entered two numbers and the exe shuts … Software Development c++ | |
I was wondering if anyone knew of a good text editor for python ? Software Development python | |
Hi all, I'm completly useless at C++ and was wondering if anyone can tell me how to tell a program that when I have pressed Enter, if the string is empty do nothing. Its for updating details. I'm using an Input header file that my lecturer wrote. This works fine … Software Development c++ | |
Hi, I am a Java programmer dabbling in Python for the first time. Mostly, the transition has been pretty smooth, but this week something stumped me. Please forgive me if the answer to this is completely obvious - I've read van Rossum's tutorial and can't figure it out. I am … Software Development python | |
![]() | Hi, I am a systems engineer/administrator and therefore new to programming and wanted some help pls... I dunno how long it would take to program, if it could be done at all, but could someone please create a small program to vnc pc’s automatically or provide me with step by … Software Development c |
Hi. I'm a long time asp-developer, but fairly new to VB so I don't know all the trick yet. My problem: I'm writing a program that fetches file and directory information from a given drive/location and stores information in an array for further processing. During this procedure the application sometimes … Software Development asp visual-basic | |
Hey there, i am trying to write an online application using the cgi module. what i want to do is have an html form display a drop-down list and have the values of that list be the lines of text written in a file. this would be updated almost every … | |
I am new to pragramming and also Python. I was reading the intro and basics for beginners in the sticky of this forum and tired it out. It was cool and all but after saving the files, I click F5 to run it and i get the error message : … Software Development python | |
![]() | HI! I am new to programming (*although i know some html*) and I was wondering if someone could tell me what is wrong with my C++ area calculator? Thanks! [CODE]#include <iostream> using namespace std; int main (int argc, char **argv) { int height; int width; int area = height*width; cout … Software Development c++ ![]() |
With the following line I get a syntex error relating to the ifstream file [code]if ifstream file(filename.c_str()).find string1 ++counter;[/code] I have already declared the input file and do not understand why there is an error. Sorry for seeming dumb but I am new to this!! Software Development c | |
I'm very new to to VB.net but have worked in vb6, I have recently tried to install vb.net standard edition. It installs fine with no errors but I am unable to make the content display in either msgboxes or listboxes. here is a sample of the code I am trying … | |
[code]Private Sub LoadList_Click() lstList.Clear CmDialog1.DialogTitle = "Load Your List" CmDialog1.InitDir = App.Path CmDialog1.flags = &H4 CmDialog1.Filter = "Lists (*.txt)|*.txt|All Files(*.*)|*.*" CmDialog1.ShowOpen Call xLoadList(CmDialog1.FileName, lstList) End Sub[/code] when i try to compile my program it says "argument not optional" and highlights "Call xLoadList". will someone help me with this? thanks Software Development visual-basic | |
I'm wondering if i can create a program that reads texts file. In the text file is c++ code ... could that be compiled in the running exe? So basically you'll have somehting like this in this first file: [php] #include <iostream> #include <fstream> using namespace std; int main() { … Software Development c++ | |
Hi can anyone tell me if i can write a string to a text file without it having the " Quotes at either side of the text "? I'm trying to input a line of text from a text file, change it and rewrite it. Example //(adt|dclk)\./ //ccas(\.clearchannel|_media/)/ would become … Software Development visual-basic | |
i have the following for my operator overload [code]fraction fraction::operator+(const fraction& object)const { fraction temp; temp.a = a*object.b + b*object.a; temp.b = b * object.b; return temp; } fraction fraction::operator-(const fraction& object) const { fraction temp; temp.a = a*object.b - b*object.a; temp.b = b * object.b; return temp; } fraction … | |
Hey there, i need some help with a simple cgi script. i cannot get it to write output to a file. here is the script. [CODE] #!/usr/bin/python import cgi form = cgi.FieldStorage() Customer = form['Customer'].value Field = form['Field'].value data = [Customer, Field] reshtml = """Content-Type: text/html\n <html> <head><title>Customer Data</title></head> <body> … Software Development python | |
My Program : [code]#include <iostream> #include <string> using namespace std; void Reverse(string &InputString); void CharSwap(char& First, char& Second); void main(void) { string InputString; cout << "Please enter the string to reverse ==> "; getline(cin, InputString); cout << endl << "You entered the (" << InputString.length() << ") char long string: … Software Development c++ | |
Hello I have not had much programming experience especially with VBS. I have been asked to write a script which checks what AD group a user is in and then runs a specific drive mappings for that group and user, also i need the script to check the date. This … Software Development vb.net | |
In my project I am using vb6 and Oracle as backend. I am using Combo box and Item data (Name as display and id in itemdata) Now I am faceing problem. The Master records has grown 10,000 records. When I populating records from recordset it needs more than 1 to … Software Development display oracle visual-basic | |
hi i am a student of computer science.i am learning the c programming language.we spend all our time writing programs which tells itself a secret like adding numbers,kid stuff etc. i want to know the real thing.can anyone tell me what are the real time applications of C.? Software Development c++ | |
Just got a quick question I know how to assign arrays using the DIM command, but I want to give the array a set of constant figures that will never change Under Delphi I would use the following when declaring the array at startup var myarray :array[0..8] of integer = … Software Development delphi visual-basic | |
Anyone knows what are percents... Some event has some chances to happen. From 0 to 100... if the percent is 0 it means zero chances to happen. 100 means it will happen every time. 50 statistically means it will happen half of times... But HOW can someone give x/100 chances … Software Development c++ | |
I have the following assignment due: Design a class -say, fraction - that performs the arithmetic and relational operations on fractions. Overload the arithmetic and relational operators so that the appropriate symbols can be used to perform the operation. Also, overload the stream insertion and stream extraction operators for easy … Software Development c++ | |
HEY EVERYONE THERE I WUD LIKE U TO TELL THT FUTURE IS "python" everythin is "python" atleast 4 those who hates writin in creepin c,c++ programmin languare which is error prone Software Development python | |
I am trying to search for files in Directories. like, i have 10 directories..... and consider directory 1, which has 2 files.. this is same with all the files... i want to get a string from each of these files from 10 directories... to be written to a seperate file, … Software Development c++ | |
I have this game skeleton. Now, as you can see, it is working, but when i choose something first time, i have to type it TWICE to make it work. It doesn't matter if i choose Status, Score, or Battle, or Flee, the result is the same: i have to … Software Development c++ | |
hi guys, i am stuck... we have to show wats in a file.... then at the end show the grand total of the Profits .. heres the report func.... [code]void report() { struct Prods ssg; double prof; FILE *f; f = fopen("data.dat","rb"); printf("\n\n\n==============================================================================\n"); printf("Prod# Type Description Qty Cost Price Profit\n"); … | |
I'm running into to this problem where the fstream is suppose to read data off a file to store in arrays. I cant continue with my project until the program reads it right. It is skipping some of the datas. Can I get a little help? Thanks in advance [CODE] … |
The End.