64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for C++ Beginner

Problem: Write a pgoramthat uses a structure to store the following information: Name, IdNum, Test1Score through Test4Score, average, and grade. function to ask the user for student's name, etc. The average score should be calculated and stored in the Average member of the structure should be calculated in their own …

Member Avatar for C++ Beginner
0
374
Member Avatar for Aiyen

Hello all, great forum that have been a great source of information for me over the past many weeks. So now I decided to join up. I am currently trying to write a partial sum function as part of a much larger program I once wrote in Fortran. I am …

Member Avatar for Aiyen
0
94
Member Avatar for cebubismac

I have a Samsung Ellix 20 Thermal Parallel Printer. Can you please send me some programming sample commands using VB6? Please help me. Thank you.

Member Avatar for vb5prgrmr
0
193
Member Avatar for SpyrosMet

Dev cpp gives me the error 18 C:\Dev-Cpp\Untitled1.cpp request for member `setStats' in `plant1', which is of non-class type `Plants ()()' And the same for line 19. Please someone tell me what's wrong. I'm a noob at c++. Thanks in advance. #include <iostream> using std::cout; using std::cin; using std::endl; #include …

Member Avatar for SpyrosMet
0
359
Member Avatar for jemz

hello please help me on this how to make the first letter of each word in uppercase.hoping for your positive responds...thanks in advance

Member Avatar for jemz
0
102
Member Avatar for xavier666

[B]Here is the sample program[/B] [CODE]# include <stdio.h> # include <stdlib.h> // COMPILER : GNU GCC COMPILER // EDITOR : CODE::BLOCKS 8.02 struct test { int data; struct test *link; }; void change(struct test *ptr); int main() { struct test *fresh = (struct test *)malloc(sizeof(struct test)); int some_data = 10; …

Member Avatar for xavier666
0
145
Member Avatar for hket89

How to generate a pair of random number from 1 to 8 that can fill into a 2D array in a 4x4 square? For example: 2 3 5 6 1 7 8 3 5 4 1 6 7 2 4 8

Member Avatar for hket89
0
257
Member Avatar for hket89

How to generate a pair of random number from 1 to 8 that can fill into a 2D array in a 4x4 square? For example: 2 3 5 6 1 7 8 3 5 4 1 6 7 2 4 8

Member Avatar for hket89
0
134
Member Avatar for Austinjs0102

Alright i need some help, been stuck on a basic task. I input 2 strings. I need to be able to have it compare the two strings to see which one is shorter, then count how short the item is and out put the number. ex. Word 1 Hello word …

Member Avatar for BestJewSinceJC
0
84
Member Avatar for babydol

Hi i m trying to create two drop down list boxes where the second drop downl list box is populated based on the selection of the first one.I have searching the net for days and even the scripts i downloaded don't seem to be working..Can anyone help me plz.....Its urgent...I …

Member Avatar for Larry_b
0
174
Member Avatar for a1eio

Hi, I was wondering how someone would go about making a scrolling ticker or marquee using Tkinter in such a way that allows you to easily add on text and remove.. kinda like a news scroller on the bottom of the tv? thanks all a1eio

Member Avatar for donnie6680
0
1K
Member Avatar for phpDave

Hi, I am trying to validate email address's on my registration form. Everything works great except for checkdnsrr function. I was wondering can anyone help with this. I never used checkdnsrr before. Here is the code I'm using: //set flag that sais pwd is OK $pwdOK = true; //trim whitespace …

Member Avatar for phpDave
0
335
Member Avatar for Christoph928

I need help with decrypting a 12 character message located in a file named encrypted.txt then printing the decrypted message to the screen and a new file named decrypted.txt. This is what i have so far... and don't understand how to print the char to the screen as a letter …

Member Avatar for Christoph928
0
149
Member Avatar for JRM

I am going start a project that will create a pop-up window with a list of part numbers, prices , etc form another site. The listings will be selectable and then stored in our site database. I have never done anything like this before, so I would like to know …

Member Avatar for JRM
0
80
Member Avatar for kenth21v

