132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daniel88

Hi guys, Looking at this I know it is straightforward, but that hasn't meant that I have been able to get the solution - so here I am! I am entering serial numbers into a set container which is of type string. I want to be able to enter serial …

Software Development c++
Member Avatar for daniel88
0
106
Member Avatar for tinanewtonart

So for this assignment we have to inherit from the base class 'Game' I think I have with my version named 'ChildGame' I would like help with checking the syntax of my function calls from main() [CODE] /*************************************************************************************** Programmer: C.Backlund Program: TicTacToe_1.cpp Purpose: A tic tac toe game Date Created: …

Software Development c++ gaming
Member Avatar for tinanewtonart
0
1K
Member Avatar for chen12m

I have to finish this project for tomorrow-so I'll Appreciate quick reply. I need to do reports in my projects. now I've created Data Environment and all that but in the SQL the only thing that work is if I select the entire table from the database. (like "select * …

Software Development sql visual-basic
Member Avatar for chen12m
0
260
Member Avatar for gcardonav

Hi: I need to create a C++ code that will read a file and then used some of the numbers in the file for some calculations. The file will look like the following: [CODE]#IMAGE NPIX MEAN STDDEV MIN MAX 002.jpeg 1048576 1984. 490.1 1870. 65535. 003.jpeg 1048576 1984. 471. 1875. …

Software Development c++ file-system
Member Avatar for gcardonav
0
133
Member Avatar for oaktrees

Could someone point me in the right direction? I have two excel files that I would like to merge. Is xlwrt and xlrd the place to start? If so, are these part of the standard library? Thank you.

Software Development python
Member Avatar for jcao219
0
125
Member Avatar for maf5693

hi I have been looking around for a good file io tutorial and I cant find any. It is simple enough to me the process, mov dx,043h mov al,54 out dx,al etc. but i have no idea which ports go to where or how to write to a hard disk …

Software Development assembly
Member Avatar for maf5693
0
243
Member Avatar for funfullson

I found that in python we have no realy private attributes.we just can use _ or __.but these are not deny access to my attributes.some thing such as private variables in c++. Is it TRUE? Realy python is week in these?

Software Development python
Member Avatar for jcao219
0
266
Member Avatar for bazoka121

Hello to everyone. I am working on pattern matching. Problem is that I have match source codes weather they are copies or not (c++ source code only). take two .cpp files and match them. and result that if they are match or not.. Please help me. Thanks in Advance.

Software Development c++
Member Avatar for abhimanipal
0
118
Member Avatar for jl_7

I have difficulties solving this program, so I'll be very happy if someone h elps me. Thanks in advance! Find a way in a maze Write a program that finds way between two points in certain maze. The maze is rectangular matrix which consists of cells. Each cell is from …

Software Development c++
Member Avatar for murdokk
0
229
Member Avatar for new2programming

i am trying to code my sprites to collect items which then display a score in the top left of the screen depending on which items they collect, each sprite has their own item and there is an item which deducts score. However i am at a loss as to …

Software Development c++
Member Avatar for new2programming
0
60
Member Avatar for rowley4

I am getting a few errors on my code. I know my INT and CHAR are not correct. Just not sure where. I am trying to pull data from a file. The data is a day ( and integer 01, 02, 03) a time of day HH:MM, and a level …

Software Development algorithm c++ visual-studio
Member Avatar for daviddoria
0
126
Member Avatar for cl2020

I have a code, so far I have a problem: what is those mean? error C2143: syntax error : missing ')' before 'constant' line 65 error C2059: syntax error : ')' line 66 error C2143: syntax error : missing ';' before '{' line 67 error C2181: illegal else without matching …

Software Development c++
Member Avatar for NathanOliver
0
135
Member Avatar for HoldmysunnyD

Hello Daniweb, Could anyone please point me to an example implementation of a dynamic memory allocator that uses Segregated Fits with allocations from the front and insertions at the end? I've been trying to figure out a way to implement one, but I just don't know where to start.

Software Development c
Member Avatar for HoldmysunnyD
0
89
Member Avatar for gregarion

Hey guys, i am working with a program to basically read an input for a file and then storing it into a vector. my text file is called Sample.txt and contains data like this.. [CODE]How are you coping with programming? The quick brown fox jumps over me.[/CODE] Here are my …

Software Development c++ file-system
Member Avatar for NathanOliver
0
95
Member Avatar for useronbug

hi all, Am trying to create a structure with members ,creating an arraylist to get input from textbox so that it can bind in listbox. I am not geting the desired thind.Code attached . Kindly help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; …

Software Development data-structure
Member Avatar for Ionelul
0
160
Member Avatar for pythonnewbie10

[code=php]'''process a file of students''' def main(): f = open( "Ex9_2010_input.txt", "r") line = f.readline() while len(line) != 0: print line line = f.readline() main() [/code] In this case, the file contains comma separated values, each line representing student names and assessment marks in this format: FirstName, LastName, Asg1Mark, Asg2Mark, …

Software Development python
Member Avatar for TrustyTony
0
113
Member Avatar for ceyesuma

I am having trouble understanding how an interface could improve my app. I have a DAO class for each profile that logs into the app.this DAO class will know how to insert,delete,update,remove,etc concerning that profile and the database and populating components with database data . I introduced an Interface for …

Software Development java
Member Avatar for ceyesuma
0
115
Member Avatar for phummon

Hi folks, General question here... I'm writing a program which reads a ton of source data, crunches the numbers, and outputs a few nice summary reports. The source data is a lot of individual records: [B]00001,Item1,Item2,Item3,Item4,Item5,... 00002,Item1,Item2,Item3,Item4,Item5,... 00003,Item1,Item2,Item3,Item4,Item5,...[/B] Originally, I created an object called "Record," which stored each Item. But …

Software Development c++
Member Avatar for NathanOliver
0
185
Member Avatar for Empireryan

OK, I've got a [90][10] 2d array. I have a set of pointers that point to the values in the array by column. each column holds different info. It's a payroll file so the zero column of my array corresponds to an employee number. What I want to do is …

Software Development c++
Member Avatar for NathanOliver
0
104
Member Avatar for cl2020

I have a code present but why do I have three c2447 errors by line 31,43, and 62 ? What are the ways to prevent that code ever present in the c++ system? //This is the software access for the //lowest score test drop at any level //in the system …

Software Development c++
Member Avatar for NathanOliver
0
107
Member Avatar for bjoernh

Hi there, I started Python today. My first mini-project is supposed to find strings in a text-file. Here is what I have written: [CODE] infile = open("Python/es.txt","r") text = infile.read() infile.close() print text search = 'du' index = text.find(search) if index==-1: print "nothing found" else: search, "found at index", index …

Software Development python
Member Avatar for griswolf
0
543
Member Avatar for schaden

Hi, So essentially I want to read every string in a file, then read every character in that string, find out if the string has two periods somewhere in it, and then save that string somewhere. Can someone get me started in the right direction?

Software Development c
Member Avatar for Narue
0
94
Member Avatar for jaydot

hi just wanna ask is it possible for perl to get the value of a print command? for ex. my $result = print "hello world\n"; print "$result\n"; why is it that the "print $result" would print a value which is 1?.. is it possible to get the result "hello world" …

Software Development perl
Member Avatar for mitchems
0
245
Member Avatar for zachattack05

All parenting jokes aside, I have a general purpose status strip on my parent form that contains a progress bar and a few labels. Occasionally a child form will execute a command that could be tracked on the status bar so my users don't think that the program is hanging... …

Software Development
Member Avatar for zachattack05
0
85
Member Avatar for MaxDes

Hello again, I am trying to replace a string which is actually different from line to line in a text file. I want to end up with a filename but without the path. For example: My text file contains: C:\test\testingmore\filename.mpg C:\test\testfiles1\testfile4.mpg W:\testinglocation\testingmore\testfiles9.mpg I would like to replace the path in …

Software Development regex vb.net
Member Avatar for MaxDes
0
163
Member Avatar for Alex_

this is what i'm doing.. [code=c++]cout << "Value:" << endl; cin>>it; //it is int cout<<1; for (pos = v->begin(); pos != v->end(); pos++) { // pos is an iterator and v is a vector<int> if (*pos < it) { v2->push_back(*pos); cout << *pos << endl; } } cout<<2;[/code] This is …

Software Development c++
Member Avatar for Alex_
0
1K
Member Avatar for mugilan

Hi friends, I am new to c++, just find this example from the book, but when i try to run in my visual studio,its gives problem. there is no error in the codes, it compile well, and in main screen ask the user to input the selection that they want, …

Software Development c c# c++ visual-studio
Member Avatar for mugilan
0
150
Member Avatar for Lass

Hello everybody, I'm working in a java interface and I'm trying to use an image as a background but nothing from the result I found in the internet seems to work well with me :/ my code is: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.awt.Color; public class …

Software Development image java java-swing
Member Avatar for Lass
0
91
Member Avatar for gisek

Hi, I need something like a combination of a TabControl and a Panel. Such a tool is used in many applications, but I think the best example is a simple installation file. During installing process you have to complete a set of stages. (You go to the next one clicking …

Software Development
Member Avatar for sknake
0
101
Member Avatar for james85

hi i would like u to tell me if i can make a random function to choose between four numbers and only them(-1 , 1 , -10 ,10)

Software Development c
Member Avatar for nbaztec
0
110
Member Avatar for lewashby

I'M using Ubuntu and I'M running python 3. I'M trying to find a pygame download for Ubuntu and python 3. I went to pygame.org and followed the Ubuntu link. I eventually found one link for pygame 1.9, which I'M told works for pythan 3. There were two files, amd64 & …

Software Development python software-architecture ubuntu
Member Avatar for griswolf
0
350
Member Avatar for idlackage

I've got a NullPointerException at line 50 (and the init on line 12). Can't figure out why. [CODE]private String gradientText[] = { "Gradient State", "Gradient Cols" }; private String lineText[] = { "Line Width", "Dash State", "Dash Length" }; private String shapeText[] = { "Shape Type", "Fill State" }; // …

Software Development java
Member Avatar for idlackage
0
113
Member Avatar for r3drock3t88

Hey all, Is it possible in C# to make it so that when a program is run, your program opens up with it? For example, say I went to double click the "Firefox" icon, would it be possible to have my program also open up with it? Basically what I …

Software Development seo
Member Avatar for r3drock3t88
0
201
Member Avatar for atsuko

Hi there, I am new to python. Can somebody tell me how can I count a given word from a file. I found lots of solution for counting all the words in a file, but not for some particular ones. Thanks in advance

Software Development python
Member Avatar for TrustyTony
0
706
Member Avatar for kesh1000

hi guys can somebody tell me a short method of initialing some thing like this. [CODE] public static final int[][] CITYARRAY = new int[][] { {0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7},{0, 8}, {0, 9}, {0, 10}, {0, 11}, {0, 12}, …

Software Development java
Member Avatar for adrianniebla
0
161
Member Avatar for Roiti

Hello I am kind of a new programmer in python and I tryed to do a port scanner. I have a problem here but I can gigure it out' when I try to compile it it just gets stuck :S Here is the code [CODE] import socket as sk import …

Software Development python
Member Avatar for The_Kernel
0
248
Member Avatar for JStarr

Hello all, I'm trying to do this homework assignment but I keep getting an error when it compiles. The problem it has is in the startlotto function but I can't find it. It says that I have 2 errors: "error C2143: syntax error : missing ')' before ';'. "error C2059: …

Software Development c++
Member Avatar for JStarr
0
115
Member Avatar for MrDiaz

Hi everyone, I'm trying to accomplish the following; I need to create 2 subprocesses and each subprocess should create a process of their own. Should look like this: [QUOTE]I'm child xxxx parent xxxx I'm the subchild xxxx parent xxxx I'm the second child xxxx parent xxxx I'm the second subchild …

Software Development c
Member Avatar for MrDiaz
0
107
Member Avatar for ssmg

Hi, I was just wondering if there was any way to export the code I've written in Visual Studio to MS Word, by preserving all formatting. Since copy-paste doesn't keep the formatting, I need a way to transfer my original code to Word while keeping the formatting. And, yes, it …

Software Development c++ visual-studio
Member Avatar for nbaztec
0
366
Member Avatar for ITgirl2010

I need to create an application that utilizes your Order class to implement a simple Order tracking system. To do this your system must be able to deal with a number of orders. Your application should have the following capabilities: 1. Create a new order 2. Update an existing order. …

Software Development python
Member Avatar for sneekula
0
102
Member Avatar for carrythe1

Hello, Please disregard any small syntax errors I have made in this question, I’m trying to simplify a program that is many pages long. I have a program that has 2 parts, main.cpp and a form GUI.h. Both have functions that pass variables between themselves and I don't want to …

Software Development algorithm c c# c++ gui
Member Avatar for nbaztec
0
2K
Member Avatar for linuxoidoz

Hi, How can I convert a 64-bit unicode string into a text string? I'm converting ASCII characters for example like this [CODE]str = unichr(int('00A9', 16))[/CODE] But how can I convert unicode 'U2082' or any other character beyong the ASCII range? Thank you.

Software Development python
Member Avatar for Gribouillis
0
202
Member Avatar for d4n1x

Hello I have little problem with my code. Problem is iterator inner. How can i solve this? My code [code] map <string, map <string, string> > m; map <string, map <string, string> >::iterator outer; map <string, string>::iterator inner; m["John"]["VW"]="Golf"; inner=m.find("VW"); if(inner != m.end()) {cout<<inner->second<<endl;} [/code] Best Regards Danijel

Software Development c++
Member Avatar for d4n1x
0
114
Member Avatar for adrianniebla

I have three classes one which is class User contains information about users name, last area code etc.... and it must implement Comparable but receiving generic parameters. Another one is a custom doubleLinkedList which basically has a link to the right and one to the left and contains a generic …

Software Development api java
Member Avatar for JamesCherrill
0
209
Member Avatar for pythonnewbie10

The Question below has been given to me: An internet shop requires an order tracking system. When someone buys an item online, an Order is created. However, orders are not sourced and processed until payment has been confirmed. Once the order has been processed it can be shipped. The order …

Software Development python
Member Avatar for snippsat
0
299
Member Avatar for bghodsi

Hi folks: Can anyone tell me what I am doing wrong in the coding below: [code] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try Dim ConnectionString As String = "Server=hp;database=library;integrated security=SSPI" MessageBox.Show("Connection established") Dim sql As String = "SELECT snippetID, snippetName, snippetSource, snippetCode FROM snippet …

Software Development dataset open-source sql vb.net
Member Avatar for meffe
0
97
Member Avatar for Nerathas

Greetings, I have a array filled up with random value's (being positive and negative). What i wanne do is have a recursive version that counts -only- counts the postive values in that array. Recu version that counts all the elements (that works but is not quite yet what i seek) …

Software Development c c# c++
Member Avatar for apegram
0
113
Member Avatar for frispee

Hi I am trying to write a code to draw a sphere centered within a cube using openGL. Yesterday I had written it in such a way that the values of the side length of cube and dia of sphere are give in the code itself.That worked perfectly. Now I …

Software Development c++ opengl
Member Avatar for daviddoria
0
159
Member Avatar for farhanafzal

Write a C program to find and print the product of factorial of numbers from N to M. Can anyone please give me an idea, how to solve this Question ? Thank you.

Software Development c
Member Avatar for nbaztec
0
232
Member Avatar for goumang

hi.. im goumang .. i have a database call test with fields, std name,roll number,mark,state and category(st,sc,gen). and i want to select a students from this database, based on roll number with a criteria of some cut off mark...pls help me!! i create a FORM with a text field to …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
88

The End.