199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Juliopp

How to do it? Please! Thanks! A $1 mini-prize is available for the right answer (PayPal or AlertPay)

Member Avatar for cwarn23
0
175
Member Avatar for clutchkiller

[Linker error] undefined reference to `add()' Can someone explain that a little? Do i need to include my code to help you guys explain? Thanks

Member Avatar for clutchkiller
0
67
Member Avatar for slanker70

Hi, I've seem to have a problem declaring an object within a switch statement. It keeps saying [QUOTE]error C2360: initialization of 'roll' is skipped by 'case' label[/QUOTE] My code is as below [CODE]case 2: // 25 % chance of being able to run. int roll = Random(1, 4); if( roll …

Member Avatar for Salem
0
100
Member Avatar for agz86

i have a text box that should only accept alphabets... i know we hav 2 use RegularExpressionValidator but i dunno the format to write the code in.. plz help me out.. thanx in advance..

Member Avatar for ajsa
0
92
Member Avatar for clutchkiller

[code] #include <iostream> #include <windows.h> using namespace std; float v1; float v2; int oper; float ans; int add() { v1 + v2 == ans; } int sub() { v1 - v2 == ans; } int mult() { v1 * v2 == ans; } int div() { v1 / v2 == …

Member Avatar for clutchkiller
0
90
Member Avatar for n8thatsme

Ok well I have 4 char arrays. Each array has predefined words in them. For example: [CODE] char *article[MAX_ARTICLES] = { "the", "a", "one", "some", "every", "any" }; [/CODE] I'm trying to make random sentences as defined by the user. So if they type in the value 567 or whatever …

Member Avatar for n8thatsme
0
169
Member Avatar for denner

the ls -ali output will be treated like a string input for the c++ program i need to write. i have tried to output ls -ali command into a txt file and below is the output of the ls -ali: -rwxr--r-- 1 User1 root 26 Nov2 19:51 Mydb.txt basically, the …

Member Avatar for stilllearning
0
676
Member Avatar for afg_91320

hey guys its me again with the rock paper scissors game. well after spending the whole day on it (ok not really) i was able to write a proper code for the game that would ask user for their input and randomly select one for the computer. now it should …

Member Avatar for chococrack
0
131
Member Avatar for Koldsoul

I am working on a program that reads in a text file as a command line argument, then goes through the file, breaking the file down into strings, special symbols (such as .:!;?) and integers. The program stores each type into its own collection. I have all the collection methods …

Member Avatar for Koldsoul
0
149
Member Avatar for Naters_uk

Is it possible to send sms from an asp.net webform? :eek: I have searched multiple sites, but can't really find anything useful..any advices?

Member Avatar for jalpaeol
0
464
Member Avatar for AON07

I need help deleting a row from a mysql database using a drop down menu form. i want to be able to just select the category i want to delete and then hit the delete button. For some reason I can not get this to work. I'm also fairly new …

Member Avatar for R0bb0b
0
1K
Member Avatar for mypopope

Hello I'm new to computer programming , and I'm using Dev C++ 4.9.9.2. I'm also reading C++ How To Program Pearson International Edition from DEITEL as my source of knowledge. I don't if I'm reading the right book and using the right c++ software or compiler. Hop you can give …

Member Avatar for stilllearning
0
120
Member Avatar for OmniX

Hi guys I am trying to allow people to upload any image (size, format, etc) and reformat it into a jpeg file of 50 by 100. Now im not sure if this is possible to re-format but I know you can re-size the image. At the moment I am having …

Member Avatar for OmniX
0
72
Member Avatar for jworld2

Okay, so I'm trying to make a kind of clock program, where every second it displays the next image in the sequence. I does just that. It displays the next image. But it doesn't replace the previous image, it just puts the next image on top. How would I get …

Member Avatar for jworld2
0
74
Member Avatar for antwan1986

Hey everyone. I was reading the documentation for this function and I can't understand what the example is doing, and how it's working. Can someone explain to me what these functions are doing? [CODE] <?php function odd($var) { return($var & 1); } function even($var) { return(!($var & 1)); } $array1 …

Member Avatar for antwan1986
0
114
Member Avatar for Liszt

I have encountered a problem when using the backgroundworker. What I do is that I will have the oppurtunity to press the cancelbutton to stop the backgroundworker. The code that I am using below works without any problem as expected. The thing that happens is that an error message occurs …

Member Avatar for Liszt
0
604
Member Avatar for briandouglas

Hi everyone! Unexpected situation. Is there a setting in MySQL that permits a record to be output to the requesting page even though one of the two value pairs is incorrect? And if so, can it be changed? Here's the problem: I have attached a querystring to a URL. It …

Member Avatar for dickersonka
0
77
Member Avatar for mypopope

Hello I'm new to computer programming. I just want to ask where to download a C++ installer and what compiler is good to use. thank you:)

Member Avatar for ArkM
0
142
Member Avatar for rkumaram

I have few question, If i have two private member array in my class how can I use [] operator for my use, something like following, [code] class foo { int iarray[10]; char carray[10] public: //constructors //copy cons nd assignment ans all }; [/code] So my first question is When …

Member Avatar for ArkM
0
151
Member Avatar for andrea_kay

I need desperately help with this homework assignment. And I'm starting from the beginning. It's a problem that makes us write a counting loop program, and I believe you use while and if else in this program. Here is the problem and the given outputs. I got started on it, …

Member Avatar for DevonMcC++
0
126
Member Avatar for dusse

How can I change a character of a string within an array of strings? An execution error happens if I run the code below.. [code=c] int main(int argc, char *argv[]) { char *d[] = {"aaaa","bbbb","cccc"}; cout << d[2] << endl; //PRINT cccc d[2][2] = 'x'; cout << d[2] << endl; …

Member Avatar for Aia
0
347
Member Avatar for ahamed101

Hi, For last one week I have been trying to do conversions between UTF8, Multibyte, Wide Character and Ascii... Finally managed to code a working program... Thought this might help some one, so posting it here... If there are any errors, please point out... If you have any doubts please …

0
169
Member Avatar for JimD C++ Newb

Hello all!!! First off, I'd like to say THANK YOU for such a great site. I've learned a lot here in the last 2 months! I'm currently in a Data Structures class and our current assignment is: Read data from a .dat file (name, address, phone #) and store the …

Member Avatar for JimD C++ Newb
0
109
Member Avatar for Freaky_Chris

Hi, i'm havnig problem with calling CreateThread. The problem is that it gives me a conversion error from const void* to void* [CODE=Ccplusplus]DWORD dwThreadId; HANDLE myThread; myThread = CreateThread( NULL, 0, MyThreadFunction, "HELLO", 0, &dwThreadId); [/CODE] dwThreadId id is the problem, the function is supose to take a pointer to …

Member Avatar for Freaky_Chris
0
276
Member Avatar for polo_coins

I have some code bellow enum Part ( center,north,south); ...... how can i to prevent from an user to enter a data out of range of this enum group. I mean if he/she type 3 or 4 Thanks Sergey

Member Avatar for polo_coins
0
78
Member Avatar for noobguy

I am new to this forum so please enlighten me. I posted a question that I needed help with about 4 hours ago since then there has been several visitors to the post but no replies. Is it that the question was too hard or worded incorrectly please tell me. …

Member Avatar for Narue
0
98
Member Avatar for laoballer

Hi all, I'm in need of a way to decompress .gz files that will be downloaded from the NCDC. These Files contain weather information that will be used for some analysis work. My problem is I have a vb6 application and would like to be able to decompress these gzip …

Member Avatar for debasisdas
0
161
Member Avatar for Chris11246

Im new to C# and Im trying to call one class from another but I cant figure out how. Also Im trying to use a random number so that if it is greater then a number it will call the class but i cant seem to use the number

Member Avatar for LizR
0
68
Member Avatar for RouseA

I have been programming in C for many years, but I have just started using GCC/Eclipse for a new project to develop a product using an embedded ARM processor. I have found a problem that hasn't existed in previous C compilers I have used: I have created a define as …

Member Avatar for ahamed101
0
222
Member Avatar for tcoma4x4

Hello All, I have a question and need some help with a c# console application project that asks the user to enter the number of rows to calculate and display Pascal’s Triangle. What I really need help with is how to properly format the output in the shape of a …

Member Avatar for tcoma4x4
0
251
Member Avatar for afg_91320

im making a program that will let you play rock paper scissors with the computer. the code will be in function format with a switch statement for the menu. this is how it should look: welcome to rock paper scissors! select a choice 1. rock 2. paper 3. scissors 4. …

Member Avatar for kenji
0
348
Member Avatar for chern4ever

i would like to insert my data from txt file to array. but each line of my txt file contains more than one data. eg : "Data1","Data2","Data3","Data4" how do i sepreate each data to array[0][0],array[0][1],array[0][2] and array[0][3]?? i only know how to use getline function to take a whole line …

Member Avatar for VernonDozier
0
233
Member Avatar for priti_s

Hi I have come across a question in a collection which says: One can add a reference of a collection to itself. Is it true or false? I read the explanation that, we can add the reference to the collection to itself, but it results in the [U][B]stack overflow of …

Member Avatar for Ezzaral
0
121
Member Avatar for polo_coins

Hi, again about [B]DateTime[/B] method I get to some conclusionns and build a class of my problem that solve the last expired day of some product I get a day od today and number of month when product can used without any problem and the day when product was made …

Member Avatar for polo_coins
0
90
Member Avatar for unbeatable0

Just wanted to know... is there any variable in C++ that can hold larger numbers than [icode]unsigned long long int[/icode], or is it the largest variable? Thanks in advance :P

Member Avatar for dmanw100
0
130
Member Avatar for gregorynoob

okay...i've got another wired counting problem, this time it's about rectangles! gotta find the minimum number of lines to divide a rectangle into squares! i went for...ehh well a dumb idea of cutting the max square off, and cutting the little ones recursively, but... doesn't always work. you're given the …

Member Avatar for dmanw100
0
149
Member Avatar for Nemoticchigga

I want to delete a bitmap. How do I do this in c++. DestBitmap->Save("TempImage2.bmp"); . . . . . //later something like Delete("TempImage2.bmp"); is there a way to do this. thanks, nemo

Member Avatar for Liszt
0
129
Member Avatar for navcha

hi all, my problem is i have data like below(dates are in dd\mm\yyyy format) start_date end_date fruits_eaten per_day_fruit_eaten 5/5/2008 14/5/2008 40 40/10 = 4 12/5/2008 21/5/2008 30 30/10 = 3 20/5/2008 30/5/208 55 55/11 = 5 i want to calculate above data like below for the dates between 10/5/2008 and …

Member Avatar for Salem
0
100
Member Avatar for zerozerozero

An encoded file will be decoded by the program using a key input from the user. This key is a sequence of numbers that will scramble the message in the file into its appropriate order. I have to use linked lists for this. I already started it, but I can't …

Member Avatar for zerozerozero
0
70
Member Avatar for PuQimX

can somebody help me this code cannot run. I can't find the error... [code=c] #include <stdio.h> #include <conio.h> #include <ctype.h> #include<stdlib.h> //use for fflush and exit(0) #include<string.h> //use for strcpy void calculate(); void insert(); void exit(); #define TRUE 1 void calculate_and_sort(int end_of_file); int input1; char ch; typedef struct{ int num; …

Member Avatar for Salem
0
170
Member Avatar for elizabeth.h1

hello all I am getting an failed assertion when using the _tcscat_s function. Expression : (L"String is not null terminated" && 0) file : _tcscat_s.inl line : 32 and the assertion does not fire always, and I try to figure out why but without any success how can i fix …

Member Avatar for Salem
0
258
Member Avatar for crazzym

Hello, I know this is something extremely easy to do but i don't master the python syntax at the moment. I've read the documentation and I've been searching on the 'net for information but nothing that I've found seems to be what I'm looking for. Probably the reason is the …

Member Avatar for crazzym
0
166
Member Avatar for sharareh26zaman

hello dear friends I have written a simple file merger and the code has been shown as bellow but I get an error that I do not how to solve it please guide me .

Member Avatar for Salem
0
120
Member Avatar for Amisha_Sharma

Hi all, I want to know thtat what is the advantage of learning PYTHON.Where this language is used? Is this languge have any scope in future? Thanks

Member Avatar for Stefano Mtangoo
0
79
Member Avatar for harrykokil

hi guys.. im having problems with my traffic lights. i want to execute the procesing of the traffic lights infinitely (i.e red to green to red continuously). im providing my code hoping to get a positive response soon. thanks.. [code=python] import Tkinter as tk import time import sys import datetime …

Member Avatar for sneekula
0
182
Member Avatar for vmars

In the Starting Python [ [url]http://www.daniweb.com/forums/thread20774.html[/url] ] Post, I configured as specified, but when I take that 1st code example [ print "Hello Monty Python!" ] and save it as a file [ HelloMP1.py ], and open it in the Edit Window, and run it from there, I get the …

Member Avatar for sneekula
0
114
Member Avatar for uae_uae99

after i tried many times to solf this program i couldnt do it this is the sorce of my program and it is about sell and rent a care. my problem is when i run do progrm it works but when i try to see the car i want buy …

Member Avatar for sidatra79
0
153
Member Avatar for blackryu21

I need help to change certain values in an Array that I have to a character array. Here's the code [code] #include <iostream> using namespace std; int main() { char X; int nROWS = 4; int nCOLUMNS = 4; int anArray[4][4] = {{0,1,2,3}, {10,11,12,13}, {20,21,22,23}, {30,31,32,33}}; string headings[4] = {"LA", …

Member Avatar for Freaky_Chris
0
104
Member Avatar for nea_m

Hello all, Im trying to display an image to the right side of radio buttons. I kind of did it, but my OK button is too low now, which means I must have put this echo code in the middle of the radio button list or something. Im an absolute …

Member Avatar for nea_m
0
232
Member Avatar for cicigirl04

Here is my code. I have a warning that (127) : warning C4715: 'ComputeSum' : not all control paths return a value [code] #include <iostream> using namespace std; const int MAX = 10; // Function prototypes, i.e., declarations for the functions we have created void ReadInput (int A[], int number, …

Member Avatar for sidatra79
0
130

The End.