64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Prog.Learner

[COLOR=#0000ff]Hi folks,[/COLOR] [COLOR=#0000ff]I get this error message on this line when I try to count the amount of characters in a string. I wanted to count the characters so I can manipulate how the output is shown. It tells me no argument is made whereas I feel that the particular …

Member Avatar for John A
0
248
Member Avatar for ganbree

Ive been writing a DirectX application for some time and there has been a bug that I have been unable to fix, but this is to do wth the Windowsx API. I can run my DirectX application (Fullscreen) fine, but when I Minimise it then restore, fullscreen mode does not …

Member Avatar for ganbree
0
211
Member Avatar for debargha

hello, everybody.... i am new to java programming........so my question may be childish i want to ask that.....in java all methods and variables are public... by default(opposite to c++).so why we are writing public static void main(String args[]).main method can be accesed from anywhere even if i dont write public …

Member Avatar for debargha
0
134
Member Avatar for fmlyman

Yes, this is homework. This is my first course in programming and I am having a problem translating what I know I need to do into code. I basically need to write a progam that reads a person's name in the following format: first name, then middle name or initial, …

Member Avatar for John A
0
127
Member Avatar for scru

I have an event handler for the Leave event of a text box, that checks that the user has entered an invalid value. It displays a message and tells the user that the value entered is wrong. But here's the trouble: after if displays the message, it still allows the …

Member Avatar for scru
0
139
Member Avatar for abhinav.sharma

[CODE]#include <iostream> using namespace std; int main() { int a; cout<<"Enter a number"; cin>>a; [B]if(a=5)[/B] { cout<<"Five"; } else { cout<<"Not Five"; } } [/CODE] When I use the assignment, the result is always "five". I understand that a is assiged 5, but there is no statement to check for …

Member Avatar for abhinav.sharma
0
108
Member Avatar for kartik911

Hi i am a beginner in programming C++ language and am having a bug in the doubly linked list program. The problem is while printing the list in fwd direction the prgm prints the contents just fine. however while trying to print the list in reverse direction nothing gets printed. …

Member Avatar for kartik911
0
138
Member Avatar for SHWOO

Can anyone explain why I am not getting any output from this code [code] int _tmain() { String *sym[] = {S"BA", S"CA", S"MS"}; int shares __gc[] = {25, 100, 30}, price __gc[] = {25, 31, 37}; Random *randomCurVal = new Random(); int purVal, curVal; int totalPurVal = 0, totalCurVal = …

0
80
Member Avatar for rowly

Hello guyz i'm trying to write a stack program in C... Push one character onto the stack. Your function should have the prototype: void push(POINTER *Top,stackitem a); 2. Push a string of characters into a stack. Your function should have the prototype: void push_string(POINTER *Top,char *string); Your implementation should make …

Member Avatar for rowly
0
1K
Member Avatar for liz517

This is what I have. I know I am missing something can you help [code = python]import string def main(): print "This program replaces 4 lettter words in a file with xxxx" # get the sequence of words from the file fname = raw_input("File to analyze: ") text = open(fname,'r').read() …

Member Avatar for sneekula
0
124
Member Avatar for muggle_spy

[COLOR=purple][B]I NEED HELP WITH THE 4-QUEENS PROBLEM.:rolleyes: [/B][/COLOR] [B][COLOR=#800080]I HAVE TO BUILD A PROGRAM FOR 4 QUEENS SOLUTION USING C.......:?: [/COLOR][/B] [B][COLOR=#800080]FOR MY DATA STRUCTURE PROJECT.[/COLOR][/B] [B][COLOR=#800080]CAN ANY1 HELP ME WITH THE SOLUTION FOR THIS....... I NEED THE PROGRAM......[/COLOR][/B] [B][COLOR=#800080]THE QUESTION IS THAT: [/COLOR][/B] [B][COLOR=#800080]U HAVE A 4*4 CHESSBOARD. PLACE …

Member Avatar for muggle_spy
0
148
Member Avatar for afr02hrs

Can anyone spot the semantic error in this triangular number calculator here? It correctly reports 21 as being a triangle number but incorrectly that 15 is not a triangle number. However if you input 15 as the first value entered it correctly says that 15 is a triangle number!! [code] …

Member Avatar for John A
0
156
Member Avatar for i_like_pi

Does anybody know how to use integers larger than the "long long int" type? I have tried using arrays of ints, but mathematical functions are impossible. Thanks in advance. :cheesy:

Member Avatar for i_like_pi
0
90
Member Avatar for intellogo

Hi, I am using the following items in my s/w.... ------------------------------------------------------ Reporting Toolkit: Crystal Report (CR 11). S/W Front End: Visual Basic 6.0 with Service Pack 6 Back End RDBMS: Microsoft Access 2000 ------------------------------------------------------ I am almost done with CR 11 and its integration into my s/w. Great Thanks !! …

0
85
Member Avatar for afr02hrs

Hi I am new to C++ and I would be grateful for some help with the following: [code] #pragma argsused int main(int argc, char **argv) { AnsiString Line; int Index; Line = ReadStringPr("Enter your text. It must not finish with a space character." ); Index = 1; while (Index <= …

Member Avatar for Lerner
0
347
Member Avatar for jan1024188

I have this code (example) [CODE] const char g_sz_className[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UNIT msg,WPARAM wParam, LPARAM lPraram) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage; break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int WINAPI WinMain(HISTANCE hIstance, HISTANCE hPrevIstance, LPSTR lpCmdLine, int …

Member Avatar for jan1024188
0
118
Member Avatar for addicted

please i need someone to help write a program that receives some sets of binary numbers and convert to decimal..... using C++

Member Avatar for thekashyap
0
98
Member Avatar for thekashyap

Hello *, I was writing an assert() stmt when I realized the following (see code). Can anyone explain why/how. My final aim is to be able to write an assert stmt for verifying that my function (a demo function) works fine. I heard from someone that there are special assert-macros/comparision-operators …

Member Avatar for thekashyap
0
1K
Member Avatar for heyman121212

Okay I need to find a way to mix up a word (a String) recursively. I have just been trying some stuff: [code] import java.util.Random; public class JumbleRecursive { public static void main(String args[ ]) { String word = "test"; System.out.println(jumbleRecursive(word)); } public static String jumbleRecursive(String word) { String a …

Member Avatar for iamthwee
0
110
Member Avatar for kahaj

Trying to learn VB.NET, I have a question about the following code: [CODE]Public Class WageCalculatorForm 'handles Click event Private Sub calculateButton_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles calculateButton.Click 'declare variables Dim hours As Double Dim wage As Decimal Dim earnings As Decimal Const HOUR_LIMIT As Integer = …

Member Avatar for kahaj
0
128
Member Avatar for shy_wani

hi..i'm new in using ASP.NET application. Please guide me as i've only about 30% knowledge on developing web application in .NET ok..my problem is.. i have a textbox.. i wanted user to create multiple option by entering each option per line in the textbox... in other words..if user want to …

Member Avatar for hollystyles
0
293
Member Avatar for arunk8186

Hi friends, I have written a C program which involves some iterations of numbers that I input in a table. >> Now I want to know how to import these values say from excel or some text instead of me inputtin them.... Any suggestion wil bw very helpful. Thanks and …

Member Avatar for arunk8186
0
134
Member Avatar for Eyies

Hey all, I'm new to this forum, first post.. so please excuse me (also excuse the perhaps not so eloquent style, it is still in preliminary!) =). I'm writing a short piece of code in compliance with a webserver I've been programming with a group. This code is to auto …

Member Avatar for Eyies
0
101
Member Avatar for varun.coolmax

I am using a ADODB connection to connect to an access database and am using an SQL string as the comandtext....but i need to check the validity of wat i have typed.....here is the sql statement.. [code] dim cmdcommand as new adodb.command With cmdCommand .ActiveConnection = conConnection .comanttext = "select …

Member Avatar for varun.coolmax
0
89
Member Avatar for robotnixon

Just registered but you guys have been a big help for the whole semester. I have what seems to be a simple problem but I'm just stuck. My assignment is a game of life sim that prompts the user for an input file, and then reads integers from the file …

Member Avatar for robotnixon
0
196
Member Avatar for Frost

Hi there, nice to meet you all. I'm a beginner using visual basic only started to learn it about a months ago. I'm having serious trouble at the moment. I need a program that as soon as it is opened it prints the time into 100ths or miliseconds of seconds, …

Member Avatar for vidyahajare
0
5K
Member Avatar for AussieCannon

Hello, I am having a great amount of difficulty understanding events for wxPython and have read many tutorials and other things so I was wondering if you could try to help me understand. First of all I am using Boa-Constructor so practially all of my code so far is autogenerated. …

Member Avatar for jrcagle
0
562
Member Avatar for R6er

Hi, I am writing a little program in C++ that is used to read a file which contains several paragraphs. The paragraphs are not indented and there are a blank line or sometimes two blank lines before the start of each paragraph. I have written the program and can read …

Member Avatar for R6er
0
163
Member Avatar for amithasija

can any body help me out in my situation ,i want to retrieve some results from database , when i choose a value from the selection box. thanx in advnce tc

Member Avatar for pty
0
136
Member Avatar for bhuvan83

Hi every1, Is there any way that i can secure my ms access. i want when ever any one opens my database,it should ask for a password. any way of doing it? the database has already been created thanks in advance

Member Avatar for bhuvan83
0
87
Member Avatar for swordy06

Hi fellow c++ programmers, I need some help with an assignment from my c++ class. The assignment is to use a input file with the following 1 4/12/2007 34 -- 1 is the reference number, date , and temperature to be converted to farenheit. Now i have to output it …

Member Avatar for John A
0
252
Member Avatar for nikkidee

Can anyone tell me why I'm getting build errors on the actual function heading and the line under it (**) saying "type bool is unexpected" and that I'm missing a ; before {? I've looked and can't find anything. Also, I get this error but there is no line 80 …

Member Avatar for ~s.o.s~
0
180
Member Avatar for ziofu

Hi! I'd like to know how to print something when the user ends the program (with ctrl-c for example). An example is the "ping" command (in most linux versions), that gives the average ping when the user terminates it. Thank you!

Member Avatar for ziofu
0
98
Member Avatar for Riazansar

hello dears! i have a question about my program i am suposed to make a program that calculates thea factors of a number and add them and see if the number is a perfect number. i made this program and it works fine but now i have to change this …

Member Avatar for Riazansar
0
171
Member Avatar for kardan

This has been driving me mad for a few hours now. I have created a web application in VWD Express which has tested fine on localhost. I have now transferred this to a test server. Every time I click on anything that causes a postback a 404 Error - File …

Member Avatar for kardan
0
91
Member Avatar for k_en

dim num, GOPercent num = Request.Cookies("Result") GOPercent = num/25 [COLOR="Red"]Type mismatch: '[string: ""]'[/COLOR] Error Type mismatch. But the value i put in Response.cookies("Result") is a CInt(value) how to solve this ?????

Member Avatar for k_en
0
189
Member Avatar for Masood Ali

Hi All... I'v a piece of code kindly help me understanding its functionality [code] #define FLAG_CDR 0*01 #define FLAG_MSR 0*01 unsigned Flags = AFE_REG_FLAG_CDR | AFE_REG_FLAG_MSR; Flags &= FLAG_MSR; // 'turn off cdr flag' [/code] how it works...

Member Avatar for Masood Ali
0
276
Member Avatar for intellogo

Hi, I have used a Flex Grid control in displaying a set of records from the MS ACCESS database (back end) with the means of VB6 code (front end). In my database i have 9 records and the flex grid control has been deisgned at design time with 7 rows. …

Member Avatar for intellogo
0
802
Member Avatar for Siebe

Hello all, I'm working on an app that takes a huge computational effort. It all works fine, but while calculating all other processes are overruled: - switching between forms doesn't work while my app is computing - Progress bars aren't properly refreshed, despite my form.refresh command So basically I'd like …

Member Avatar for Siebe
0
117
Member Avatar for amt_muk

Hello Friends, Suppose I have a function like - [code] void myFunc( char* str) { ....... ....... } [/code] And I have to pass a pointer of type "const char*" into that function. Now my question is that can I pass the pointer like following way (ie by custing it …

Member Avatar for amt_muk
0
203
Member Avatar for guy40az

I have not done any c++ programming yet but was wondering how you use arrays in a for loop for example the code below int i; double D_Nath(11),D(11),er(11); for( i=0;i < 11; i++) { D_Nath(i)=PI*D(i)/er(1)*.76554; } how dod you get this to work correctly. Thanks for any help with this.

Member Avatar for guy40az
0
95
Member Avatar for anasta

Does anyone have an example to show a dynamic array of a db table that can be updated. table consists of 3 fields of which the team name is the only constant- points and percentage need to be changed weekly. Any help will be very much appreciated, i have tried …

Member Avatar for anasta
0
99
Member Avatar for ongxizhe

Sorry to embarass myself here. Does anyone knows how to use C or C++ or Java Programming, or any other language for programming for novices? I'm a REALLY beginner. Anyone that is Professional in Programming and willing to teach please kindly teach me the BASIC of programming and the language, …

Member Avatar for ongxizhe
0
118
Member Avatar for Navrex

Hey every1...........i need to know dat which of the library is used in VC++ for graphics interpretrion... Can any one help me......????????????????????????????????????????????/:rolleyes:

Member Avatar for Navrex
0
176
Member Avatar for k_en

i know session variables store on the server side and cookies store on client side. Question: If i save the total answer for a summation as a session variables, and multiple online user are using the same system for calculation, does that means that session variable will be over write …

Member Avatar for todaydvd
0
97
Member Avatar for mrjoli021

This code is supposed to sort the numbers I input. I get only 0's [code=c] // Group Project 10.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <vector> using namespace std; void selectionSort (vector< int> list, int length); void fillArray(vector< int> list, int …

Member Avatar for mrjoli021
0
98
Member Avatar for TingTing

[B]this is my 1st time to post. help pls.[/B] [B]can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad: [/B]

Member Avatar for TingTing
0
141
Member Avatar for Rickenbacker360

Hey, it's been quite awhile since I last posted, but I'm stuck. What I'm supposed to do is look at this code and tell what would appear on the output screen. I ran the program and found that it should display: 2 3 6 1 5 0. However, I just …

Member Avatar for Rickenbacker360
0
122
Member Avatar for someoneelse

I am new to ASP.net as of today :) I have jumped many hunrdles alreday, writing/deleting text files, connecting to a db, sendiong emails, yeah me. I am looking for 1 concise example to show how i can take the contents of a form and insert them into a datbase. …

Member Avatar for blacklocist
0
105
Member Avatar for mouigher

I have to write a program that converts user entered Kilometers into Miles. But, I need to use two functions in addition to main program which is... [code] def main(): print "This program converts distances measured in kilometers to miles." kilometers = input("What is the distance in kilometers?") miles = …

Member Avatar for mouigher
0
461

The End.