132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for muze

hello guys...how can i use iostream.h in VS2008?? im using following code but it is no t working... [CODE] #include <windows.h> #include <iostream.h> HANDLE hEvent; DWORD WINAPI SampleThread(LPVOID iValue) { int iFinish = 120; for(int i=100;i<=iFinish;i++) cout<<i<<endl; SetEvent(hEvent); return 0; } void main() { HANDLE hThread; DWORD dwGenericThread; hThread = …

Software Development c++
Member Avatar for thelamb
0
178
Member Avatar for jems5

With this code segment, I must be able to output text file data with names of persons along with int values after performing calculations. The program isolates the names, int values and float values and should output the percentage of each value as a functions of total... example out is... …

Software Development java java-swing
Member Avatar for quuba
0
101
Member Avatar for auxius

hello please help me. i want to search a data using from a textbox and a command button to search ..I have a i have a access database and 1 table with 2 fields ID and Name..im using Visual Basic 2010..please help me on second thought after finding a data …

Software Development seo vb.net visual-basic
Member Avatar for auxius
0
70
Member Avatar for achieve_goals

Hi, I am having trouble comparing characters from two strings. This is what I have [CODE] void encrypt(string plaintext, string vigenere_table[length][length], string keyword, string& ciphertext) { int row, col; for(int i=0; i<20; i++) { for(int x=0; x<length; x++) { if(vigenere_table[x][1] == plaintext[i]) //wont let me use == row = x; …

Software Development c
Member Avatar for myk45
0
154
Member Avatar for losh177

Hi, I need some help figuring out what's wrong with my code. I'm getting quite a few of syntax errors for missing ';' which I have and missing type identifier. This errors are happening on my intarray.h file for string declaration (line 34). I get more errors that still need …

Software Development c++ os-x
Member Avatar for losh177
0
183
Member Avatar for xcarbonx

Hello, i'm having trouble opening a text file to process and order the data in it. When i try to read the first line of characters an error message occurs saying: 'Variable words1 is used before it has been assigned a value.' I dont understand what i am doing wrong …

Software Development vb.net
Member Avatar for xcarbonx
0
119
Member Avatar for iwanttolearnc

[CODE]im=Image.open ("trial.jpg") a = im.resize((300,300), Image.ANTIALIAS) b = a.save("im.jpg") im1 = Image.open ("im.jpg") loadres = numpy.array(im1)[/CODE] ive resized image trial to 300x300 image and saved it as im.jpg. but once i turn it into an array and check image sizes this is what i get [CODE]>>> im.size (450, 400) >>> …

Software Development python
Member Avatar for iwanttolearnc
0
84
Member Avatar for co1234

Hi, I built a popularity cloud but it doesn't work properly. The txt file is; 1 Top Gear 3 Scrubs 3 The Office (US) 5 Heroes 5 How I Met Your Mother 5 Legend of the Seeker 5 Scrubs ..... in my popularity cloud, names are written their frequency times. …

Software Development html-css python
0
109
Member Avatar for stud02

hi, Is it possible to load a c file into another c file? I want to give a list of functions used in the c file. If this isnt possible, can i give this list of functions from a loaded text file, when i copy the used c file into …

Software Development c
Member Avatar for WaltP
0
117
Member Avatar for Crucial

I have been reading up on this forum looking for answers to my own questions but i find myself stumpped. I basically have to read from a file the last ten lines of input. Yes this is for a homework assignment and i have spent hours on it reading my …

Software Development c++ ios
Member Avatar for mike_2000_17
0
184
Member Avatar for awesome3000

[CODE]//This a partially completed prototype of project 2 //currently use file FlatData1.dat as its initial roster #include <iostream> #include <fstream> #include <vector> #include <string> #include <stdlib.h> #include <cstring> #include <algorithm> using namespace std; typedef enum { thisWeek, nextWeek } WEEK; typedef enum { clean, wash, shop } DUTY_TYPE; typedef enum …

Software Development algorithm c++ gui
Member Avatar for Ancient Dragon
0
134
Member Avatar for harsh143

Hi, In the project I am developing, I wish to show entries from the database as a Crystal Report. I have done the following to set this up: 1>Created a form called rpt.vb and put a Crystal Report Viewer on it called [B]CrystalReportViewer1[/B] 2>Created a Button with the following code: …

Software Development vb.net visual-studio
Member Avatar for prvnkmr194
0
147
Member Avatar for VectorAKA

I have been messing with this program for my class for days now. I can get the program to run fine....I can get it to return highest value in list but i need it to return the month it occurs in. Here is the exercise as it appears in my …

Software Development python
Member Avatar for Schol-R-LEA
0
5K
Member Avatar for OneRunner

So, Daniweb. My teacher has been teaching us some old C++ (a problem I've been trying with little avail to rectify). I need y'all wonderful people to look over a section of code that I'm having trouble with. It has to do with recognizing a letter in an if statement. …

Software Development c++
Member Avatar for doolali
0
121
Member Avatar for ccube921

I wanted the program to display each piece with its assigned color preceding it (eg a white rook would be 'WR'). [CODE]#include <iostream> using namespace std; struct attrib{ char x; int y; char cont[5]; char clr; }; attrib brd[8][8]; void prntbrd(void) { for ( int y =0; y<8; y++) //accesses …

Software Development c++
Member Avatar for doolali
0
86
Member Avatar for lewashby

In the following program I'M getting an error with the blit function. The error is invalid destination position. background_image_filename = 'sushiplate.jpg' sprite_image_filename = 'fugu.png' [CODE] import pygame from pygame.locals import * from sys import exit from gameobjects import Vectory2 pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) background = pygame.image.load(sprite_image_filename).convert_alpha() sprite …

Software Development python
0
301
Member Avatar for AutoPython

Hey, it's me again. I have a Ceaser Cypher here: [CODE]letters=list("abcdefghijklmnopqrstuvwxyz") def Encrypt(): for i in range(int((len(word)-1))): curletter="".join(letters).find(word[i]) if (curletter+key)>(25): if (curletter+key)<0: i=(curletter+key) i=[(curletter+key)-(curletter+key)] else: i=(curletter+key)-(25) print (curletter+key) word[i]=letters[curletter+key] return def Decrypt(): return word=list(input("Type in some letters:")) key=int(input("Type in a key:")) choice=int(input("1) Encrypt\n2) Decrypt\n:")) if choice==1: Encrypt() else: Decrypt() print("".join(word))[/CODE] …

Software Development python
Member Avatar for AutoPython
0
200
Member Avatar for TayKaye

This is my code which determines it a lottery number is a winner or a loser. I have specific numbers that it needs to go by. My code compiles and it congratulates the user if when I type any of the numbers, however, if I type in 12345 or several …

Software Development c++
Member Avatar for TayKaye
0
491
Member Avatar for mskittles

Hi everybody, I am not new to c++ but am far from a intermediate. I would appreciate any help or suggestions. However, my problem is I need to store dynamic data into different variables. For example time. I am trying to write an if statement that would take time store …

Software Development c++
Member Avatar for mskittles
0
81
Member Avatar for myk326

I simplified an issue I'm having in another program with the small program here. The program is supposed to open the file with function openFile(). Then I want to initialize char a to the first character in the file via function accessFile() and output that character. My problem seems to …

Software Development c++
Member Avatar for myk326
0
98
Member Avatar for zarifin99ska

hi. i'm have 2 form and a listview in form1 with items, but when the row has no item in it,like row 4 until row 8, an error showed up like this "InvalidArgument=Value of '1' is not valid for 'index'. Parameter name: index". can someone help me fix this? i …

Software Development listview vb.net
Member Avatar for zarifin99ska
0
319
Member Avatar for mitrious

The book asks me to do the following: Note that the function from the previous exercise and the functions from §6.2.2/113 and §6.2.3/115 do the same task. Merge these three analysis functions into a single function. the three functions are: [CODE]double average_analysis(const vector<Student_info>& students) { vector<double> grades; transform(students.begin(), students.end(), back_inserter(grades), …

Software Development c++
Member Avatar for mitrious
0
141
Member Avatar for noneta

i wrote this code to reverce a word but its give me a error donno why:S i hope u can help me :) [CODE]import javax.swing.JOptionPane; public class sentence { private static void reverse (Sentence){ String sentence; sentence s = new sentence(); sentence=("hello"); } /** * @param args */ public static …

Software Development java java-swing
Member Avatar for peter_budo
0
105
Member Avatar for SacredFootball

Hey all, just beginning to pick up some C# and I was wondering how to query data from a Data set in Visual Studio. I'm setting my frame up like a form where it will show values from the database. I've got BindingNavigator to work properly (mainly because it does …

Software Development visual-studio
Member Avatar for agrothe
0
152
Member Avatar for lelejau

how can I hook the LoadLibraryA API? I am googling a lot but I can't find any piece of code that helps me doing what I want to. I just want to intercept it and display in a message box what is the name of the DLL that the program …

Software Development api c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for reemhatim

how could I start my way in programming ?I have taken structured programming in c++ in university and I took a course about object oriented programming in c# but I still feel I'm not on right track .please give me an advice that could help me. thanks :) :)

Software Development
Member Avatar for ashishkumar008
0
91
Member Avatar for DrueY

I've got this "simple" Fast Fourier transform code here, but being a beginner I'm not sure how to use it! I just want to know what the required input is, how do I input it, and what is the output? Can someone give me a hand at interpreting this please? …

Software Development c++
Member Avatar for DrueY
0
142
Member Avatar for heidik

Hello Everyone. Could anyone please help me solve this problem. I am actually new to using STL. I have been given a task of searching a file of over 60000 records. The data extracted from the file is stored in struct and that struct is in turn stored in vectors …

Software Development c++
Member Avatar for heidik
0
851
Member Avatar for Violet_82

Hi guys, quick question. Does the structure [CODE] try { } catch { exit(0); } [/CODE] require the preprocessor directive [CODE]#include<cstdlib>[/CODE] to be declared at the beginning of the program? The thing is if I don't declare it the visual c++ compiler works fine but if I try in Unix …

Software Development c++ unix
Member Avatar for thelamb
0
164
Member Avatar for nssltd

Hey there in may web browser program their is something i am struggling on. That thing is you know when you go on a log on website and the address bar goes green? Well that is what i want to do but i am struggling on how to determine whether …

Software Development display web-browser
Member Avatar for nssltd
0
124
Member Avatar for sahil1991

hi, i hav borland 5.02 compiler running on my win7 64-bit compiler,it is not supporting <graphics.h>header file,can some1 tell me plz hw to fix this problem?......... thanx in advance

Software Development c++
Member Avatar for mike_2000_17
0
184
Member Avatar for ÜnLoCo

Hello has anybody come across a similar control to this one. [URL="http://img138.imageshack.us/img138/875/23102010172021.png"]http://img138.imageshack.us/img138/875/23102010172021.png[/URL] if so then please give me a link. thank a lot edit : found this one [url]http://www.filebuzz.com/fileinfo/38822/Angulum.html[/url] any better suggs are welcome though :D

Software Development asp.net vb.net
0
109
Member Avatar for hezekiahpk

I am just starting a programming class in C++ and my teacher hasn't taught anything about writing pseduocode and programs, yet expects us to be able to do so. I need help!!!! 1. Write out a complete algorithm in pseudocode for the following: User enters two uppercase letters or two …

Software Development algorithm c++
Member Avatar for safuan_1990
0
1K
Member Avatar for ehsantl

Hi guys I'm struggling to write a code for traversing a directed graph. It contains City as nodes. I'm trying to put City(s) to a LinkedList and then work with them to find the path. However, as you will notice I'm still newbie in C++. I have a *nextcities as …

Software Development c++ linked-list
Member Avatar for alwaysLearning0
0
139
Member Avatar for Chalandria

Again I have been given an assignment and have done it completely wrong. Please understand that I am completely new to programing and made the mistake of entering an accelerated class. I'm not looking for an A, I just want to pass and seek out help as often as I …

Software Development java unix
Member Avatar for Chalandria
0
354
Member Avatar for Pink12

Develop an application with object oriented model for an e-ticketing system for a cinema. It should allow its customers to browse and book tickets for movies. The system should handle customer registration , ticket processing and payment and support maintenance of the system as adding , deleting and updating movie …

Software Development java
Member Avatar for tenorsax08
0
80
Member Avatar for effizy

Hello All, Back again...Working on a program which requires that the user should be able to interact with the program. The objective of the program is this: A class called unique-bag which will store integers using dynamic array. This class stores only one copy of any given integer (no duplicate …

Software Development algorithm c++ data-structure
Member Avatar for ixmike88
0
148
Member Avatar for mike_2000_17

Hey y'all, I have been working on a tensor library (Nth-order multi-dimensional arrays) and I've been having trouble coming up with a good scheme for a multi-dimensional iterator template. Basically, I have a class template "tensor_container" which stores all the values of the N-order array (as a std::vector of one …

Software Development c++ programming-construct storage
Member Avatar for mike_2000_17
0
251
Member Avatar for Tom83B

Hi all! This is from my code: [CODE]struct R3 { float x; float y; float z; R3(float, float, float); R3(); }; R3::R3(float a, float b, float c) { x = a; y = b; z = c; } R3::R3() { x = 0; y = 0; z = 0; } …

Software Development c++
Member Avatar for Tom83B
0
115
Member Avatar for someone5

Hi, I made two classes in Bluej, in the first class I have constructed a window and the other class is a form where data can be inputted. How can I put the form in the window and make the window visible. Is this possible or do I have to …

Software Development java
Member Avatar for someone5
0
1K
Member Avatar for uzn

This is the error when i try to execute my code "Procedure or function 'Get Customer data' expects parameter '@Name', which was not supplied." [CODE]objCommand.CommandType = CommandType.StoredProcedure objCommand.CommandText = "GetCustomerData" Dim ObjParam1 As New SqlParameter("@Name", SqlDbType.VarChar, 2000) ObjParam1.Value = ID.ToString() Dim da As New SqlDataAdapter(objCommand) Dim dt As New DataTable …

Software Development sql vb.net
Member Avatar for crapulency
0
168
Member Avatar for wildrider30

Hi there, Could some1 tell me whats wrong with this code...I know i shudnt b using an int variable but whats the right one for a string... [CODE] #include <iostream.h> void main() { int a,b; cout <<"Enter the first name"; cin >>a; cout <<"Enter the 2nd no"; cin >>b; ((a=="Tom") …

Software Development c++
Member Avatar for DubyStev
0
399
Member Avatar for Jsplinter

I've read the documentation [URL="http://msdn.microsoft.com/en-us/library/ms644906(VS.85).aspx"]link[/URL] and several threads explaining how to make a timer. Now after hours I still can't get my test to work. In the testDlg.h header I declare: [code] UINT_PTR m_uTimerId; CString textControl1; // Controls an Edit Control afx_msg void OnBnClickedButton1(); afx_msg void OnTimer(UINT_PTR nIDEvent); int myX;[/code] …

Software Development c++
Member Avatar for Jsplinter
0
1K
Member Avatar for BarnacleBoy

So I'm trying to write this time keeping code for a project of mine. Basically, I'm adding 0.01 to a variable over and over again. While (A < B) { X = X + 0.01 A = A + 1 } I have written down the basic idea. The problem …

Software Development c++
Member Avatar for vijayan121
0
216
Member Avatar for tobine

a program that displays the first n prime numbers.

Software Development java
Member Avatar for sharathg.satya
0
79
Member Avatar for gahhon

[CODE]struct NamesAtt { char student_Surname[20]; char student_givenName[50]; char gender[100]; }Summary; ... void Students_Absence_Report() { system("cls"); printf("Student Presence/Absence Report\n"); printf("===============================\n"); printf(" Name \t\t%%Presence %%Absence\n"); for(i=0; i<student; i++) printf("(%d) %s %s\t %.2f\t %.2f\n", i+1, Summary.student_Surname[i], Summary.student_givenName[i], Presence_percentage[i], 100.00-Presence_percentage[i]); printf("\n"); printf("------- END OF ATTENDANCE REPORT -------\n\n"); system("pause"); system("cls"); } void Barred_Students_List() { system("cls"); …

Software Development c
Member Avatar for N1GHTS
0
215
Member Avatar for LianaN

Hi! My question is how could I add the checkbox column to my table. Well, I've tried the following solution, however it provides error message (null), if the table field is empty: [CODE] tableModel = new QueryTableModel(); tableAttributesFormTypes = new JTable(); tableAttributesFormTypes.setModel(tableModel); tableModel.setQuery("select at_code, at_title, at_type from Attributes"); class QueryTableModel …

Software Development java
Member Avatar for LianaN
0
579
Member Avatar for musikluver4

I am using JFrame for my GUI and I want to be able to select a row of text of a bunch of rows of text, one at a time. Like in Microsoft Outlook, you select an email and it selects the whole line for you of all the different …

Software Development gui java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Kiseki

hi guys, just wondering is it possible to set all the textbox align to center within a form using just only one line of code? Rather than using [CODE] 123TextBox.TextAlign = HorizontalAlignment.Center 456TextBox.TextAlign = HorizontalAlignment.Center [/CODE] for every Textbox. Thanks.

Software Development vb.net
Member Avatar for Kiseki
0
866
Member Avatar for javanew

It shows null pointer exception in Driver class, can anybody find me the error ?? [CODE]public class Node { int iData; double dData; Node leftChild; Node rightChild; public void displayNode(){ System.out.println(dData); } }[/CODE] [CODE]public class Tree { private Node root; //the root of the tree public Node find(int key) // …

Software Development java
Member Avatar for JamesCherrill
0
126

The End.