132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for froggy1976

I scrapped the other code about the student because it didn't make any sense. I was actually modeling it after another program I did last semester that was a Plasma gun program. Anyway I started over with the same requirements but new program. I am having similar issues with this …

Software Development c++
Member Avatar for jonsca
0
88
Member Avatar for bharatk

I have opened an image using the PhotoImage method of ImageTk How do I close the image. This is the scenario is I am using it in. I have 2 buttons, one each to open an image from disk & image from url. When I open either of them the …

Software Development image python
Member Avatar for bharatk
0
1K
Member Avatar for tudorH

Hi guys I'm new to c++/openGL (used java a lot more) and have run into an issue while trying to write a program using an array. I have declared the array as GLfloat in the header file and then initialized it with a bunch of values in the constructor of …

Software Development c++ opengl
Member Avatar for vmanes
0
172
Member Avatar for Hawkeye Python

I've read the documentation, but I still can't creat my own packages. How should the __init__.py look like? Cause i've tried to let it blank and some stuff like [CODE] my_package/ __init.py__ sub_pack/ __init.py__ test.py [/CODE] but it pointed syntax error If I don't write anything on it, no error …

Software Development python
Member Avatar for Ene Uran
0
96
Member Avatar for Kevin_160

Hi guys, I have a txt file in which each line contains information in following format: VELOCITY<100.0> LAT_1<N 00 00.0000> LON_1<E 000 00.0000> SIMULATE<false> I would like to write a C or C++ programm to select only the values of the words I need. I need those values to do …

Software Development c++
Member Avatar for Kevin_160
0
89
Member Avatar for blerina12

Hello guys. I am working on the code below. I am trying to create my own shell. The code compiles without errors, but when I execute it though it doesn't output anything. I have tried it with /bin/ls as input and it doesn't work. Any suggestions? [code=c]#include <stdio.h> #include <stdlib.h> …

Software Development c
Member Avatar for blerina12
0
1K
Member Avatar for wolfkrug

I am writing a game program for a dice game. You want to get 100 points. You roll until you decide to hold, and the sum of your rolls is added to your total score. If you roll a 1 though, your turn is over and you get 0 points …

Software Development c++
Member Avatar for tetron
0
164
Member Avatar for JustSuds

I couldn't see a more appropriate place to make this thread, and I can only think of ambiguous terms to google, like "Output Error Windows Visual Studio". The issue is, when I build my project (I'm using Visual Studio 2010, but I always had the same issue with VS2008), the …

Software Development c++ visual-studio
Member Avatar for JustSuds
0
137
Member Avatar for kfancy

import random class Card: def __init__(self, suit, rank): self.rank = rank self.suit = suit if self.rank == 1: self.rank = "Ace" self.value = 11 elif self.rank == 11: self.rank = "Jack" self.value = 10 elif self.rank == 12: self.rank = "Queen" self.value = 10 elif self.rank == 13: self.rank = …

Software Development python
Member Avatar for redyugi
0
178
Member Avatar for txwooley

How would I execute a command and have it's output returned as a list or string? For example (in Linux): [CODE]os.system("iwconfig")[/CODE] prints a list of wireless devices to stdout. How can I make Python see those results as a list or string so I can search for certain devices (like …

Software Development python
Member Avatar for txwooley
0
110
Member Avatar for lewashby

I want to run my programs in a traditional Dos based screen as opposed to the new text page that it's running in now. Does anyone know how I can do that? Thanks.

Software Development ide
Member Avatar for jonsca
0
543
Member Avatar for Suicidal_tool

Appretiate some coursework help related to classes. All im trying to do is compare the elements of two objects [code] if(asteroid1.getxx == asteroid2.getxx && asteroid1.getyy == asteroid2.getyy) { cout<<endl; cout<<"Collision"<<endl; } [/code] All i want to be able to do, is to compare the x and y co-ordinates of my …

Software Development c++
Member Avatar for Suicidal_tool
0
97
Member Avatar for horseygal

