199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for c++probeginner

[QUOTE] I'm having trouble getting the player's name and score to display as well as the average score. I have been at this for about 3 hours. I think it's time for a fresh set of eyes. Can someone please help?! This assignment is due tomorrow. Thanks [/QUOTE] [CODE]#include <iostream> …

Member Avatar for kimmyfufu
0
192
Member Avatar for Taimoor Rana

I want to load an image for each different shoe and I'm using JLabel to help me do this. I put the image's path in the JLabel constructor but when the code runs, it doesn't display any image. Instead of an image, the image path is written. appreciate any help …

Member Avatar for ztini
0
246
Member Avatar for lashbandi

Hi... i am trying to run this program...and it stays that it does not have a main method... public static void... but i have the public static final int... please let me know how i can get this program to run..thanks [CODE]public class CaesarCipher { public static final int ALPHASIZE …

Member Avatar for ztini
0
210
Member Avatar for Josef01

I am learning vb.net from tutorial sites, book and having trouble to delete row from datagrid view. can someone help me how to delete a selected row in datagrid on click of a button .Thank you the error i get : 'user' is not declared [code] Private Sub Button3_Click(ByVal sender …

Member Avatar for Josef01
0
4K
Member Avatar for kitty_wave

Hi guys, I am pretty new to java, and I have to write out an algorithm for a few operations following each other. The point I am at, is adding two numbers and then dividing the product. This is the code I have come up with so far, excuse the …

Member Avatar for ztini
0
83
Member Avatar for vin24

Hi, I created a program using the linkedlist package. I encountered an error when I tried to insert an element... By the way here's my code... [CODE] import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.*; class guiListOperations3 extends JFrame implements ActionListener { static LinkedList <String> list=new LinkedList <String>(); static JLabel …

Member Avatar for ztini
0
179
Member Avatar for atticusMom

Searched online and found ways that people are able to do this but I can't seem to get mine to incorporate all the words. Here is what I'm trying to do followed by my 7th try at coding it. Thanks in advance for any advise you may be albe to …

Member Avatar for ztini
0
170
Member Avatar for iamthesgt

In my program that uses separate compilation, the only problem I have left is a linker error. To see if it was just a syntax error somewhere obscure, I made a simple "hello world" program that uses separate compilation. I get the same error. The code is below. If someone …

Member Avatar for iamthesgt
0
629
Member Avatar for zidane010h

hey guys,I'm soo beginner in C++ :$ .could you please explain logic of the loop [CODE]#include <iostream> using namespace std; int main() { int x = 0, p = 5; while(x < p) { for(int i = 0; i < x; i++) { cout << "+"; } cout << "\n"; …

Member Avatar for zidane010h
0
217
Member Avatar for conztantines

write a function that will reverse the numbers in a row? so far done public void fliprow(int r) { int temp = m[r][m[r].length-1]; int ct = 1; for(int column = m[r].length; column >= 0; column--) { m[r][column] = m[r][ct]; m[r][ct] = temp; temp = m[r][m[r].length-ct]; if(ct < m[r].length) ct++; else …

Member Avatar for ztini
0
90
Member Avatar for RodEsp

Hey guys, so I'm trying to write a little program that will put together any number of strings passed to it into a single string and then print out that string backwards. I think I have everything correct but I keep getting a "Segmentation fault (core dumped)" error after compiling …

Member Avatar for RodEsp
0
1K
Member Avatar for C#Jonathan

Hi, I've just migrated an application to Visual Studio 2010 and upgraded a third party add-on called Visual WebGUI to .Net 4. I now have a problem with assembly references to the third party DLLs The latest version of the Visual.WebGui.Forms DLL for example is at 4.0..... . Our application …

Member Avatar for C#Jonathan
0
149
Member Avatar for SacredFootball

I think the code comments show what is needed. Essentially, I just need to spit out the members name and score who are below the average score in the list. [CODE] void displayLowScore(struct payload *arrayStart , //first element of array struct payload *arrayEnd ) //last element of array { int …

Member Avatar for SacredFootball
0
157
Member Avatar for Jutch

I have this assignment for school due tonight but I can't figure out the two errors causing problems for me. I've asked my class, I've asked twice on yahoo answers and I still don't understand what to change. If someone can please show me the exact changes that need to …

Member Avatar for Jutch
0
204
Member Avatar for eduard77

I have a vector defined like this: [CODE] #include<iostream> #include<vector> using namespace std; typedef vector<int> VECTORINT; int main() { VECTORINT Vectorul; int x; int num; int y; cin>>num; //the number of numbers that must be entered for(int i = 0; i<num; i++){cin>>x; Vectorul.push_back(x); for(int i=0; i<Vectorul.size(); i++) cout<<Vectorul[i]<<endl; } system("pause"); …

Member Avatar for eduard77
0
113
Member Avatar for tcollins412

lets say im making a dating site. and i want people to be able to insert their own pictures. how would i do that? i have a mysql database. and i want this to happen in php. and then how would i make it display that persons image when someone …

Member Avatar for lyrico
0
125
Member Avatar for Khliboy_2796

Is there a possibility of one to write the program code and do not design the form? If its possible kindly assist in helpin with the procedure.

Member Avatar for WaltP
0
98
Member Avatar for Jake.20

How can i disable a button after i click it and shows another form, and enable it after i close the form that was opened. Please, i need help. Thank you in advance.

Member Avatar for Jake.20
0
131
Member Avatar for printman55

I am redesigning a site and I want to have it compatible with the IPad. Could someone show me the code in either JavaScript or PHP so that when someone comes to my site on an IPad they will be automatically redirected to a site that is narrower, contains no …

Member Avatar for smantscheff
0
150
Member Avatar for rcmango

Hi, well I have written something that compiles and runs fine with a different compiler, but when trying to use a g++ compiler, I get errors when compiling in a unix environment. Here is the command line I have used: [CODE]g++ Agent.h Agent.cpp Driver.C g++: Compilation of header file requested. …

Member Avatar for Akill10
0
118
Member Avatar for HeartBalloon

Hi, I have to write a code which should allow to append and item to a list. That is FIFO Logic, First In First Out, but I cannot think of anything of that kind actually. I mean, I should run the list until the last pointer, and then make it …

Member Avatar for HeartBalloon
0
639
Member Avatar for maofree

Hi to all I use a cms and I want to modify an its module. I need to pass a variable to a xml file (this xml is necessary for a flash slideshow), like the value of a folder like '/example' If I create a system variable in php and …

Member Avatar for maofree
0
338
Member Avatar for Archenemie

I have the code below and the exact same code works when its put outside the function but does not when its called as a function, and it seems the function is being called correctly because the print line works[CODE]import wx class DestroyButton(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, …

Member Avatar for Archenemie
0
200
Member Avatar for Joshua Kidd

Hey, I'm working on a little project for Flight Simulator X, and I have seen a few things where it shows the Status of Flight Simulator X. Like on the Bottom. Say I have MS Word, and have a program, a status bar on the Bottom says " Status: Microsoft …

Member Avatar for Joshua Kidd
0
78
Member Avatar for Violet_82

Hi there, I am doing an exercise from a c++ book, but I get few errors that I can't seem to be able to fix, and I am not quite sure why. The exercise goes:" In a right triangle with dimensions side1, side2 and hypotenuse, find all Pythagorean triples for …

Member Avatar for Violet_82
0
904
Member Avatar for BlueZephyr

Hey everytime I run this it outputs the else of neither no matter what I enter. And I checked my conditions and the logic seems right but maybe I'm wrong. Help please! [CODE]#include <iostream> #include <cmath> using namespace std; int main(){ int n1, n2, n3; cout<<"Enter the three sides of …

Member Avatar for BlueZephyr
0
97
Member Avatar for HeartBalloon

[CODE] int findWord(char ma[][iSize], char ca[],int iRing,int& X, int& Y){ int ring=0,i=0,j=0,x=0,y=0,k=0,i2p=0, iLSide=0,iSSide=0; bool bOkay=true, bOver=false; ring = iRing--; iLSide=(iSize-(ring*2)); iSSide=(iSize-((ring*2)+3)); i2p=(iLSide*2)+(iSSide*2); x=y=i=ring; while(i>=ring && i<i2p && bOver==false){ j=i; switch(i){ // WHAT'S WRONG WITH THIS?!? WHY CAN'T I ASK A CASE MINOR OR EQUAL? case =< iLSide: x=ring; y=j; break; …

Member Avatar for HeartBalloon
0
178
Member Avatar for Geemon

I am sorry, I had a thread similar to this, but I have encountered a different bug. [CODE=python]def rm_b(acts): print("DINING ROOM") print(descriptions.dining) acts={"north":no_exit, "east":rm_c, "south":rm_e, "west":rm_a, "sandwich":'inv_add(sandwich, acts)'} prompt(acts)[/CODE] The "sandwich":'inv_add(sandwich, acts)' will not work. Same for all of the items I wish to allow the player to pick up. …

Member Avatar for griswolf
0
112
Member Avatar for discovery-power

Hi All. I have developed an application for booking meeting rooms. A user has to log in before he / she can use the system. I want the user name of that user to be shown in the form. I thaught this was easy. Please see my code below for …

Member Avatar for discovery-power
0
142
Member Avatar for Joshua Kidd

Hello, I am making a little program for the Game "Flight Simulator X" and I need to monitor the Process state of the Program. My Main Question is How do you manage a Process so on a Label you can set maybe an If...Then...End If Statement to tell it what …

Member Avatar for Joshua Kidd
0
73
Member Avatar for lochnessmonster

im just curious on the purpose of pointers to pointers and when i would actually ever find the use of using one! thx

Member Avatar for Ancient Dragon
0
96
Member Avatar for Archenemie

I would like to destroy the second button by clicking the first I have also tried "return but2.Destroy() but everything returns an error message. Can anyone help? [CODE]import wx class DestroyButton(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "title") panel = wx.Panel(self) but1 = wx.Button(panel, label = "click me") but2 …

Member Avatar for Archenemie
0
128
Member Avatar for newn01

Hi. I've been looking for a code, and found something, edited it a little bit and came up with nothing, so here's the original version of it: [CODE] <?php $dbLink = new mysqli('localhost', 'usr', 'pwd', 'dbName'); if(mysqli_connect_errno()) { die('Failed to connect to MySQL: ' . mysqli_connect_error()); } $sql = "SELECT …

Member Avatar for newn01
0
178
Member Avatar for Nandomo

I want to use Ncurses on Dev-Cpp but don't know how to install it. I have downloaded the ndk for it, any help?

Member Avatar for Ancient Dragon
0
103
Member Avatar for marciaalanna

I am trying to finish this program that is due tonight. I have been working on it through out the week and thought I could figure out my errors with fresh eyes. I have got the number of errors down, but for some reason I keep getting errors like string …

Member Avatar for marciaalanna
0
107
Member Avatar for Tellalca

Hey; I am developing a console game in C#. I wanted to create a file called "accounts.bin" to hold players accounts information. So when I try to create or access the file the program halts and throws an exception called "UnauthroizedAccessException". I tried to put the file into the "C:\" …

Member Avatar for Momerath
0
268
Member Avatar for EricIskhakov

Hey guys, sorry i know it doesn't belong on PHP but there is no general discussion. i am having trouble to understand this licenses. I am building a website for public use. with profit included. can i use a jQuery lib for my site? (it's licensed by MIT or GPL …

Member Avatar for EricIskhakov
0
142
Member Avatar for RenanLazarotto

Hey guys! Two questions: how can I completely wipe a file from disk with vb.net? I found a code in C#, converted it to VB.net online but didn't understand a letter. I was thinking on a wiper like CCleaner has, but for a selected files only. And, how can I …

Member Avatar for RenanLazarotto
0
573
Member Avatar for CompSci_Guy

As the title says, I saved over my code. I am screwed because I really need the old version. I have the original compiled .class file... can i some how get the code from inside there? or recover an earlier version of this java file (which is/was stored on my …

Member Avatar for stultuske
0
160
Member Avatar for EricIskhakov

Hello. i made an swf (With ActionScript 3.0) that exchanges data with php file. The swf works perfectly fine when on my local host but when i embed the swf in a the page the swf doesn't work. The swf runs a php file ( [url]www.mywebsite.com/mypage.php[/url] ) and recives data …

Member Avatar for EricIskhakov
0
115
Member Avatar for jrotunda85

I am setting up a database currently and I want frequently used values stored in a Code table on my database. The Code table is setup with the following columns: Type_CD" , "Code" , "Description". For example, if I wanted to pull a list of states, I would want all …

Member Avatar for diafol
0
193
Member Avatar for malipia
Member Avatar for PC_Intense

I have an assignment in which I need to rite an OpenGL program that displays a green square on a black background. Does anyone know a good free software I can download to run this. I'm mostly familiar with java, and since this is in C, I don't know where …

Member Avatar for myk45
0
89
Member Avatar for shredder2794

Hello all, I'm in the process of making a program in Visual Basic 2010 where the user can click a button adding another webbrowser control to the form. How would you accomplish this and how would you go about "Dynamically" expanding the form... EG. how would you go about adding …

Member Avatar for codeorder
0
100
Member Avatar for iamthesgt

This may be a simple fix, but I have a class for a program that contains some member functions that manipulate a vector. The vector is a private member variable, and is filled from an array using a constructor. When I try to access the member functions to manipulate the …

Member Avatar for iamthesgt
0
176
Member Avatar for ERadu

Hello! I am having some trouble with reading data for a list. If at the end of the file there is a new line character, this function reads the last set of data again, and then exits the loop. The addElem function works fine, I tested it separately. As there …

Member Avatar for arkoenig
0
292
Member Avatar for airesh

help guys, i want to check the Open radio button if the data in the database is "Open" otherwise, the Close radio button is checked. i badly need you help..\\thanks

Member Avatar for SARUBA
0
243
Member Avatar for bangla

hi, I have xampp/eclipse/windowsxp. below code does not send any email. I dont know whether i need to do something with php.ini file. or i need mail server. I am new to this. When i run the following code in eclipse, i get message saying Mail Sent but i never …

Member Avatar for bangla
0
142
Member Avatar for begineer

hi guys. i want a help on making directories in c++.i have used the code to declare and intilliaze the path name and folder name..but the probelem is that i want it to to ask from the user for the drive and folder name..i tried but i didnt get the …

Member Avatar for Ancient Dragon
0
213
Member Avatar for JannuBl22t

Hey! I have a question. I have this code: [CODE] int size = Convert.ToInt32(numericUpDown1.Value) + 1; var item_c = listView1.Items.Count; int id = 0; while (true) { if (id == item_c) { break; } for(int i = 0; i < size; i++) { if (id == item_c) { break; } …

Member Avatar for JannuBl22t
0
133

The End.