132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Doogledude123

I'm making a map editor for my game and I'm at the point where I need to save the map to a file. My Maps contain multiple layers though, which will be stacked on eachother for display. I know I could save each file seperately but I wanted these to …

Software Development file-system java
Member Avatar for ~s.o.s~
0
327
Member Avatar for can-mohan

Hi guys, I would like to discuss my design with one query. below is the code snippet. It is clear from below code snippet that class pd is privately derived from AbstractClass as both are different classes and there is no relation between them.Now in my class pd i need …

Software Development c++ oop
Member Avatar for can-mohan
0
428
Member Avatar for daniel1977

Greetings: I have been struggling to clear this error I have in my code, but I cannot for the life of me find it. Error: End of File detected before Left Brace Attached is my code, appreciate any help. #include <stdio.h> #define SIZE 20 int i, j; int temp[SIZE], pressure[SIZE]; …

Software Development c++
Member Avatar for NathanOliver
0
207
Member Avatar for Brown_2

what is programming

Software Development c c# c++
0
96
Member Avatar for DS9596

How do I write a program to compute run-time of a recursive and non-recursive functions to find the 43rd Fibonacci number?

Software Development c++
Member Avatar for Schol-R-LEA
0
289
Member Avatar for hightechka

i am new in VB.net (about 3 weeks now) and i am using visual studio 2008 to make a reservation and billing program project. i want to change the background color of the row having the entry which time (Day Swimming 8am-5pm, night swimming 4pm-11pm and overnight swimming 9pm-11pm) will …

Software Development dataset listview vb.net visual-studio
Member Avatar for hightechka
0
437
Member Avatar for Tycellent

Hey everyone, Got 2 questions here that i'm hoping will be answered. Say i have 2 variables int iValue; int iValueArray[300]; and later on init. them in the constructor Banana::Banana(): ival(0), ivalArray() {} 1. What would the ivalArray() indicate? Would it be the same as initializing every element to null/empty? …

Software Development c++ oop
Member Avatar for Tycellent
0
335
Member Avatar for DS9596

I'm not sure if I'm doing this part correctly, the part where I have to make it all lower case then to all upper case, then just first name. #include <iostream> #include <cstring> #include <stdio.h> using namespace std; int main() { char a[3][14] = { "Barack ", "H", " Obama" …

Software Development c++
Member Avatar for DS9596
0
1K
Member Avatar for Jazmine_1

Hey everyone! So I need to write two header files and they attach to the main cpp file, but we can not change the cpp file. They have to attach and make the program run. Please help! Main cpp CANNOT be changed! //22 34 56 4 19 2 89 90 …

Software Development c++ linked-list
Member Avatar for Schol-R-LEA
0
248
Member Avatar for joshuawilson11

Hi,so I am supposed to encrypt a text file chosen by a user at the moment I have completed most of it (offset factor/shift), I have got each separate character from the text file and put it into a list and converted it into ASCII, I am wondering how you …

Software Development apple encryption python
Member Avatar for joshuawilson11
0
510
Member Avatar for whatthebobo

So I recently started taking this class and i never learned assembly language so writing the program was very difficult. I have this project to do and this is part one. The instructions are: Part 1 Implement the following C++ code fragment in assembly language. Use the block-structured .IF and …

Software Development assembly
Member Avatar for whatthebobo
0
842
Member Avatar for nitin1

Why can we virtual destructors but can't have virtual constructors? I have searched like anything. I got confused a lot after reading few articles on web. Please explain with some good example. Thanks in advance.

Software Development c++
Member Avatar for serpi90
0
141
Member Avatar for Quast