please help me, give me a step by step procedure how to connect VB 6.0 and sql anywhere9..

Member Avatar for vb5prgrmr
0
271
Member Avatar for ROTC89

ok so i am new to c# and i am trying to write a program that asked the user for input on what item they want to buy, the price for the item and to show the input of the price after sales tax.i am having trouble getting the price …

Member Avatar for apegram
0
252
Member Avatar for deorcar

im just trying to draw a 2D square but its not working and i dont know y? main.cpp [CODE]#include "sdl.h" #include "GL_Functions.h" int SDL_main(int argc, char* argv[]) { //Used in the main loop bool Done = false; //Used to store SDL events SDL_Event event; //Lets open the window and initialise …

0
63
Member Avatar for DdoubleD

Hello friends! I've been playing around with the MS Chart class type (System.Windows.Forms.DataVisualization.Charting) and have a situation where I would like to know how to code a query of my data using LINQ. The data I'm playing with is the PowerBall drawings data that is updated each drawing: [URL="http://www.powerball.com/powerball/winnums-text.txt"]http://www.powerball.com/powerball/winnums-text.txt[/URL] I'm …

Member Avatar for apegram
0
185
Member Avatar for greeny_1984

hii every one, i have an application containing data list. datalist contains radio button as item template.i want only one radio button to be checked ie when the user clicks on one checkbox the other checkboxes should be unchecked.i have used groupname ,but no use .can any one give the …

Member Avatar for tamannashah
0
195
Member Avatar for ravikiran32

How can i retrieve data information displayed on the hyperterminal or is there any way to redirect the information being displayed on hyperterminal to a file?

Member Avatar for ravikiran32
0
111
Member Avatar for stjohn999

this is my daughters homework she asked me to help and now im stuck she has worked it out and is making me look stupid need to get my selfrespect back even if i have to cheat(i used my brain and im asking you) the code is as follows but …

Member Avatar for WaltP
-1
80
Member Avatar for PinoyDev

good day guys.! I just want to know on how to save to a .rtf(rich text format) file the content of the rich text box created in vb6 with pictures & text. I also want to retrieve the content of the .rtf file being created and display it again in …

Member Avatar for PinoyDev
0
220
Member Avatar for hermann87

Greetings from Greece, this is my first post! I'm having some minor trouble with an application I've been working on the past week. So if you could please shed some light into this. Thank you. The problem I'm having is that when the user is trying to save a file …

Member Avatar for mitrmkar
1
507
Member Avatar for Skeen

So I've got this program I made, and I wanted to speed it up, using multithreading, to make use of my quad core. The program itself fully supports multithreading. The problem is, that when I'm running the program, using just one; CreateThread() it finishes in 6seconds, if I run 2 …

Member Avatar for ireshagun
0
107
Member Avatar for diafol

Hi all. Bit of a problem - hope somebody can help. I am trying to return lists sorted alphabetically in my native language - Welsh. The alphabet: a,b,c,ch,d,dd,e,f,ff,g,ng,h,i,j,l,ll,m,n,o,p,ph,r,rh,s,t,th,u,w,y (29 letters) Note that there are 'double characters' - these are considered as single discrete letters. Roman letters (k,q,v,x,z) can be added …

Member Avatar for diafol
0
167
Member Avatar for bharatk

Hello I have a .py file. I am creating a .bat file which when clicked runs the python script & saves the output as a text file in the same directory. I gave this inside the batch file [CODE]%CD%\App1.py > %CD%\op.txt [/CODE] but I am not able to see the …

Member Avatar for bharatk
0
245
Member Avatar for Stefano Mtangoo

I already Know Ancient Dragon is fan of MSVS due to its debugging features and I use C::B because it is the only I have come to love after failing to love both VS Express and Codelite. So what do you love to use when it come to C/C++? Just …

Member Avatar for VilePlecenta
0
232
Member Avatar for txwooley

I wrote a script (kind of a learning thing) to open .rar archived files using unrar (non-free) in Linux. Now I want to add a section where my script will check to see if unrar is installed. To complicate matters, Linux also has a package 'unrar-free', and both use the …

