132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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 … | |
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 … | |
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 | |
![]() | 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++ ![]() |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 … | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
![]() | 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 |
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++ | |
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 | |
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 | |
| |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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# | |
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 | |
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++ | |
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 | |
How to add 1/1+ 1/2+1/3...+1/9+1/10 . I tried but I am getting answer in negative number. | |
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, … | |
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++ | |
[B]Please tell me How can i get HDD serial number in VB[/B] Software Development visual-basic | |
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++ | |
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 |
The End.