132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mridula J

Hi All, What all the difference between Macros and Inline functions. Why do they prefer inline functions? When Do macros come in use? What are the disadvantages of Macros and inline functions? thanks in advance

Software Development c++
Member Avatar for mattjbond
0
132
Member Avatar for halluc1nati0n

I was trying out a 2-dimensional integer array on a UNIX box. I hit up a 'Segmentation Fault' on trying to run it. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main() { int matrix[2000][2000]; int i, j; srand ( 1 ); for (i=0; i<2000; i++) { for (j=0; j<2000; …

Software Development c++ unix
Member Avatar for halluc1nati0n
0
209
Member Avatar for nonexcep

Hi there. I'm learning Java and this is a sample applet in which I try some basic drawing operations. I hit some roadblocks and I'm hoping someone can point me in the right direction. What I want to do here basically is make a rectangle with exactly 10 pixels of …

Software Development api java java-swing
Member Avatar for gangsta1903
0
108
Member Avatar for VibhorG

In my database application, there are three tables: class : c_id , c_name section: c_name,sec_id,sec_name student:c_id,sec_id,roll_no,s_name. There are 2 comboboxes: One for selecting class name and other for selecting section name . Now I want to add enteries to student table, such that : (i) I select class name from …

Software Development
Member Avatar for VibhorG
0
289
Member Avatar for turbomen

Dear All, Could you tell me what is wrong or missing for my coding? Cheers, [CODE] unit Example3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Edit5: TEdit; Button1: TButton; Button2: TButton; Edit6: TEdit; …

Software Development pascal
Member Avatar for finalist
0
185
Member Avatar for kedarm

Hi! I'm trying to build a Python extension with C/C++. I'm following the steps given in the documentation [URL="http://docs.python.org/extending/extending.html"]here[/URL]. I've followed the steps mentioned and written my first code. However, I have no clue on how to compile the project! I do not know how to create the .pyd file …

Software Development c++ file-system python
Member Avatar for kedarm
0
5K
Member Avatar for clutchkiller

[url]http://en.wikipedia.org/wiki/Brainfuck[/url] Interesting. One day once I figure out c++, I might give this a whirl!

Software Development c++
Member Avatar for clutchkiller
0
87
Member Avatar for Mandarinire

Hi guys, Can you help me out with this project. My head is fried with this now. I am getting confused when you have to call on functions outside the class and variables from outside the class. What i need to get done is the following: a. Add a close …

Software Development java
Member Avatar for javaAddict
0
2K
Member Avatar for shubhamshah

Hey Guys, Im not so good at VB.NET , and ive been learning for about 3 months. I would really appreciate it if you guys would help me tackle this problem down. Well , im helping a school run a Spelling Bee aimed at children in year 7. And to …

Software Development vb.net
Member Avatar for kvprajapati
0
267
Member Avatar for NILESHMPRABHU

How Do I Make My Vb Executable Filel In To A Service So That It Starts As Soon As System Starts. Also If This .exe File Is Closed, I Want To Shut The System. Please Help.

Software Development visual-basic
Member Avatar for kmeldo
0
362
Member Avatar for underground111

I NEED HELP WITH THIS ASSIGNMENT. I HAD THE WHOLE ASSIGNMENT DONE AND MY COMPUTER CRASHED AND LOST EVERYTHING. THE ASSIGNMENT IS DUE BY SUNDAY AT ANYTIME. I KNOW PEOPLE DONT LIKE IT WHEN YOU ASK FOR SOMEONE TO DO IT FOR THEM BUT IM NOT ASKING THAT I JUST …

Software Development c++ linked-list
Member Avatar for Nick Evan
0
178
Member Avatar for jose385

Hello, I've been working with C trying to get factorials which I've successfully accomplished but my code needs to output an error message when inputting negative numbers, unfortunately my code outputs an error when using 1 and 0. This is what my code looks like (keep in mind I'm a …

Software Development c
Member Avatar for jose385
0
114
Member Avatar for manal

Salam... I need to get value that has been selected from combobox .. the values in combobox is taken from column's contents of one of tabel in database..so once i write if x=combobox.selectedvalue..i got error that i Additional information: Operator is not valid for type 'DataRowView' and string

Software Development vb.net
Member Avatar for kvprajapati
0
8K
Member Avatar for eURe

Hi; I would like to set the authorisation for the user that access to the application, when the check is done that the user doesn't hv the permission to use the particular function (add/delete/edit record), then the button will be disable from user view. I have following code, it's seem …

Software Development open-source
Member Avatar for kvprajapati
0
115
Member Avatar for scottb2

How do I create an Outlook Distribution List in a folder other than the default "Contacts" folder? I could probably create the DL there and then move it to the desired location, but that feels so wrong. I'm using C# but I can use VB, etc. Thanks, Scott

Software Development email
Member Avatar for kvprajapati
0
115
Member Avatar for cerralife

I have to write a spell-check program for school and I have 2 specific quick problems: the first is that I'm trying to write a function that takes 2 adjacent letters of a word and switches them then returns the new word... it goes on to the next to letters …

Software Development python
Member Avatar for Gribouillis
0
182
Member Avatar for Iam3R

Hi , when i run the program i got the same out put by using memcpy and memmove but i dont understand the difference between them. manual page says that memory area should not overlap in memcpy but can in memmove. what is meant by moving memory and how its …

Software Development c
Member Avatar for Salem
0
693
Member Avatar for philosafari

I'm trying to compile the following code that I wrote out: [CODE]#include <iostream> #include <cmath> #include <iomanip> using namespace std; void gauss(double, double, double, int); int main() { const int n1 = 4; double prompt; double A1[n1][n1] = {{3,0,3,-4},{0,1,1,1},{1,1,1,2},{2,3,1,3}}; double b1[n1] ={7,0,6,6}; double x1[n1]; gauss(A1, x1, b1, n1); cout << …

Software Development c++
Member Avatar for philosafari
0
114
Member Avatar for Ryman

Hello, I have been trying to use the ID3tool to organize a list of MP3 files in a windows bat file. I have completed it in bash and I'm trying to convert to batch right now. Anyway, here is my problem: I'm trying to get the album name for the …

Software Development shell-scripting
Member Avatar for Salem
0
230
Member Avatar for Carrots

Hi, I have been wrestling with this program all day and am looking for some help. I have never separated a program up before into separate files (main.cpp, base.h and base.cpp). What I'm trying to do is call a function from main() and have that function return a pointer to …

Software Development c++ visual-studio
Member Avatar for Carrots
0
173
Member Avatar for Broseph

Hey guys. I hate to have to ask for help but I've run out of ideas. The program I'm trying to write is supposed to write a random list of numbers 0 - 4 and then count the occurrences of each number. The only thing I can't get to work …

Software Development c++ linked-list
Member Avatar for Broseph
0
86
Member Avatar for rudekhan

i just installed c++3.0 in XP downloaded from internet . But when i run very simple COUT<<"hello" code it doest produce out put. As i compile and run with out error but no output i can see. I have LCD is there any problem even i chaged the LCD and …

Software Development c++
Member Avatar for rudekhan
0
275
Member Avatar for student02

Hi guys, I just want to ask if its possible to print some desired fields or data that is within database or vb used on MS word.. like this one example: First Name: (Field_FirstName on db) Last Nane: (Field_Lastname on db) scan by: (Text1.Text on vb) is it possible? if …

Software Development visual-basic
Member Avatar for student02
0
118
Member Avatar for Purnima12

[CODE] #! /usr/bin/env python import random possible = [2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 30, 34, 50, 100] size = int(raw_input('Please enter the size of the die you would like: ')) if size not in possible: print """ Please check the Wikipedia Dice …

Software Development python
Member Avatar for snippsat
0
605
Member Avatar for ELBUF

The title isnt too clear, and I wasnt sure what to title it, so Ill explain it here. I am making a calculator that can handle big numbers such as scientific notation and powers. A big number is one decimal (coefficient) times ten to a power (exponent). Ex. 3x10^15 or …

Software Development c++
Member Avatar for ELBUF
0
126
Member Avatar for casjackkwok2001

Write a function that accepts an int array and the array’s size as arguments. The function should create a new array that is [B]twice the size of the argument array[/B]. The function should copy the contents of the argument array to the new array. I tried to run on it, …

Software Development c++
Member Avatar for Ancient Dragon
0
161
Member Avatar for jemz

hello, can you help me..is it possible that i will change the default font of the messagebox?....can i make it bold or using any fon..please help me on this ...thanks in advance hoping for your positive responds.

Software Development visual-basic
Member Avatar for vb5prgrmr
0
89
Member Avatar for jimJohnson

I am working on an assignment and was wanting to know if one of u guys could let me know if I have 1. correct before I go to 2. Here are the instructions... 1. read in the data then displayed the data. 2 Add the following a. add a …

Software Development c++ data-structure
Member Avatar for jonsca
0
249
Member Avatar for v_janssens

Hi, I'm trying to find a way to calculate the eigenvalues and eigenvectors for a square symmetrical matrix. I have used MATLAB to do this before and the solution was as simple as; [V,D] = eig(A) I'm wondering if there is a simple solution like this in c++. I am …

Software Development c++ matrix-multiplication
Member Avatar for DavidB
0
302
Member Avatar for donelliewhyte

Smiles dental centre requires a computer system that can maintain records on its patients as well as automate specific processes that take place daily. The centre has a dental surgeon, an orthodontist and a dentist. The orthodontist deals with customers with braces (new and existing customers); the dental surgeon will …

Software Development c
Member Avatar for Ancient Dragon
0
144
Member Avatar for vampgirl13

Hi Guys, So I'm trying to fix a small problem with my code. It does everything correctly but when reading from the file I want to not count the space between words. For instance if the line is Hello world the output should be: 11: Hello world but instead it …

Software Development java linked-list printer
Member Avatar for vampgirl13
0
109
Member Avatar for kartouss

Hello, I need to a browse button to be able to open an image in the image control and also be able to get the path for the image... Can anyone help...

Software Development visual-basic
Member Avatar for chrisjake
0
648
Member Avatar for hondros

Okay, so I have about 6 GB of music on my iPod. I don't want to go through and copy everysingle file and rename it manually, so I am making a python script to do it for me. I would just like to have some feedback on my code, make …

Software Development audio debian java-swing legal os-x python samba unix
Member Avatar for hondros
0
555
Member Avatar for hondros

This simple script will copy all music files that were not purchased from the iTunes store to a directory of your choosing. It requires the ID3 module (Created by some person, from somewhere, I forget where, but I DID NOT make this module). The syntax is as follows: [code] ipoddir …

Software Development iphone python
0
480
Member Avatar for jofin123

Hi Friends i want to Print the JTable content with Grid Could you please help me how to do that I AM POSTING my CODE HERE [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.table.*; import java.util.*; import java.sql.*; import java.awt.print.*; public class Report extends JFrame implements ActionListener, Printable,Pageable { private …

Software Development java java-swing
Member Avatar for rdavid
0
184
Member Avatar for ma.ali786

hi, to all will you provide some real good example on backgroundworker control in vb.net for doing some process in background for ex a reading a doc file in textbox by using backgroundworker in vb.net

Software Development vb.net
Member Avatar for TomW
0
124
Member Avatar for gingank

Hi All, I'm a newbie to VB.net can anyone have any tips or guide or tutorial to learn the VB.net?? Please guide or help me. Thank in advance

Software Development vb.net
Member Avatar for TomW
0
91
Member Avatar for Aurorian

Hello Daniweb! I'm a beginner and C, and trying to make a program that asks a question in the main and takes an input from the user which jumps to the appropriate function. Here is the source. [code] #include <stdio.h> #include <stdlib.h> #include <math.h> void cm(){ float a; double b; …

Software Development c
Member Avatar for Murtan
0
98
Member Avatar for OnTheRadio

My assignment is: Your goal is to write a program that sorts a list of 4-letter words using different sorting algorithms and report the fastest method. First your program should prompt the user to indicate the number of words to generate. Your program should then generate a list of random …

Software Development algorithm c++ dataset
Member Avatar for OnTheRadio
0
117
Member Avatar for Lygris

Hey, how's it going? I decided to pick up Python for the heck of it and have been having some trouble creating this Card Deck class. All this class is supposed to do is initialize a deck, and then draw a card at total random: [code] import random class CardDeck(): …

Software Development python
Member Avatar for Krstevski
0
343
Member Avatar for dnalor

[code=cplusplus]#include <iostream> #include <conio.h> #include <iomanip> #include <fstream> using namespace std; const int numStudents = 5, numQuiz = 10, numAssign = 10, numFinal = 1; const int totalGrades = 21; void computeStudAver(const int grade[][numQuiz], double stAve[]); void computeQuizAver(const int grade[][numQuiz], double quizAve[]); void printall(const int grade[][numQuiz]); int menu(); int main(); …

Software Development c++ ios
Member Avatar for brillantes
0
87
Member Avatar for iman_shani

Hej i am trying to create a simple game as homework from my school. now i just stuck on one stage. see the picture on this link how it looks like. [URL="http://jobbalert.se/"]http://jobbalert.se/[/URL] i have created a module here is the code for module file [CODE] Module Module1 Public Sub bknapper() …

Software Development vb.net
Member Avatar for iman_shani
0
326
Member Avatar for TheWolverine

Hi all, I was wondering if there is any standard way in C++ (perhaps in the standard library) of handling mathematical equations that are composed of +/- signs. For instance, if you are given the equations: [quote] y = +/- sqrt(x) z = +/- y [/quote] Is there an efficient …

Software Development c++
Member Avatar for TheWolverine
0
150
Member Avatar for jdpjtp910

I have a code and its almost done. Its for a school project and I am stuck. I have DivSales and a CorporateSales.cpp. The programs should ask the user for 6 divisions quarterly sales. Display the results into a table and give a total of sales. My total feature is …

Software Development c++
Member Avatar for Murtan
0
1K
Member Avatar for daviddoria

This code: [code] #include <iostream> class Parent { int name; class Child { int school; void test() { std::cout << this->name; } }; }; int main(int argc, char *argv[]) { Parent MyParent; return 0; } [/code] Generates this error: [code] error: 'class Parent::Child' has no member named 'name' [/code] Is …

Software Development c++
Member Avatar for HealBrains
0
174
Member Avatar for kendaop

Hello, I'm getting a segmentation fault in my code, at the IF statement. Can anyone tell me why? The printf() statement right before outputs the correct data, so *buffer definitely isn't null. Thanks for your help. [CODE]int main(int argc, char *argv[]) { FILE *inputFile, *rejects; char hold[200], hold2[30], *buffer = …

Software Development c
Member Avatar for abhimanipal
0
127
Member Avatar for rockstar8577

For some reason i cant output to a file unless it was already created. Here's my code. [code] fstream myfile; myfile.open (filename.c_str(), ios_base::in); if (!myfile) { myfile.close(); myfile.open (filename.c_str(), ios::out); avatar.name = name; avatar.init(); myfile << "Name = " << avatar.name << endl; myfile << "hp = " << avatar.hp …

Software Development c++ ios
Member Avatar for rockstar8577
0
118
Member Avatar for Don_k

Hi guys here is what I aim to do : Create a program which 1. reads in a string of less than 25 characters from the user 2. prints out the string followed by its reverse i.e. if the user enters "hello", the program should print "helloolleh". I can do …

Software Development c
Member Avatar for abhimanipal
0
126
Member Avatar for AJW

hello all, I'm taking a C++ class at my local community college. A project that was assigned was to make a menu program. I am about 90% done (I think), when I ran into this issue: when making a selection, the program doesn't know how to handle decimal numbers. The …

Software Development c++ ios
Member Avatar for AJW
0
110
Member Avatar for Don_k

My aim is to create a program that: 1. reads in a string of less than 255 characters from the user into a variable called array1 2. copies array1 into a variable called array2, converting each element of array1 to UPPER CASE 3. prints out the contents of array2 I …

Software Development c
Member Avatar for Dave Sinkula
0
122

The End.