Member Avatar for txwooley
0
128
Member Avatar for chrisname

Hi :) I'm writing a basic 2 stage bootloader (I actually do plan for it to work, it's not just a hello world loader) and I've migrated to nasm. I find it much easier to use, etc. etc. Anyway; I'm using the times directive to get the program to 512 …

Member Avatar for chrisname
0
2K
Member Avatar for cwarn23

Hi and I have been working on an image uploader but need to be able to convert tiff files using php. From my understanding there is the gd library which doesn't support tiff files and the [URL="http://au.php.net/manual/en/function.exif-thumbnail.php"]exif library[/URL]. Does anybody know how I can convert a tiff file to a …

Member Avatar for cwarn23
0
814
Member Avatar for JAM1011

Hi, I really need line with this I can't figure this out . I am looping through items in a list view box, I am then adding them to a string. I need each new line in the listview box to be a new line in the string. I will …

Member Avatar for JAM1011
0
109
Member Avatar for deorcar

ok i have to make a matrix class for a math library and im now Very lost with what im ment to do or how to do it the code i have so far is: [CODE] #include <iostream> #include <math.h> #include "Vector2.h" class Matrix { private: float data[3][3]; public: Matrix() …

Member Avatar for smarty_t2
0
98
Member Avatar for khevz09

this is the code ..but it is not displaying the first and the last number that came from the user. anyone can help me with this small problem?? [code] #include <iostream.h> #include <conio.h> main() { int f,l,f1,l1; clrscr(); cout<<"Enter the First digit:"; cin>>f; cout<<"Enter the Last digit:"; cin>>l; f1=f; l1=l; …

Member Avatar for dusktreader
-1
108
Member Avatar for nunos

Hi. I am complete beginner in databases, so please bear with me stupid questions. I am just doing for fun a simple exercise. A faculty have students and each student have different subjects. My question is, how to store the different subjects in the db? I could make up some …

Member Avatar for apegram
0
158
Member Avatar for doha786

hi, i have a TextField in myGUI where some data(results) are shown after calculation. I have a 'save' button to save this result into a particular txt file.. i almost done without error....but inside my txt file it shows this kind of things: [QUOTE]ava.awt.datatransfer.StringSelection@157f0dc [/QUOTE] Please anybody help me to …

Member Avatar for BestJewSinceJC
0
200
Member Avatar for epicasian

Hello, I am trying to have all my body text for a news website I am building, inside a MySQL DB, and when I echo it out in PHP, it shows symbols like � instead of ". Can anyone help me? Thank you, EpicAsian P.S. I've tried the ASCII, ARMSCII8, …

Member Avatar for epicasian
0
134
Member Avatar for Brick

I have a database column defined as int that contains a negative number representing a date in mmddyy format (without the leading zero) so -10209 = 01/02/2009 -122508 = 12/25/2008 How can I convert the data to a datetime so I can compare it to another date in a where …

Member Avatar for Brick
0
155
Member Avatar for panagos

i have 2 tables: category, location. i create the tables: [CODE]create database tourist; grant all on tourist.* to dbuser; use tourist; create table category(id integer NOT NULL AUTO_INCREMENT,season varchar(20),num_summer integer,num_winter integer,PRIMARY KEY(id)); create table location(code integer NOT NULL AUTO_INCREMENT,town varchar(20),hotel varchar(20),price integer,star integer,media varchar(70),PRIMARY KEY(code)); [/CODE] i want now to …

Member Avatar for panagos
0
135
Member Avatar for garyinspringhil

python def question def spinBox_Changed(self, a0, b0=785, c0=300): self.LCDNumber10.display((b0-c0)/a0) this works great if I manually have b0 and c0 values there but I need to get these variables from a slider value and spinbox valve respectively. The slider is self.slider5_2.value tried lots of combos like .value display Value etc. The …

Member Avatar for woooee
0
154
Member Avatar for nomemory

