64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for AstralCorpse

Hey guys, I'm new to Python and programming in general, and I've come across a problem that I can't quite figure out in my experimentation with the random module. So, basically, I want the following code to ask the user to input a word, and then randomly print a single …

Member Avatar for mn_kthompson
0
135
Member Avatar for Frederick2

Have you ever had a problem where you are completely dumbfounded? Staring at the output of a program and saying this is impossible? Sort of like… int a =5; printf(“a=%d\n”,a); Output: A=6 Well, I’d appreciate if someone would take a look at this simple program below which creates a class …

Member Avatar for ArkM
0
217
Member Avatar for bill2

Hello everyone, I`m new in this forum , and I`m an absolute beginer in C++ language. Therefor i already have some major problems in my learning. My compiler is giving me odd errors eventhough the codes are typed in corectly , exactly as in the book. Here are some of …

Member Avatar for bill2
0
189
Member Avatar for pink bunny

:?: I got from the book: Write a piece of visual basic code to process the responses of twenty students who were asked to rate, on a scale from 1 to 10, the quality of the food in the cafeteria. A response of 1 denotes ‘dreadful’ and 10 denotes ‘excellent’. …

Member Avatar for toko
0
268
Member Avatar for skalber

Hello, I have a class with template argument, MyClass. Next I initiate 3 copies of that templeate class with different types : [code] MyClass<char> mc1; MyClass<int> mc2; MyClass<float> mc3; [/code] Is it possible in c++ to make a general pointer array with each element as reference to differenet initiated class? …

Member Avatar for ArkM
0
139
Member Avatar for rude04

can anybody help me with my program tutorial?? my program is like a software tutorial for math,science,physics etc.. it starts with it starts with displaying a pdf file and after that displays 10 questions about the lesson.. the problem is after the first question is answered i need to click …

Member Avatar for rude04
0
528
Member Avatar for randomFIRE

Hi, How can I have a JOptionPane that has multiple fields for entering text. Does anyone know if this is possible, if so could you please give me an example of how to do this? Thanks

Member Avatar for puneetkay
0
112
Member Avatar for Michigan_Guy

I'm working on text-based role playing game that uses a GUI for some of the functionality. After a bit of a learning curve I've got the GUI done and am in the process of figuring out how to implement some of the other features. One thing I have run into …

Member Avatar for sneekula
0
100
Member Avatar for srs_grp
Member Avatar for ademsaykin

Dear All Although my tutor said that it takes 25 minus, I have been trying to understand for more than a week that how to do my task. I have done something as you said before in terms of "putting at least some efforts". Please see the codes below and …

Member Avatar for ademsaykin
0
299
Member Avatar for shaikh_mshariq

I need to write a small application which can be used to store html from any web server. I have written some code that is able to fetch HTML page along with header. I need to know is there any way to distinguish these headers from actual html content. Can …

Member Avatar for Salem
0
1K
Member Avatar for SerogaM

how can i choose in one ComboBox one choice and get a list in a ListBox specific to this choice. Sergey

Member Avatar for Ramy Mahrous
0
139
Member Avatar for serkan sendur

i try to develop a make file and i got this error : Dependency line needs colon or double colon operator. my makefile is in this state yet: [CODE]Books.o: Books.cpp include/author.h include/Booksh.h include/library.h xlC -c SourceFiles/Books.cpp -l vista -L/sbx/asc/slib -I/user/serkans/myprog/BookLibraryTrial/include -I/sbx/asc/vista libMan : main.cpp cmnlib/libfoo.a xlC main.cpp cmnlib/libfoo.a -l vista …

Member Avatar for daviddoria
0
1K
Member Avatar for 3210

Hi, I am new to JS. Long time passed trying to understand JS basics and functions...may be it's time for asking some help. Om my exam pages I have <iframe> and <img> to change pages in the iframe. I have links to other 5 pages that are opened in the …

Member Avatar for 3210
0
135
Member Avatar for sonia sardana

hey frnds, I m new to the ASP.net..Plz jelp me out. My windows is Installed in D: I made project & save it D:\Inetpub\wwwroot\WebSite1 Website1 is the folder I created & form name is aspx. [code] <%@ Page Language="VB" %> <html > <head> <title>Introduction</title> </head> <body> <% Response.Write("My First project")%> …

Member Avatar for Fungus1487
0
222
Member Avatar for shouvik.d

Hi All, I have a VB6 application which can work in UI as well as in CMD mode. Now when I am running it in CMD mode I need to write few line into the console after completion of the program before quitting the application. The rest of the application …

Member Avatar for shouvik.d
0
201
Member Avatar for Shanti C

Sorry for the simple question... But please i need help from you guys... How to import and export the database in oracle..iam have been using oracle 8i in my computer... im completely new to this environment... please help on this.. Thanks in advance... Shanti.

Member Avatar for alit2002
0
156
Member Avatar for thilinam