Hi, can anyone look at this and see why it doesn't work? When I test and enter a numeric value in the text box it still gives the error I have placed in the code, same if I put in a letter etc. Thanks!! :) [CODE]Private Sub valueDouble(ByVal sender As …

Software Development vb.net
Member Avatar for horseygal
0
140
Member Avatar for Stefano Mtangoo

Hi, I have used a lot of makefiles to compile programs. The issue is, I don't know how to produce make file. Is it another "language" I have to learn or some automatic issue? Also what is short yet clea tutorial on that? Thanks

Software Development c++
Member Avatar for jonsca
0
98
Member Avatar for Jiwe

Hello everybody, I'm trying to get the user name using GetUserName() API function, it was sucessful in the console project however in the Visual C++ project it gives me this error: [CODE] 1>MyProgram.obj : error LNK2028: unresolved token (0A00000F) "extern "C" int __stdcall GetUserNameA(char *,unsigned long *)" (?GetUserNameA@@$$J18YGHPADPAK@Z) referenced in …

Software Development api c++
Member Avatar for Jiwe
0
3K
Member Avatar for jeffmt1234

I have a alpha beta tree program i'm supposed to do. I can't figure out how to do a multi node tree! I've been trying all day at this.. Here is my code so far. #include <iostream> #include <cstdlib> #include <vector> using namespace std; typedef struct tree TREE_DATA; struct tree …

Software Development c++
Member Avatar for jeffmt1234
0
406
Member Avatar for stryker4526

So I'm working on a quiz game application, and one of the things I have to do is use StreamReader to read questions from a text file of the format [quote]Question Answer1 ###Answer 2 (correct answer denoted by ###) Answer3 Answer4 Question2 Answer1 Answer2 ###Answer3 Answer4[/quote] and so on. I …

Software Development
Member Avatar for jonsca
0
111
Member Avatar for sleepybug

hey!i was tryinn to write this complex number addition and i dunno where this garbage value it is pickin from :-/.... m gettin mad over this because first time such a simple program has got me all over :icon_mad:.... so here's the code: # include <iostream> using namespace std; # …

Software Development c++
Member Avatar for jonsca
0
108
Member Avatar for nocloud

I am having a most mysterious problem which I have been unable to solve after repeated attempts. Perhaps somebody here will be smart enough to figure out what is going on. I am attempting to read a file of this format 19700326.15 71.37 71.50 70.00 70.50 217600 0.89 19700330.15 70.50 …

Software Development c++ file-system
Member Avatar for Frederick2
0
592
Member Avatar for rehber344

