43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for coolbeanbob

Hello all, Lots of code here, but much of it can be ignored. I am getting an error on line 34 of HashTable.h, stemming from line 50 of main.cpp. I am trying to create an array of lists in the HashTable.h file. Error code is: \HashTable.h(34) : error C2440: '=' …

Software Development c++ queue
0
88
Member Avatar for coolbeanbob

I'm trying to determine if this creates an array of pointers, with the array size being "size"? Is this correct? [CODE] int size = x; int *ptr; ptr = new int [size]; [/CODE]

Software Development c++
Member Avatar for coolbeanbob
0
49
Member Avatar for stereomatching

Studying modern c++ design, looks like Typelist is a very important tool for generic programming. Could I find something like Typelist from boost? I found something like boost::mpl but I didn't see anything like Nulltype defined in loki Could boost::mpl replace the Typelist of loki? Thanks

Software Development c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for emmas4impact

I am working on a moving object. so I created a menu bar for size and speed, the idea behind it is that each time small, big or medium is clicked it should change the size and same also applies to the speed but when implement the action listener its …

Software Development java java-swing
Member Avatar for emmas4impact
0
210
Member Avatar for GadiK

I have 2 Windows machines. One physical for development and another (virtual) for testing. I want to write a PERL script that would take my compiled files and copy them to predefined locations on the virtual machine (backing up existing files). Before copying the files I need to check for …

Software Development perl
Member Avatar for GadiK
0
1K
Member Avatar for lmali92

I am using Visual Studio 2010 I have multiple forms and when I hit close button(red X, top-right) from any form, i want the project to close entirely. Now when I do this, this does not happen by default. I always have to click on the 'stop' button in VS …

Software Development vb.net visual-studio
Member Avatar for codeorder
0
3K
Member Avatar for stereomatching

I don't my deduction of NoDuplicates are correct or not please correct my error if I did [code] template<typename TList> struct NoDuplicates; template<> struct NoDuplicates<NullType> { typedef NullType Result; }; template<typename Head, typename Tail> struct NoDuplicates<Typelist<Head, Tail> > { //private : typedef typename NoDuplicates<Tail>::Result L1; typedef typename Erase<L1, Head>::Result L2; …

Software Development c++
Member Avatar for stereomatching
0
147
Member Avatar for lcfjoertoft

I've extracted some data from an SQL server, put it into an array, and want to mail it's content to a group of people. All quite easy, until it comes to presentation in the mail body. When I set it up manually in Excel and do Copy - Paste it …

Software Development vb.net
Member Avatar for lcfjoertoft
0
82
Member Avatar for javaNooblet

Hi all, I have a main GUI class as seen here: [CODE] import java.awt.*; import javax.swing.*; import javax.swing.border.*; /* * Class is to communicate with various other classes in the program to * create a roster for user based on their selection on GUI. */ public class MainGUI extends JFrame …

Software Development gui java java-swing oop
Member Avatar for stevanity
0
263
Member Avatar for sidlampard

hi could anyone tell me how to get bit pattern of a negetive number. For example bit pattern of -1357 is: 11111111111111111111101010110011 and bit pattern of 1357 is: 00000000000000000000010101001101 but how????