hi friends, I have designed a simple calculator using vb.net I want to execute click event of button which labeled as "1", when I press key "1" on keyboard. please help me.

Member Avatar for gurshan
-1
161
Member Avatar for suley04

here is my code so far: [CODE] #include <stdio.h> #include <string.h> struct sale { int week; int units; int price; char name[30]; }; int main(int argc, char *argv[]) { int week = 0; int units = 0; int price = 0; char name[30]; int count = 13; int i = …

Member Avatar for ajay.krish123
0
728
Member Avatar for crioto

For example, i have char variable = "This is a simple text"; and i need to put word "Very" between "a" and "simple" How to do it using standart C library?

Member Avatar for ajay.krish123
0
87
Member Avatar for Kezoor

Hello everyone, I have been through the Starting Python thread, and I have archived lots of stuff for further learning ! But there is one little thing for which there is no specific explanation, and looking at Google doesn't help me much. Why do the classes of many scripts are …

Member Avatar for Kezoor
0
130
Member Avatar for Darkmystery

Hello, I need to decode certain packets which I need to split first. They are splitted using '@@@' (in this example I only use one '@'). I'm having this code now: (It's basic C code for a NDS platform) [CODE="C"]char buf2[256] = "test1@test2@test3@"; char packets[30][256]; int main(int argc, char ** …

Member Avatar for Darkmystery
0
156
Member Avatar for mawst

Hello all, Wondering if someone can direct me to a regex component and some code that I can use to strip out certain links from an HTML file (loading in a StringList). Example: <a href="../foo/23134.htm">bar</a> The result I'm after is: bar I only want to strip the link here, but …

Member Avatar for mawst
0
140
Member Avatar for scrypt3r

Hello, i Recently Tried to copy a simple txt File To my Pc From My apps resources, But i get errors ect, Is this even possible? i was using [CODE] System.IO.File.Copy(svchost.Properties.Resources.Textfile, @"C:\", true); [/CODE]

Member Avatar for ddanbe
0
147
Member Avatar for Lukezzz

I use this code to open a FileDialog, choose a file and press OK. It works fine, but when I press OK in the fileDialog, the FileDialog doesn´t close after pressing OK the first time. The dialog blinks one time and are still open. The second time I press OK, …

Member Avatar for Lukezzz
0
128
Member Avatar for scrypt3r
Member Avatar for LizR
0
92
Member Avatar for serkan sendur

i got one root folder containing my main.cpp and four folders named cmnlib(for static library), include(for headers), sourcefiles(.cpp), dbdes(mydatabase). i want to create a make file and it will first create object files from the .cpp files into sourcefiles folder and then it will create a libLibrary.a to cmnlib folder …

Member Avatar for serkan sendur
0
104
Member Avatar for squarkman

Good morning. I would like to replace line 178 with a statement which would simply open a new url and close out the page that calls the new url. Can this be done with one line of code? Thanks sin advance. [code=syntax] <?php if(isset($_POST["Submit"])) { require("c:\php\includes\class.phpmailer.php"); $mail = new PHPMailer(); …

Member Avatar for buddylee17
0
198
Member Avatar for joewazen

hi all, can you help me find a way to start a new internet explorer window in a new process? for the moment i am using window.open in javascript but its using the same process no matter how many windows i open while what i need is one process for …

Member Avatar for ~s.o.s~
0
79
Member Avatar for k2k

i have done a read() and a write()... after running write() the read() won't read the newly wrote data until i compile again. my guess is that the newly written data doesn't get saved until i compile again.. please if anyone knows how to make it saved so the read() …

Member Avatar for puneetkay
0
316
Member Avatar for Yuichi

Hi guys, I pretty new to c++ and I have a problem with getline. I am supposed to call in a text file into a 2d character array and the text file is a maze. Here is my code: [ICODE] void maze::open() { ifstream file; int row=0; file.open("standard.txt"); while (!file.eof()) …

Member Avatar for Yuichi
0
181
Member Avatar for Creator07

Hello, I am having problem with fgets accepting string from the keyboard. I have this statement : [ICODE]fgets(T , sizeof(T) , stdin);[/ICODE] in the code, but this thing is not accepting anything. I mean I have 2 strings to accept where I used fgets for the first, and then scanf …

Member Avatar for Creator07
0
185
Member Avatar for _KD_

Hai everybody!I'm trying to implement a program to implement Quine McCluskey algoritm.While trying to compile with the following code,I got an error which says " no match for 'operator[]' in '((Table*)this)->Table::isMarked[r]' " . Attached are the files: Table.h,Table.cpp,Term.h,Term.cpp Please help!!!

Member Avatar for _KD_
0
133
Member Avatar for gsingh2011

Ok, I just learned the basics of Python yesterday, and because of other programming knowledge, I picked it up pretty fast. So then I decided to try out pygame, and I installed it directly to my Python26 directory. But none of the example code I paste from any website doesn't …

Member Avatar for Stefano Mtangoo
0
558
Member Avatar for ryan311

how can i call a 1 command button in another form? for example i have form1 in the form 1 i have listbox, in my listbox i have item Customer, Product and etc if i double click my Customer i want to click my command 1 button in form 2 …

Member Avatar for ryan311
0
111
Member Avatar for Aneesh_Argent

Hi experts, I am writing a window application in C# which requires to format user selected hard drive programatically. Any help or suggestions please?

Member Avatar for jbennet
0
179
Member Avatar for llemes4011

Hi, I'm on Christmas Break and am bored out of my mind so i decided that i wanted to write a program that generates a SOLVED Sudoku board, i.e., it has all the numbers filled in. I'm going to write a program later to turn it into an unsolved puzzle. …

Member Avatar for llemes4011
0
183
Member Avatar for jt_murphree

I am attempting to write assembly code for linux using nasm. I have an include file containing io functions that was originally written for windows using masm and I am trying to convert it. I have on procedure that I am having problems with. The procedure is supposed to recieve …

Member Avatar for jt_murphree
0
1K
Member Avatar for khr2003

Hello I am trying to add a poll function to a forum. the adding forum has radio buttons which asks the user whether he wants to add a poll or not. If he chooses yes the questions and the answers will be added to the database. I have included five …

Member Avatar for khr2003
0
77
Member Avatar for Dinomike1000

I'm writing an application with Directx 9. Where I start the application in full screen mode, the image fills to fullscreen and then immediately reverts into a regular window. There aren't any problems when I run the application in windowed mode from the start. I was wondering if anyone has …

Member Avatar for Freaky_Chris
0
176
Member Avatar for peg110

Ok, Here is my issue. I have written a script that takes Weblog files that have been GZipped. Parses them outputs the required data to another file. GZipps that file and leaves the original in tact (Actually it unzips it, then rezips it). Anyway, it runs just fine on my …

Member Avatar for KevinADC
0
207
Member Avatar for RabbitruN

Hi, I need some enlightenment with copying arrays in JAVA from some of ya seasoned lots. I have this 2d array , twoDarray[10][6] and another 1d array oneDarray[1,2,3,4,5,6]. I'd like to copy the 1d array into the 4th row of the 2d array.Suggestion please. Thnx in advance.

Member Avatar for RabbitruN
0
322
Member Avatar for ddanbe

I like to write a screen capture utility. Plan : have a master control form, let it make a second transparant form on wich a selection rect can be drawn, copy the screen under the rectangle to a Bitmap with Grapics.CopyFromScreen. Here is the essential code I have so far: …

Member Avatar for ddanbe
0
94
Member Avatar for bondo

Hey everyone. I am working on adding a 'search' field to a page and I'm using ajax to update the content of the page. When someone types a letter into the search box, the page content updates based on what they type. I have this all working as far as …

Member Avatar for bondo
0
276
Member Avatar for knrakesh

Hello Friends, This is Knr i require calender function, when we click on calender image the calender of this month has to be display and we have to select the date iam placing the image please please friends i have to get the things like that Thanks in advance

Member Avatar for Shanti C
0
114
Member Avatar for tedobg

Hi guys.I am new to web development and of course I have been experiensing some problems.Most of them are easy to solve and I usually find my way, but there is some thing that is getting on my nerves for some time now. I have been trying to make a …

Member Avatar for ashafaaiz
0
251
Member Avatar for k2k

Member is class consisted of member informaiton such as firstname, lastname, phone etc. would anyone please point out what this function gave me NullPointerException runtime error? I think I initialized everything. thanks [code] public static void read(Member box[], int count) { Scanner reader = null; try { reader = new …

Member Avatar for ~s.o.s~
0
71
Member Avatar for elvenstruggle

Hello, I'm new to Python and I'm using Pydev. I'm having a problem: I have several classes and several variables outside the classes. I want to change a variable outside the classes from within a class: e.g. [code]# Class [B]class name_change(object): [COLOR="Green"]"""Change a text variable outside this class"""[/COLOR] def name_change(self): …

Member Avatar for elvenstruggle
0
117
Member Avatar for Icebone1000

Hi, Im trying to write to specific points in a file, but the write() erases everything in the document..heres what im doing: the file: [CODE] mode 0 ; level 0 ; menu 1 ; [/CODE] the code: [CODE=C++] ofstream data_w_fil; data_w_fil.open("data.gsp"); data_w_fil.seekp(7); data_w_fil.write(mode, 1); data_w_fil.seekp(18); data_w_fil.write(level,1); data_w_fil.seekp(28); data_w_fil.write(menu, 1); [/CODE] …

Member Avatar for Icebone1000
0
107
Member Avatar for declan12

hey every1! iv never posted on this site before but have view the site and have benifitted from the help given here. hope some1 can help me with this prob! Ok, i have 2 files, 1 which i want 2 contain arrays of words, and the other to contain the …

Member Avatar for Salem
0
769

The End.