hi this is the corotuıne example writen in def [CODE]namelst=['Charles Darwin (1809-82)', "Darwin's principal works, The Origin of Species (1859)", 'and The Descent of Man (1871) marked a new epoch in our', 'understanding of our world and ourselves. His ideas', "were shaped by the Beagle's voyage around the world in", …

Software Development python
Member Avatar for vegaseat
0
117
Member Avatar for AnnetteM

Has anyone used this code to calculate quantiles? The code defines the function 'quantile'. If one runs the code and names the script file 'quanitle.py' and puts it in the same directory as another code file calling the function, why is the function not accessed???? Here's the copy-and-paste script for …

Software Development python wordpress
Member Avatar for AnnetteM
0
274
Member Avatar for Kevin_160

Hi guys, I have a txt file in which each line contains information in following format: VELOCITY<100.0> LAT_1<N 00 00.0000> LON_1<E 000 00.0000> SIMULATE<false> I would like to write a C or C++ programm to select only the values of the words I need. I need those values to do …

Software Development c
Member Avatar for WaltP
0
94
Member Avatar for invisi

I love this programme :P [CODE]#include <iostream> #include <string> using namespace std; char lowerCase(char input0 = 0); char upperCase(char input1 = 0); int main() { char character = 0; while(true) { cout << "Enter a Character to change case: "; cin >> character; cout << endl; if(character > 64 && …

Software Development c++
Member Avatar for WaltP
0
126
Member Avatar for laelzio.mosca

I started my java class not long ago. I`m just creating a class car, and I`m not sure how to call a function with a return type in main, can anybody help me. this is what I have: [CODE]class TestCar { public static void main(String[] args) { Car myCar = …

Software Development java
Member Avatar for kvass
0
119
Member Avatar for daveoffy

I have been trying to check Internet connection but all ways I have tried have failed. Some example code would be great, or the package to use. Thanks very much.

Software Development c
Member Avatar for Narue
0
84
Member Avatar for juman2010

i have a problem with c++ programming can anybody help

Software Development c++
Member Avatar for NathanOliver
0
330
Member Avatar for rlogan1

Hi, does any of you have any idea why the self.status variable is not rewritten? When I run the script below, although it connects to the ip and port mentioned, and receives a message, the self.status is still "down" the otuput is : 192.168.0.1 down it should be: 192.168.0.1 'message …

Software Development debian python
Member Avatar for rlogan1
0
97
Member Avatar for akamini

Yet another date time related sql statement i need help with, oh how I loathe them. I need to find the records between now and a week ahead. I have this so far [CODE] Dim con As New OleDb.OleDbConnection Dim OleDBCon As System.Data.OleDb.OleDbConnection Dim ds As New DataSet Dim da …

Software Development dataset open-source sql vb.net
Member Avatar for akamini
0
133
Member Avatar for Kruptein

I really don't see what is wrong =(. First I download via curl a file, then I want to compare it to a local file there are 15 lines in dwnext.ded and there are 14 lines in extlib.ded I want to store in append those lines that have a string …

Software Development os-x python
Member Avatar for Kruptein
0
176
Member Avatar for JCel

Hi there, I'm a newbie .. The task is to parse the given CSV file . CSV file (Student marks list ) which has 5 columns seperated by Comma delimiter : and the data structure is : - class details (class name,section) only one class details CSV - student details …

Software Development data-structure
Member Avatar for ddanbe
0
126
Member Avatar for Raged

Hey all I'm having loads of problems trying to update my database with a dataset, I have been looking around forums and posts and trying all sorts of work around's, as far as I can assume, I will need to manually create (insert, update) function querys (even though as far …

Software Development dataset open-source vb.net
Member Avatar for Raged
0
195
Member Avatar for marzzz21

can anyone post a tutorial or a link to tutorial where it would help me understand ado codes for connecting to my database . . . i'm really a newbie about ado codes. . . i haven't even tried to code using it yet . . . i just heard …

Software Development visual-basic
Member Avatar for marzzz21
0
94
Member Avatar for dre-logics

I Use visual Basic 8.0 and Mysql 5.0 I have one Table1: [COLOR="Red"]Table1[/COLOR]: RecordID , Integer = primary key auto_increment NOT NULL Articlenr , Integer Articlename, Char(20) Table1: has two records: RecordID, Articlenr ,Articlename 1 , 1000, Hamer 2 , 2000, saw I want to use Datagridview to update Mysql …

Software Development dataset mysql vb.net visual-basic
Member Avatar for dre-logics
0
3K
Member Avatar for atqamar

Hello, I have an Excel file with 40,000 rows of data. I would like to create a program in which reads the first column of the 40,000 lines and allows me to choose which row to edit. After selecting the row to edit, I'd like a form to come up …

Software Development python
Member Avatar for Stefano Mtangoo
0
158
Member Avatar for burkeyb

Please, I have tried everything that I can learn from a book...any help with this problem is greatly appreciated. I've spent days writing and modifying and I am just lost now. Is there anybody that can help me solve this question using C language? You are developing a database of …

Software Development c data-structure
Member Avatar for jonsca
0
314
Member Avatar for geek_till_itMHZ

I have to write a Functional Specification for a Java File Dump Utility. I am unfamiliar with both of these terms, this project is due next week and Im just trying toget an idea of what I'm doing. I would love input from anyone who has created a Functional Specification …

Software Development java
Member Avatar for verruckt24
0
86
Member Avatar for blondie.simon

Hello I have an array of 50 text strings, is there any way that i can easily link each item in the array to a different text box on the screen? and then to have the text boxes auto update if the array changes? Thanks Simon

Software Development vb.net
Member Avatar for matt.clark.228
0
92
Member Avatar for johndoe444

Hi, I am required to first read a number, n and then n lines of string. The strings can contain leading spaces which has to be preserved: 2 " hello world" ... using [CODE]scanf("%d", &n); for (int i = 0;i < n;i++) { scanf(" [^\n]", message); .... printf("Case #%d: %d\n",case_count, …

Software Development c
Member Avatar for Salem
0
256
Member Avatar for MatthewSedam

This is a Brain Tester that I made. [CODE] #include <iostream> #include <ctime> using namespace std; int main() { for (int a=0,b=1;a!=b;) { cout << "This is a Brain Tester Program Made By Matthew Sedam.\n"; cout << "Select An Option.\n" << "1 - Multiplication\n2 - Division\n"; int select; cin >> …

Software Development c++
Member Avatar for mrnutty
0
188
Member Avatar for jawaad17

hi can anyone tell me how string ends in C# does it have a null in the end or any other way and if there is null character at the end of string then which function or how to get the index of that null?

Software Development c#
Member Avatar for ddanbe
0
58
Member Avatar for Stefano Mtangoo

Is this possible? Any tutorial if possible? I want to make a program to do mass conversion of my Icons without loosing resolution

Software Development python
Member Avatar for Stefano Mtangoo
0
850
Member Avatar for mswezey

Hello this is for my assignment for college. I just need help on how to properly declare ofstream/ifstream globally to get my program to work the proper way. Yes I know I can just declare it in Main() and use pass by reference. ( Did that on the first project …

Software Development c++
Member Avatar for mswezey
0
3K
Member Avatar for Masterace

need a code to display date & time on the form so that when form is print i get to see the day & time events took place

Software Development visual-basic
Member Avatar for vb5prgrmr
0
73
Member Avatar for bbabarajj

How to add 1/1+ 1/2+1/3...+1/9+1/10 . I tried but I am getting answer in negative number.

Software Development c c# c++
Member Avatar for bbabarajj
0
2K
Member Avatar for rmrgrs

All might gurus of that which I don't understand- I am a student and I am asking for some homework help (sorry, I am really stuck). I am getting a "C4430: missing type specifier - int assumed. Note: C++ does not support default-int" error, and for the life of me, …

Software Development c++ ios
Member Avatar for rmrgrs
0
84
Member Avatar for lamoracke

i need a c programme that reads a txt that you chosse then count the number of each word in the programme i have e.g. "hello this word is very funny this is not" hello 1 this 2 word 1 is 2 very 1 funny 1 not 1 i would …

Software Development c
Member Avatar for holocron
0
94
Member Avatar for froggy1976

I am creating a program with at least two classes, a base class and a derived class and that includes the following: a composite object an example of inheritance at least one virtual and at least one pure virtual function at least one overloaded function at least one example of …

Software Development c++
Member Avatar for jonsca
0
150
Member Avatar for rahulmpatki

[B]Please tell me How can i get HDD serial number in VB[/B]

Software Development visual-basic
Member Avatar for abu taher
0
2K
Member Avatar for mikabark

I hope to copy from container to another container. But it is not easy. gdb said I'm trying to copy const string to string. --------------------------------------------------------------------------------- 0x00007ffff7b760f3 in std::string::assign(std::string const&) () from /usr/lib/libstdc++.so.6 --------------------------------------------------------------------------------- I don't know how to copy from container to container one by one. WiIl you help me? …

Software Development c++
Member Avatar for mikabark
0
151
Member Avatar for horseygal

Hi everyone, I am working on a window that will calculate an average grade from 3 grades typed in by user then display it's appropriate grade letter. This is what I have so far and well it isn't working. Can anyone point me into the right direction as to what …

Software Development visual-basic
Member Avatar for SCBWV
0
110

The End.