Hello, regarding OOP I have Java background, and I usually think in java when I code OOP in python (which sometimes is actually a bad thing). [CODE=python]#!/usr/bin/python class Card(): SUIT = { 'C':'Clubs', 'D':'Diamonds', 'H':'Hearts', 'S':'Spades' } VALUES = { '2':2, '3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, \ '10':10, …

Member Avatar for nomemory
0
400
Member Avatar for mmasny

Hello everybody, I'm new here. I'm new to C++ as well and have many problems that you might find silly. One of them is this code, not willing to compile: [code=C++] #include<iostream> class Okno; class ListaOkienEl; class ListaOkien{ ListaOkienEl* pocz; public: ListaOkien(); ~ListaOkien(); void DodajPocz(ListaOkienEl&); void UsunPocz(); ListaOkienEl* WezPocz(); }; …

Member Avatar for mitrmkar
0
102
Member Avatar for axa121

[code] from string import * def removePunctuation(sentence): sentence = lower(sentence) new_sentence = "" for char in sentence: if char not in punctuation: new_sentence = new_sentence + char return new_sentence def wordFrequences(sentence): wordCounts = {} split_sentence = new_sentence.split() print split_sentence for entry in split_sentence: for word in entry: wordCounts[entry] = wordCounts.get …

Member Avatar for woooee
0
3K
Member Avatar for Ap0ca1ypse

Hello everybody, This must be so simple but I cannot find it anywhere. I want to split a form into two section by a line. Example TopData ______________________________________________ BottomData I cannot find the functionality anywhere and it is really bugging me. Any help will be much appreciated Thanks

Member Avatar for Ap0ca1ypse
0
72
Member Avatar for wwsoft

hello can I keep track of objects in a list and being able to sort them by there z var ? do I use pointers ? how would I do this ? [code] #include <vector> vector<sometype> _objects_; create_object(object_type) { new object_type myobject; _objects_.push_back(myobject); return _objects_.at(list_end); } remove_object(int pos) { delete …

Member Avatar for wwsoft
0
107
Member Avatar for sswati.sri

hi, I got exception"NoClassDefFoundException" at the runtime of this java code.My DSN connection is correct,sql server is also properly work,when my project excuted on tomcat.but my beans are not executed properly inly becoz of this connection error.plz give the solution to overcome this problem. [B]In my project i create connection …

Member Avatar for sswati.sri
0
245
Member Avatar for itsbrad212

I am making a twitter client in python and wxpython. As of now, my static text is not printing. How can I change this code so it will print out what I want it to? [CODE]import wx import twitter class main(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id, "Twitter Client", size=(700,400)) panel=wx.Panel(self) menubar = …

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for wilsonz91

Hi, My friend have a problem with running c++. She's using windows vista home basic. She's able to install C++ and run it but when she tries to launch any program she wrote, it pops out saying that it has a compatibility issue with this version of windows. Any ideas …

Member Avatar for Ancient Dragon
0
168
Member Avatar for Stefano Mtangoo

I was sitting Idle and I decided to write simple image viewer to try myself on DC/Canvas but I didn't find any tutorial to guide me as I have never done that before. Here there are some restriction and I cannot view showme do. So anyone to help me with …

Member Avatar for Stefano Mtangoo
0
136
Member Avatar for jemz

hello please help me where i am going to download the installer vb6...so that i can practice more at my house..hoping for your positive responds...thanks in advance

Member Avatar for vb5prgrmr
0
148
Member Avatar for tqmd1

I have followin codes [CODE]Dim dt As DataTable Dim str As New SqlClient.SqlCommand("select code,name from employees", con) da = New SqlClient.SqlDataAdapter(str) dt = New DataTable da.Fill(dt) dt.Columns.Add("city") Dim cmd As New SqlClient.SqlCommand("UPDATE dt SET city=(SELECT top 1 city FROM master WHERE master.code=dt.code)", con) cmd.ExecuteNonQuery() [/CODE] it says [COLOR="Red"]Invalid object name …

Member Avatar for tqmd1
0
123

The End.