Software Development java
Member Avatar for stultuske
0
149
Member Avatar for onat12`

I have a Login validation problem, when Username = 123-incorrect Password = 123-incorrect Login Failed. when Username = onat12-correct Password = sambuca888-correct Login Accepted. now when, Username = onat12-correct Password = 123-incorrect Login Failed. now when, Username = 123-incorrect Password = 123-incorrect Will not validate Verification failed [CODE]using System; using …

Software Development c c# c++ open-source
Member Avatar for hericles
0
205
Member Avatar for vammy

Hi Guys, Is it possible to dynaically create table name in MS Access: Below is my CODE: [CODE] strSQL = "CREATE TABLE" + Me.Text + "( ID Counter," & _ "Name TEXT(50) NOT NULL," & _ "PRIMARY KEY(ID) )" [/CODE] But,im getting a run time error that syntax is wrong. …

Software Development vb.net
Member Avatar for vammy
0
130
Member Avatar for awesome_cool

I've been Programming in C++ for a year. I am done with Basics and all other OOP concepts(like inheritance,polymorphism and STL) I want to be a game programmer, but i don't know what to study now? I've heard about OpenGL, DirectX, GUI libraries as a result i m confused to …

Software Development c++ gui opengl
Member Avatar for thines01
0
529
Member Avatar for phorce

Hello, I have an array and need to sort it so that the highest numbers show first etc.. I have written this: [code] for(int i=0; (i < 26); i++) { while(counter[i] < counter[i + 1]) { int temp = counter[i]; counter[i + 1] = temp; counter[i] = counter[i + 1]; …

Software Development c++
Member Avatar for phorce
0
100
Member Avatar for phorce

Hey.. Is it possible to make PHP type arrays? Like keys? For example, I have an array of numbers, and an array of letters.. A = 10 B = 20 C = 30 And then I sort the numbers so that the highest number is at the top etc.. But, …

Software Development c++ php
0
73
Member Avatar for AbEeR Q8

hi; I'm trying to program a circular link list with a head node , I have a problem with insert function . wanting to do it like this but with a head node >> [url]http://geeksforgeeks.org/wp-content/uploads/cll1.gif[/url] this is my function :: [CODE] struct node{ int data; node *next; node(int x,node *n=NULL){ …

Software Development c++ seo
Member Avatar for raptr_dflo
0
390
Member Avatar for sanonite

Hello everyone, my assignment is to calculate each student's test average and final letter grade from a class of 20 students with 3 tests. The scores for each test are located in the text files that I am attaching. I have worked on this code for some time now, but …

Software Development c++ mathematics
Member Avatar for sanonite
0
245
Member Avatar for OblibSystems

Basically im trying to make a game where shapes fall from the sky and the user controls the sprite to avoid them. I have it working but only with 1 block falling at a time. I am using the paint method to draw my shapes. I was wondering how to …

Software Development gaming iphone vb.net
Member Avatar for the_carpenter
0
226
Member Avatar for MrEARTHSHAcKER

Hi, I wish to start making Windows Applications, but I need a good compiler. Considering I work in DEVC++, I can't make buttons, textboxes and other objects that easy. I wonder if there's any compiler like BorlandBuilder for C, but for C++. That'd really help me :icon_cool: So do you …

Software Development c c# c++ windows-xp
Member Avatar for MrEARTHSHAcKER
0
221
Member Avatar for eLu-sive

hi, please help me debug this, i am trying to add one row from one table to another at the same delete it from the table i am getting it from. (cut and paste kinda thing). Only one part works, i can only copy and not delete. [CODE] int recordAffected …

Software Development java
Member Avatar for eLu-sive
0
238
Member Avatar for cummings15

The void and Output file will not work for my code and I don't know why. [CODE]#include <iostream> #include <string> #include <istream> #include <fstream> #include <cstdlib> #include<iomanip> using namespace std; #define MAX_ENTRIES 50 struct internet { string internetDomain; string ipNumber; int counter; }; // declare the array of structs - …

Software Development algorithm c++ open-source
Member Avatar for raptr_dflo
0
130
Member Avatar for berwick53

Hi i'm trying to read in an XML File that is like the following [CODE]<?xml version="1.0" encoding="utf-8"?> <ArrayOfSYMBOL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SYMBOL Code="AA.P" Name="Alcoa Inc Pf 3.75" /> <SYMBOL Code="AADR" Name="Wcm Bny Focused Growth Adr ETF" /> <SYMBOL Code="AAU" Name="Almaden Minerals" /> <SYMBOL Code="AAVX" Name="Etracs Daily Short 1 Month S&amp;P" /> …

Software Development xml
Member Avatar for thines01
0
92
Member Avatar for javaNooblet

Hi all, If I write a java program inside of eclipse, how can I run that program outside of it, rather than just hitting the run button in eclipse. So, I can give others the program to run on their computers. Thanks!

Software Development java
Member Avatar for javaNooblet
0
258
Member Avatar for caut_baia

Hi everyone.I'm trying to compile a resource file ".rc" for a Win32 application but i'm getting this error "use "" to put " in a string".Among other things , i'm trying to define a MENUITEM with a string that looks like this "&Save\t\"Alt+S\"".i have tried escaping the '"' character with …

Software Development c++
0
152
Member Avatar for emmas4impact

Hi everyone, i'm trying to make a sound each time a ball touches the lift and right of a frame but when i use clip and try to use the sound class it sound from right then left the in middle and then stop. i Can really use some help. …

Software Development audio file-stream gui java java-swing
Member Avatar for JamesCherrill
0
212
Member Avatar for akde

I have created a new C++ project (to be able to use the graphics.h library) then I have tried to add a C project which works perfectly in C (by the way I have saved the file with .c extension). 2 line leads to error: [CODE] q = malloc(sizeof(struct QueueRecord)); …

Software Development c c++
Member Avatar for akde
0
263
Member Avatar for javaNooblet

Hi All, I am currently trying to figure out to finish this project. Below is my code that I have so far. There are some blank methods that I am not sure where to even begin on how to complete them. I have a description of what the methods should …

Software Development file-system java programming-construct
Member Avatar for NormR1
0
2K
Member Avatar for cool_zephyr

hey there, I'm writing a program where I have to store and retrive student information(e.g. name,address,photo..) in the database. I've written the code to interact with the database in a WCF service..The problem is I'm able to get the image from the database if I directly write the code to …

Software Development image
Member Avatar for cool_zephyr
0
316
Member Avatar for janet@123

i am receiving a struct from the switch: [CODE]/* Packet received on port (datapath -> controller). */ struct ofp_packet_in { struct ofp_header header; uint32_t buffer_id; /* ID assigned by datapath. */ uint16_t total_len; /* Full length of frame. */ uint16_t in_port; /* Port on which frame was received. */ uint8_t …

Software Development c
Member Avatar for janet@123
0
271
Member Avatar for Jsplinter

[CODE] vector<int> iv; iv.push_back(4); vector<int>::iterator it = iv.begin(); cout << *it; cout << *(iv.begin()); //debug assertion here [/CODE] Why can't I dereference iv.begin() directly?

Software Development c++
Member Avatar for Jsplinter
0
281
Member Avatar for dennysimon

Hi all in code below ,after I got the object aobj ,how can I identify which component aobj actualy is.And where is it Location ? thank you denny [CODE]CaretListener listener = new CaretListener() { public void caretUpdate(CaretEvent caretEvent) { Object aobj=caretEvent.getSource(); Component comp=aobj. System.out.println(aobj.toString()); } };[/CODE]

Software Development java
Member Avatar for dennysimon
0
858
Member Avatar for BoBok2002

I need help. I tried to load an image using SOIL. I was having problems with it so I found another code I am using. However, it looks like I am not loading it properly. It's simple but I think I'm confusing myself. I still can't wrap my head around …

Software Development c++ image opengl
Member Avatar for BoBok2002
0
5K
Member Avatar for lele07060

I'm trying to make it print out like this ***** **** *** ** * but it keeps on coming out like this: ***** **** *** ** ** here is the code i used [CODE]public class Asterisk { public static void main(String[] args) { for (int i=5; i>0;i--) { System.out.println(""); for …

Software Development java
Member Avatar for thines01
0
123
Member Avatar for kothaisaravan

Hi, I have developed a VB.NET Application with backend MS Access. Now I want to install on the user's machine, so i deployed the setup project. I need to know how can i create a desktop shortcut for my VB.NET Application. If I just copy and paste the filename.exe file …

Software Development vb.net
Member Avatar for IrshadIkhlas
0
171
Member Avatar for zachattack05

Thanks to Antenka I have located the HTML Help Workshop to create a Help system for my software. Problem: writing HTML code is a heck of a lot more tiring than I expected. Does anyone know of a WYSIWYG HTML editor that only does the basics (fonts, tables, images etc...) …

Software Development
Member Avatar for Cap'nKirk
0
99
Member Avatar for Despairy

as you can see in the picture this happens the second i add to that kamapatchi class 1 more integer. [CODE]#pragma once #include "Configuration.h" class Kamapatchi{ public: Kamapatchi(); Kamapatchi(Point ); Kamapatchi(int,int); int getAge(); bool isAlive(); void drawSprite(char world[][BOARD_SIZE]); void eraseSprite(char world[][BOARD_SIZE]); void act(char world[][BOARD_SIZE]); void updateStatus(); string getStatusString(); string getSpecificMenu(); …

Software Development c++ visual-studio
Member Avatar for WaltP
0
198
Member Avatar for lbgladson

I have a program to write an application that takes the initial balance, annual rate, and number of years and finds the balance of the account at the end of each year. I have the following code but my Annual Rate label is in the incorrect place, the calculate button …

Software Development java java-swing
0
77
Member Avatar for kurohige

so i'd being working on an access app, VBA and i need to restart it, the application usually goes stops running when error 3043 or internet connection goes down.. is there any way i can restart this application without having to build another app to check if is running.. thanks …

Software Development vb.net
Member Avatar for kurohige
0
941
Member Avatar for Vasthor

can anyone tell me particular code that work opposite way for "sort", where.... [QUOTE] sort(b, e) Rearranges the elements defined by the range [b, e) into nondecreasing order. Defined in <algorithm>. [/QUOTE] from Accelerated C++

Software Development algorithm c++
Member Avatar for stereomatching
0
92
Member Avatar for ginnipig

Hello All, I have two tables that can't be changed. One contains Stock codes / country codes, the other has country code / description for each code. I have a combobox with all the country descriptions that can be added to the stock code table. my problems is i can't …

Software Development seo sql vb.net
Member Avatar for ginnipig
0
244
Member Avatar for terence193

This is what the question is asking: Write a program to get the user to enter a positive number. Validate the input so any negative or zero number entered is rejected and the user is to re-enter the number. and this is what i have done [CODE]#include<stdio.h> int main (void) …

Software Development c
Member Avatar for YAMNA MIDHAT
0
203
Member Avatar for RenanLazarotto

Hello guys! I'm making a simple app to view some comic strips from a website. My problem right now is to update it everytime it opens. I did a search over the internet, but didn't find nothing that fits to me. I want to download every single gif file from …

Software Development
Member Avatar for thines01
-1
153
Member Avatar for Joey_Brown

Hello :) Lets say I have a text file that looks like this : [CODE]*DataString1 info1;info2;info3 //newline delimiter *DataString2 info1;info2;info3;info4 //newline delimiter . . . //and so on [/CODE] What is the best container with which I could process and manipulate the information stored in this file? Thank you for …

Software Development java
Member Avatar for JamesCherrill
0
92
Member Avatar for voidyman

I want to remove blank lines (empty or with spaces and tabs) from a file from within a perl script. here's what i tried. [CODE]`sed '/^ *\$/d' $file1`;[/CODE] Does not seem to work for some reason. Any Help please?

Software Development perl
Member Avatar for voidyman
0
939
Member Avatar for ktsangop

Hello everyone! I want to add a licence expiration feature in my application (written in visual c++). When the licence expires i would like my application to generate a random numerical key which will be sent to me by the user. Using this key and a personal key-generator i would …

Software Development algorithm c++
Member Avatar for ktsangop
1
2K
Member Avatar for abshah

Hi, I am facing a bit of issue in writing a network software. When I try to send or receive a struct that contains a data type of 8 bytes the next sent or received struct is somehow affected. I have a few things in mind but first I wanted …

Software Development c mac-software ubuntu
Member Avatar for abshah
0
481
Member Avatar for Ruchi224

Hello !! I have a windows form having combobox and textbox controls.. I have to generate a part number, consisting of combobox and textbox values included.. I can explain in detail.. This is the code i have used to define a variable "type".. [CODE] If ComboBox1.SelectedIndex = 0 Then type …

Software Development open-source vb.net
Member Avatar for Ruchi224
0
138
Member Avatar for nchy13

i don't know why but my compiler reads only upto insert statement. this is what compiler looks like: [B]nchy@ubuntu:~/Desktop$ g++ tree.cpp nchy@ubuntu:~/Desktop$ ./a.out 2 insert 0 14 10 85 15 70 20 60 30 50 65 80 90 40 5 55[/B] [COLOR="Red"]i want to implement following input format[/COLOR] 2 insert …

Software Development c++ ubuntu
Member Avatar for jmichae3
0
120
Member Avatar for triumphost

Hey guys I'm here again with another problem. I want to search in a string for a string with quotes in it. Example: [CODE]String to search = {' </a></div></div></div><div class="clearfix"><table cellspacing="0" class="wsod_quoteData"><tr><td class="wsod_last wsod_lastIndex" nowrap="nowrap" '} What to search for = {' <table cellspacing="0" class="wsod_quoteData"> '} Then if found, from …

Software Development c++
Member Avatar for triumphost
0
173
Member Avatar for crownedzero

Using strings [CODE] #include <iostream> #include <string> using namespace std; string replaceSubstring(string, string, string); int main() { string string1 = "the dog jumped over the fence", string2 = "the", string3 = "that", newString; cout << "This program will replace a keyword in a sentence with another word.\n\n\n"; cout << "Our …

Software Development c++
Member Avatar for mzimmers
0
2K

The End.