43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for KimJack

Hi, This is a very simple question. Is it possible to print a one dimensional array into the shape of a grid? For example if I have the follow array: chars arrayofChars[] = {'A', 'B', 'C', 'D', 'E'...}; how can it be printed out as A B C D E …

Software Development java
Member Avatar for anupam_smart
0
167
Member Avatar for frankycool

Please I want to build a program in scripting that will start a timer from 60 seconds and decrement every second.There should be an input where the user should be able to enter the secret password to dis-activate the timer-bomb.If the user fails to enter the correct password 3 times …

Software Development shell-scripting
Member Avatar for frankycool
-1
219
Member Avatar for mhangman

Hi im trying to write a game. Its very early stage but i hit to an error so need your help. Here the code: [CODE]def gexp(): connection = sqlite.connect('test.db') memoryConnection = sqlite.connect(':memory:') cursor = connection.cursor() cursor.execute('SELECT * FROM gain') expget = cursor.fetchone() exp = expget[1] texp = expget[1] + mexp …

Software Development python sqlite
Member Avatar for mhangman
-1
101
Member Avatar for taphofyle

I am new to this and maybe I'm missing the boat. I want to learn how to write a program that accepts data and adds it to a file, I also want to be able to sort that data, edit that data etc. This seems like the most basic thing …

Software Development c++ file-system
Member Avatar for Frederick2
-1
174
Member Avatar for BeyondTheEye

I've created a class, Category. [CODE=cpp]#ifndef CATEGORY_H_INCLUDED #define CATEGORY_H_INCLUDED #include <string> using std::string; enum Type {Integer, Double, Bool, String, Date, Time}; class Category { public: Category() : itsType(String) {} Category(Type type) : itsType(type) {} Category(string name) : itsName(name) {} Category(Type type, string name) : itsName(name), itsType(type) {} ~Category() {} void …

Software Development c++
Member Avatar for mrnutty
0
98
Member Avatar for blamp

I have finished all the functions except one. I need help with writing a boolean function to determine if the magic square is a magic square. I don't completely understand boolean functions so any help would be appreciated. Thank you[code]#include<iostream> using namespace std; #include<fstream> //load the array void load2D(int &n, …

Software Development c++
Member Avatar for blamp
-2
143
Member Avatar for neverlander

I am trying to display a gif file on pyqt.It shows but doesnt animate.It is static.How can make it animate? This is the code i used: [CODE]pic=QtGui.QPixmap("./IRREGULAR/"+ui.lineEdit.text()+".gif") ui.label_9.setPixmap(pic)[/CODE]

Software Development python
Member Avatar for vegaseat
-1
5K
Member Avatar for tomtetlaw

Would this do any damage if I left it running for a while: [code=c++] int main(){ while(1) new char[0]; } [/code]

Software Development c++
Member Avatar for VernonDozier
0
146
Member Avatar for snakay