[Click Here](http://www.imageupload.co.uk/images/2015/03/15/rtb.png) what i want is that when i write any thing on the richtextbox it appear on cell Text. I have found some codes on the internet but i don't know whats wrong: for (int i = 0; i < richTextBox1.Lines.Length; i++) { ListViewItem lvi = new ListViewItem(i.ToString()); lvi.SubItems.Add(richTextBox1.Lines[i]); …

Software Development listview
Member Avatar for Quast
0
299
Member Avatar for Kenneth_3

I have just finished a merge and sort code for two seperate files. My two inputs are: File 1 Adams C Benton A Jones D Haley A King B Margaret F File 2 Barnes A Charles B Johnson C William D and it keeps doing this for my out put …

Software Development c++
Member Avatar for Kenneth_3
0
379
Member Avatar for kayleigh0411

I am trying to implement a test program to describe what this function does: int mystery( const char *s1, const char *s2 ) { for( ; *s1 != '\0' && *s2 != '\0'; s1++, s2++ ) { if( *s1 != *s2 ) { return 0; }//end if }//end for return …

Software Development c perl
Member Avatar for rubberman
0
303
Member Avatar for Reg74

I'm having some trouble attempting to implement the constructors for each class. I have this constructor for the class Transaction. Is this correct ? Transaction::Transaction(QString type, QDateTime datetime) : m_Type(type), m_DateTime(datetime) { } AND how do i implement the constructor for the class Deposit ? Is this correct ? I'm …

Software Development c++
Member Avatar for David W
0
231
Member Avatar for jonathan.paul.7543

Hi, I am working on Hotel Application and I need your help on how to prevent booking a room twice. That is, if a room is booked for 3 days(24/2/2015(18.00) to 27/2/2015(7.00)), no room can be booked withing that period. Am developing the project with Asp.Net(VB) ans Sql Database. Thanks …

Software Development vb.net
Member Avatar for David_50
0
1K
Member Avatar for Habib_7

for example i have a void pointer : void *pt; int k=80; pt=&k; now i want to incement it by one byte ,is it just enough to use (++(char*) pt) or I should use (void*)(++(char*)pt) by this asssumption that i wnat to cast it again to int ,char ,... later.

Software Development c
Member Avatar for Habib_7
0
120
Member Avatar for Amaina

I'm trying to parse a few references from a file and load them to mysql table but keep on getting this error everytim,e i run the script: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the …

Software Development mysql perl
Member Avatar for DaveAmour
0
162
Member Avatar for shizu

Hi all.. I saw a part of codes which I unable to understand.. pleaase all the expert teach me ya.. below is the part of codes.. UINT A; USHORT B; USHORT *C; CString D; if(!sscanf_s(D, "0x%x", &A)) sscanf_s(D, "%d", &A); *(C + B) = A; //<= what is the meaning..?? …

Software Development c++
Member Avatar for NathanOliver
0
160
Member Avatar for michael.james.90475

import java.io.*; import java.net.*; import java.nio.ByteBuffer; import java.nio.charset.Charset; import java.text.DecimalFormat; public class Client { static double difference=0; static int totalTransferred=0; static StartTime timer; static double previousTimeElapsed=0; static int sizeDifference=0; static int previousSize=0; public static void main(String args[]) throws Exception { final int lossRate = Integer.parseInt(args[0]); final String hostName = args[1]; …

Software Development java
Member Avatar for michael.james.90475
0
533
Member Avatar for marvin_1

I need some help .. i want to disable alt+tab .. and other shortcut keys to prevent the user from closing it unless you logout of the program..

Software Development vb.net
Member Avatar for djjeavons
0
622
Member Avatar for sabata mmoledi

help please PART 1: Quiz Version 1, simple quiz [100 marks] a) Your Quiz class will need the following additional methods as shown in the instructions in Quiz.java (See sections marked “TODO”). 1. void printQuizClosedMessage() [5] 2. void close() [5] 3. void showAttemptsRemaining() [5] 4. void showSum() [5] 5. void …

Software Development java
Member Avatar for DaveAmour
0
195
Member Avatar for bobfink

I wrote an app for a customer which (among other things) takes a chart generated by an Excel workbook, and places it on the C# GUI. But the customer is not satisfied with the image which is a jpg. (The C# app currently saves the Excel chart as a jpg …

Software Development c# gui
Member Avatar for ddanbe
0
203
Member Avatar for Engr_1

How to delete DataGridView Row after Selecting Row from Database Using Delete Button

Software Development vb.net
Member Avatar for yesi_1
0
173
Member Avatar for bernardine

how can i put this in a flowchart form? need for my project and where will i put all the void? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); void lo(); char *date; /*header*/ char hdr[]="\t\t\t\t Pizza Hut\n\t\t\t\t Billing System\n\t\t\t Philippines Food Corporation\n"; /*opening*/ void main() { clrscr(); int …

Software Development c++
Member Avatar for Schol-R-LEA
0
212
Member Avatar for Vahid_1

Hello, I'm just started to study malloc and realloc, so i just wrote this program to copy two string from user input and consenterate them. then ofcource print it. #include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *str = malloc(3) gets(str); int sl = strlen(str); str = realloc(str, …

Software Development c c# c++
Member Avatar for sepp2k
0
219
Member Avatar for Chris_29

I have a few picture in My.Resources in Vb.Net and I need a next and previous button to change the image . someone help me :)

Software Development gui vb.net
Member Avatar for Mr.M
0
246
Member Avatar for Tigr@

Hello, I'm having a problem with animating a bitmap on my form. There is a massive flickering when animating the bitmap. Is there anything I can do about this? Bitmap bmp = new Bitmap(@"1.png"); aTimer.Interval =1; aTimer.Tick += new EventHandler(t_Tick); aTimer.Start(); public void t_Tick(object sender, EventArgs e){ gfx.DrawImage(bmp,new Point(x,y+1)); y …

Software Development
Member Avatar for JamesCherrill
0
159
Member Avatar for eddy Omatco
Member Avatar for Khaldoun Latif

hello all, I am a mster student, i need a teacher to teach me the curve fitting (cubic spline, bezier, B spline) and help me to program them on visual basic, the lecture should be on skype. if anyone can help me with this please contact me on khaldon89@gmail.com to …

Software Development vb.net visual-basic
Member Avatar for Zerone_Classic
0
139
Member Avatar for Jeremy_4

I have a text file that represents a book , this first line of it for example is P.G. Wodehouse, "Heavy Weather" (336 pp.) [PH.409 AVAILABLE FOR LENDING] So there is authors name, title, number of pages and if the book is available. As they are not all seperayed by …

Software Development c++
Member Avatar for David W
0
933
Member Avatar for Habib_7

what is ungetch?and what this exactly do?

Software Development c
Member Avatar for rubberman
0
128
Member Avatar for Alex_31

My project for my C++ class requires that I take a bunch of weather data. It's a ton of lines so I won't include all of the text file, but here's a sample of it: 0 943 0 5 0 107 2 401 0 299 The first column is snowfall …

Software Development c++
Member Avatar for David W
0
371
Member Avatar for Diomarch

Server Error in 'Performance' Application. ExecuteReader: Connection property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: ExecuteReader: Connection property has …

Software Development vb.net web-server
Member Avatar for Reverend Jim
0
186
Member Avatar for tanidani

Hallo, I need to make in practice a application running in WIN7. This application must read continuously the sound(noise) received from the microphone and, if the level of the sound(noise) is higher that a adjustable value, to activate to display some random files (messages) on the screen and at the …

Software Development visual-basic
Member Avatar for mridul.ahuja
0
372
Member Avatar for bernardine

declaration error appearing on/after `{` below void order() please help what is my error? #include<stdio.h> #include<time.h> #include<process.h> #include<string.h> #include<conio.h> #include<dos.h> /*Placement*/ void order(); void lo(); char *date; /*header*/ char hdr[]="\t\t\t\t Pizza Hut\n\t\t\t\t Billing System\n\t\t\t Philippines Food Corporation\n"; /*opening*/ void main() { clrscr(); int choice; printf(" === \n"); printf(" ======== \n"); …

Software Development c++
Member Avatar for helmi_1
0
188
Member Avatar for Ant695

/*Additional selection structures 16/3/2015 Programme to display weight on a given planet*/ import java.util.*; public class planets { public static void main (String []args) { Scanner keyboardIn = new Scanner (System.in); int weight; char planet; double planet_weight; System.out.print ("Enter your weight"); weight = keyboardIn.nextInt (); System.out.print ("Enter your planet of …

Software Development java
Member Avatar for JamesCherrill
0
187
Member Avatar for BustACode

I just love generators in Python. One of the cool things I found out from [this](http://nedbatchelder.com/text/iter.html) site was that one could send in a value when calling on an active generator. To do so one uses the send() method and a yield like so: "x = yield". The send with …

Software Development python
0
355
Member Avatar for Amiet_1

Hey guys, I have Huawei Modem, which has predloaded SMS send/receive facility. I want to develope a same application which could send/receive messeges. Can anyone tell me where should i start for it. I want to integrate this SMS facility in my application.

Software Development vb.net
Member Avatar for Logn
0
705
Member Avatar for redtribal23

InputFile.txt Bea Sanchez Junior Math OPS HIGH 17 90 Nicole Sanchez Freshman Science OCC HIGH 13 98 Billy Cruz Senior English OPS HIGH 17 80 #include <iostream> #include <string>; #include <fstream> using namespace std; struct StudentNode{ string firstName; string lastName; string gradeYear; string subject; string schoolName; int age; int grade; …

Software Development c++ data-science linked-list
Member Avatar for deceptikon
0
166
Member Avatar for negru

Hi. I need help with this program: Example input: 2 4 6 -1 7 3 -2 1 Output: 3 3 (longest series of even is 3, longest series of positive is 3) Here is the code: #include <stdio.h> int even(int x) { return x % 2 == 0; } int …

Software Development c c# c++
0
95
Member Avatar for myk45

Hi All, I saw some code where a `sem_init` was called with a value of 0. I didn't quite understand what this meant. I understand that semaphores can be used to protect shared data, in that we allow just one thread to access the data. And, the way to do …

Software Development c++
Member Avatar for myk45
0
5K
Member Avatar for lxXTaCoXxl

I am trying to figure out how to convert hexadecimal values into mips instructions but I am not having any luck. From my understanding you have to first break the value down to machine level (binary) and then use that result to determine the instruction by converting each section of …

Software Development
0
284
Member Avatar for manikandan22

If any one now.How to Create User Account In Vb.Net Windows Application.

Software Development vb.net
Member Avatar for Doogledude123
0
4K
Member Avatar for jai_5

I am printing in my c program which deals with structures but not able to understand why getting a small box containing 0001 in box.printing is fine but the uneccessay boxes are coming. I dont know what they actually mean.

Software Development c
Member Avatar for jai_5
0
341
Member Avatar for Pervin_1

I want to print row which I want from 2d array.

Software Development c++
Member Avatar for mridul.ahuja
0
113
Member Avatar for naz1234

Hi guys, I want to change the width of a line chart When I run with this code: Private Sub Chart1_Click(sender As Object, e As EventArgs) Handles Chart1.Click chart1.Series["Series1"].BorderWidth = 3; Chart1.DataBind() Chart1.Update() End Sub I got this [error](http://i.imgur.com/bGix59l.png). : Property access must assign to the property or use its …

Software Development vb.net
Member Avatar for cgeier
0
354
Member Avatar for lxXTaCoXxl

I am trying to find ways to get the hex data from a file opened in a windows form using the open file dialog. I've done some reading and have found that .NET Framework used to have a byte viewer component built into System.Design that was a quick standard way …

Software Development web-design
Member Avatar for cgeier
0
235
Member Avatar for michael.james.90475

double fileSizeKB = (fileByteArray.length) / 1024; double transferTime = timer.getTimeElapsed() / 1000; double fileSizeMB = fileSizeKB/1000; double throughput = fileSizeMB/transferTime; System.out.println("The size of the File was "+fileSizeMB+ " MegaBytes"); System.out.println("Time for transfer was " +timer.getTimeElapsed()/1000+ " Seconds"); System.out.printf("Throughput was %.2f MB Per Second\n",+throughput); System.out.println("Number of retransmissions: " + retransmissionCounter); byte[] …

Software Development java
Member Avatar for JamesCherrill
0
233

The End.