Hi, I like to add DisplayMember and ValueMember to combobox when Loading forms. Then with combobox_SelectedIndexChanged event select the DisplayMember but assign ValueMember to a textbox field. I can add and assign the DisplayMember, but I cannot do it with ValueMember. in Designer.cs part at initiation; [code] this.cmbViziteType.Items.AddRange(new object[] { …

Software Development
Member Avatar for snakay
-1
757
Member Avatar for MichelleCrews

hey, ima first time programmer and i no clue whats going on someone please help!! i have to write a function called number_of_2s that includes one parameter, N, where N is a positive integer that is no more than 10 digits long. the function should return the number of times …

Software Development python
Member Avatar for MichelleCrews
-1
105
Member Avatar for ihatehippies

What is the consensus on the best way reference module level variables? I have a wx app that has grown too large, so I started to do some housekeeping. I'm trying to move several functions outside of the main module while still being able to reference the main variables.. The …

Software Development python
Member Avatar for Gribouillis
-1
121
Member Avatar for apostlos_

I am trying not to delete internet shortcuts using c# the code is like this [CODE]static void Main(string[] args) { string path = @"C:\KOINA_ARXEIA"; string[] folders; folders = System.IO.Directory.GetDirectories(path, "*", System.IO.SearchOption.AllDirectories); foreach (string folder in folders) { Console.WriteLine("Getting files for Directory:{0}\n", folder); string[] files = System.IO.Directory.GetFiles(folder); foreach (string file in …

Software Development
Member Avatar for DdoubleD
-1
127
Member Avatar for Jayno4

hi i need to write a logon code for delphi 7 that logs on to someone and then if they get the password wrong 3 time they get locked out. i am completely stuck i have a log on code written but i don't know where to go after that. …

Software Development delphi pascal
Member Avatar for FlamingClaw
-1
216
Member Avatar for marygreen

Hello guys and girls. Any idea how to find containing numbers of one specific number. For example number 10: 10 = 9+1 10 = 8+2 10 = 7+3 … … I tried to do something like ‘random(10)’ but got nowhere with that. Cheers to all, marygreen

Software Development pascal
Member Avatar for marygreen
-1
116
Member Avatar for MillStrike

Hi! I'm going crazy about this problem. Here's the setup: On my mainform I have a menustrip from where I can open a new form (form2) with different controls like checkboxes etc. After I've modified these controls I close or hide that form and continue using the mainform. Now here's …

Software Development
Member Avatar for DdoubleD
-1
147
Member Avatar for RunTimeError

I want to thank the helpful posts. I'm now having a new problem. I have created 100 picture boxes at run time and I am giving each a dynamic name (pictureBox_1, pictureBox_2, etc). I want to be able to change the background image of the picture box of my choosing …

Software Development
Member Avatar for ddanbe
-1
467
Member Avatar for avirag

Hi i am making a window application in which i want to know that when my application is start, so it should automatically get focus on textBox, how can i do that......... Kindly help me in this...............?

Software Development
Member Avatar for avirag
0
176
Member Avatar for keicola

I'm trying to read a file which contains: Dante Beatrice 3 5 and put them into an array. Then I will assign the values of each member of the array to static variables. when i run the main class of my project, it throws a NullPointerException starting from the line …

Software Development java
Member Avatar for keicola
0
241
Member Avatar for nated

So im just trying to understand a simple program in C++ but i keep getting an error when trying to compile this code. The error is [Linker error] undefined reference to `Player::getHeight()' . So i have my main code in one file called Main.cpp: [CODE]#include "Player.h" int main() { Player …

Software Development c++
Member Avatar for sfuo
0
138
Member Avatar for coolheadedguy

I am currently working on my final year project and i researching into building an Information system with SQL as database and ASP.Net as an interface? I just want to know if VB6 has the capabilities of been used as a tool to develop an Information system, integrating SQL and …

Software Development asp.net encryption vb.net visual-basic
Member Avatar for kvprajapati
-1
101
Member Avatar for rhoit

01 Why i am not able to do this [CODE]int* px; px = new int[2][2]; [/CODE] other the [ICODE]px = new int[2*2];[/ICODE] is there any other method 02 Why i am not able do access through pointer dx by [ICODE]dx[1][2][/ICODE] other than by using [ICODE]dx[1*7+2][/ICODE] [CODE=cpp] static float mat[5][7] = …

Software Development c++
Member Avatar for Sky Diploma
0
136
Member Avatar for atch

Hi, I'm trying to implement my own allocator using malloc and free. One thing what interests me is that in declaration of deallocate in addition to pointer we have also parameter size which suppose to be size of elements allocated with allocate but having implemented my deallocate as this: [code=c++] …

Software Development c++ motherboards-cpu-ram
Member Avatar for atch
0
93
Member Avatar for stoymigo

Hi , I recently read this on another forum... [Quote] C/C++ are still standards for writing fast, standalone software, so you'll be wanting to work your way there. [/Quote] If I want to develop an application that has many "if statements" and many "loops" , that executes only on the …

Software Development c# c++
Member Avatar for stoymigo
0
168
Member Avatar for murid

is it possible to run vb program without installing vb ??? if it possible, how it work ??? thanks...

Software Development vb.net
Member Avatar for jbennet
-1
73
Member Avatar for emilio

is there a way to convert a java.util.Date to format dd/mm/yyyy HH:mm:ss ?

Software Development java
Member Avatar for emilio
0
91
Member Avatar for benkyma

I know that this is well-covered ground, but for some reason I have been unable to get this database connection working. This is my first project using .net systems instead of PHP/MySQL so I'm not quite sure how things are working. I've spent the morning trying different connection strings and …

Software Development open-source
Member Avatar for benkyma
-1
106
Member Avatar for jasonehoss

What I would like to do is to check the size of an archive directory in each of our users folders accessible via a Windows machine. I have a txt file with all of the users names (1 per line) and am trying to use for loops and potentially readline …

Software Development python
Member Avatar for jasonehoss
-1
99
Member Avatar for Baillie11

Hi all I am creating an app that utilises and MS Access back end and queries it quite a bit at various times. What I would like to do is bring in an entire table and then query the row(s) i want as I need them. This is what I …

Member Avatar for TomW
-1
138
Member Avatar for itslucky

Hi Dear Friends...!!! I am developing a Attendance System in C# using MS Access Database. I want to Count the totall P and A in the Attendance Column... now Dear Friends Please tell me any Query or logic to do the above work...!!! ***P for Present*** ***A for Absent ***

Software Development c#
Member Avatar for itslucky
-1
521
Member Avatar for yorro
Member Avatar for TomW
-2
6K
Member Avatar for jrosh

I added a bachground color to a jpanel using [B]panel.setBackGround(Color.GRAY);[/B] I want to add some color like "[B]light blue[/B]." which do not have in the color list. how can I do. (2) how to add backgroud picture to jpanel???? (tried using [B]setBackGround[/B] but failed!!!) thankx in advance....

Software Development java
Member Avatar for moggz
0
478
Member Avatar for yorro
Member Avatar for EvilLinux

Hello again, I hopefully have a quick and simple question. I'm working with 5 forms to that will be holding data over them and then have the ability to add, delete, edit the data for each person entered into the form (student wise). So far I've managed to create 2 …

Software Development
Member Avatar for Geekitygeek
-1
165
Member Avatar for Ishbir

Okay, so, I've got this code- [CODE=C#] List<Post> list = new List<Post>(); foreach(XElement post in posts) { var postType = post.Descendants(); var type = (string)post.Attribute("type"); Post item; if (type == "regular") { item = new RegularPost(); item.title = (string)postType.ElementAt(0); item.body = (string)postType.ElementAt(1); } if (type == "quote") { item = …

Software Development assembly
Member Avatar for Geekitygeek
-1
138
Member Avatar for facadie

Hi how can i write a program to compare data entered and data stored? when we click ok. they will detect whether information store is the same. Just an example login. but mine is asp.net i'm just using normal window application. previously i use this is to store my password. …

Software Development asp.net open-source
Member Avatar for facadie
-1
129
Member Avatar for vileoxidation

Thanks to the help I recieved earlier, I figured out how to make my other header file and my other .cpp file!! So thank you for that. I am now trying to compile all of my files together, and am getting quite a few linker errors, even though the functions …

Software Development c++
Member Avatar for vileoxidation
0
222
Member Avatar for lukerobi

lets say i have a list: L = [1,2,3,4,5,6,7,8,9] x could be anything, but it wont ever be longer than len(L) - 1.. just for what im asking, im setting it to 3 x = 3 value could also be anything, but not exceeding sum(L) value = 8 What i …

Software Development python
Member Avatar for lukerobi
-1
85
Member Avatar for vileoxidation

Hello, and thank you for taking the time to help me! This is my first real program in C++, and I am still getting used to the differences between C and C++, so I still really don't know what I'm doing. I am working on a header file and its …

Software Development c++
Member Avatar for Grn Xtrm
0
190
Member Avatar for kingofkya

Ok my script takes a list of files picks out all jpgs and stores it in files[] now the problem is how do I display all thous images in tk gui window below is what i have that works for 1 image how do i make this work for basically …

Software Development gui image python
Member Avatar for kingofkya
0
2K
Member Avatar for KimJack

Hello, I am working on a plain old simple text version of a memory game. The player will be able to match letters of the alphabet by clicking on various numbers. For example This is what the player will see: 123 456 789 but underneath that will be something like: …

Software Development java
Member Avatar for KimJack
0
177
Member Avatar for leverin4

I have a noobish question. If you have a nested try-catch block and an exception is thrown in the inner catch block, will the outer catch block catch it? Example: [code=java] try { // All this code is random. It doesn't int x = 5; // have anything to do …

Software Development java
Member Avatar for leverin4
0
67
Member Avatar for hmortensen

Hi all, Here is the problem; I’m trying to make two threads draw pixels in two different memory spaces at the same time. Nothing fancy, just a test program to learn about thread programming. I allocate the memory, send the address as parameters to the two threads, and in each …

Software Development c++
Member Avatar for hmortensen
0
177
Member Avatar for Geekitygeek

Im working on a project and i'm stuck on the best route to take in designing a feature. Rather than go into detail about the actual project i'll use a simple example since the concepts are the same :) I have a panel on a form, the panel contains 100 …

Software Development
Member Avatar for sknake
0
119
Member Avatar for Mark198995

im lost making a code that runs this. it has to include "while" command but im having difficulty with the counter vs the name =/ can someone help [COLOR="Green"] Enter your friend’s name(stop to quit):john Enter your friend’s name(stop to quit):megan Enter your friend’s name(stop to quit):stop Congratulations you have …

Software Development c++
Member Avatar for Kashaku
0
96
Member Avatar for willywonka

I have to write a program for my assignment that does a quote. It has to have a void function that validates a string and and integer entered. Other wise I would have solved the problem with a simple menu and integers. The entries has to be one of five …

Software Development c++
Member Avatar for Vani3863
0
175
Member Avatar for redpython

I have a text file (tackles.txt) that contains basic stats on high school football players - so far it is just last name and number of tackles. For example: Jones 2.3 Smith 4.6 Dillon 7.8 How can I read that file and come up with the average number of tackles …

Software Development python
Member Avatar for redpython
0
191
Member Avatar for navinkumar

When we run a program and if the program is having a error...then we a popup message saying that there is a error in ur program.... The error message has a option of "Dont Show this message next time" I have enabled the Dont show me error message next time. …

Software Development vb.net
Member Avatar for navinkumar
0
109
Member Avatar for Todd88

I am writing a project with two classes: 1 factory class and 1 "fragment" class. The factory class creates fragments from a given input file. For example, if there was a file that was 100 bytes in size, the factory class would create 10 fragments of 10 bytes each. The …

Software Development python
Member Avatar for vegaseat
0
127
Member Avatar for =OTS=G-Man

Hello, I am witting some software to interact with a mail order manager. Issue is they use a strange date/time format that they store as text in the DB, from what i guessed its YYYYMMDDHHMMSSNNN right now im using this function to get it into C# as a standard date. …

Software Development
Member Avatar for Geekitygeek
0
359
Member Avatar for benkyma

I'm trying to connect to the twitter streaming api. At the moment I'm just trying to grab the incoming data stream, keep the connection open and write the data to the console. I can do this easily from a terminal using curl. The following code however runs, throws no errors, …

Software Development api json open-source
Member Avatar for VinayRok
0
930

The End.