132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kimw

does anyone know where i can find a library for minimizing a function, given a set of parameters and contraints? (similar to Solver in Excel) i've searched around and found quantlib/solvers1d but am still at a lost of how to use it .. any help is appreciated, regards,

Software Development c++
Member Avatar for kimw
1
183
Member Avatar for Iqbal_h_a

It is not allowed to declare a variable of same structure type but it is allowed to declare a pointer. For example, [code] struct node { int a; struct node x; //not allowed struct node *pnext; //allowed }; [/code] My question is when we can declare a pointer of same …

Software Development c c# c++
Member Avatar for Iqbal_h_a
1
197
Member Avatar for BombAppetit

greetings i'm not too sure if this is the correct place to ask for this in this particular forum i'm working on to make a USB PIC programmer. is it possible to modify the firmware for 16F628 used in Wisp628 board, so that it can be burnt into an 18F4550 …

Software Development assembly
Member Avatar for mostafadotnet
1
140
Member Avatar for blahhh101

hi i really need help on making c++ problems about the long math problems like long addition,subtraction, multiplication and division i've only began learning awhile ago so i just needed some samples or algorythms for this, if not both would be appreciated, if not a link to some guides about …

Software Development c++
Member Avatar for Salem
1
210
Member Avatar for ashokkumarrsp

how to generate a state transition diagram in c.. give me the implementation steps

Software Development c
Member Avatar for Dave Sinkula
1
857
Member Avatar for bh_hensem

Hello, Could some body help me how could i delete any duplicate or same record of the input ? This is my plan but i am not sure it si working with C++ or not :- My program will be pass "number" values to this function and the function will …

Software Development c++
Member Avatar for Bench
1
155
Member Avatar for beuls

I have written a program in c# for quick sort using multithreading. but the code has a problem. the array is not sorted properly. i think it is because the parent thread terminates soon before the child threads sort the array. i am attaching the code herewith. kindly help me.any …

Software Development c c# c++ multithreading
Member Avatar for _r0ckbaer
1
273
Member Avatar for santosdas

Hi, I've c source code developed in 32-bit linux machine. Can I run it in 64-bit linux machine. Thank you. Santos

Software Development c
Member Avatar for Rashakil Fol
1
113
Member Avatar for V1RuZ

Hi out there. I can't get the constructors in my header files to work. Here's a copy of my header file code: [code] #ifndef GUARD_PHEADER_H #define GUARD_PHEADER_H //The header file for the Person.cpp. //person_header.h #include <iostream> #include <string> //Person class declaration class Person { public: std::istream& read_surname(std::istream&); std::istream& read_name(std::istream&); std::istream& …

Software Development c++
Member Avatar for Dave Sinkula
1
236
Member Avatar for bops

Hi, I want to create an application like character map, for only specific characters, and extra features. There is quite a large problem in doing this though. I want to have controls whos captions have these special characters. However when I am creating this using my IDE, Pasting these characters …

Software Development c++ ide
Member Avatar for Ancient Dragon
1
135
Member Avatar for VinC

I'm self-teaching myself C with a complete reference book. Unfortunately that means that the author assumes that the reader is familiar with fundamental concepts and doesn't bother commenting the code. Here is an unnecessarily obfuscated code excerpt demonstrating "the use of return statements" along with my attempt to understand what …

Software Development c++
Member Avatar for VinC
1
127
Member Avatar for puppy

I have an assignment that asks me to explain the "order of complexity" of an algorithm. Can anyone explain what that question means? Does that mean what happens first and so on? Thanks.

Software Development algorithm c
Member Avatar for Micko
1
100
Member Avatar for ze_viru$

Below is my crazy program.What i want it to do is that it should take two arrays from the user;the 1st array should be the memo & the 2nd should be answers.These two arrays should be passed to function compare of the type bool.In compare the 2 arrays should be …

Software Development c++
Member Avatar for mostafadotnet
1
124
Member Avatar for muhammad amir

actually i dont have complete concept about bigO notation that usually used to find time complexity my question is in bigO notation why we ignore constant for example f=100n we say that our algorithm has order of n time comlexity or order

Software Development algorithm c
Member Avatar for Grunt
1
151
Member Avatar for padmakar

how to run an audio file in C programming language as we access a textor any other kind of file........

Software Development audio c
Member Avatar for ~s.o.s~
1
104
Member Avatar for Starfighter330

Hi, I am new to this web site and new to C++ programming. I am still in school and learning everyday. I am not catching on to some things so I was wondering if one can Help me. My problem I am working right now has to do with averaging …

Software Development c++
Member Avatar for VinC
1
8K
Member Avatar for vbcielle

Please help can you help me debug my code i cant display the result and the computation for sum is error... help me please :sad: [code] #include <stdio.h> int i,counter; float sum; struct cgrade { char course[50]; float credit[50]; float grade[50]; }; struct cgrade GPA[50]; main(){ printf("Enter number of courses …

Software Development c display
Member Avatar for vbcielle
1
127
Member Avatar for SHWOO

Can anyone figure out why I get -9.032654e something from my biWeeklySalary function? [code] #ifndef EMPLOYEE_H #define EMPLOYEE_H #include "HireDate.h" #include <string> using std::string; class Employee { public: Employee(); Employee( const string &, const string &, const string &, const HireDate & ); ~Employee(); void setFirstName( const string & ); …

Software Development c++
Member Avatar for Salem
1
272
Member Avatar for kimw

i am a little bit confused about the actual usage of the find function of map i have say a vector<string> and i want to return the relative position (or iterator) of a key (of type string) in this vector. now, the find function accepts only one input which is …

Software Development c google
Member Avatar for Grunt
1
141
Member Avatar for SHWOO

I have instantiated an object, bob, and have an array with hours for each day bob has worked. When I try to call bob.biWeeklySalary( hours[] ) it doesn't work. I'm not really sure how to use the array here. The compiler just says that hours is an undeclared identifier. Your …

Software Development c++
Member Avatar for mostafadotnet
1
142
Member Avatar for dilip.mathews

I have executed the below programm on both C and C++ compiler and got different results [CODE]#include <stdio.h> int main() { const int a=10; int *p=(int*)(&a); *p = 20; printf("address of a=%u\t%d\n", &a,a); printf("address of p=%u\t%d\n", p,*p); return 0; } [/CODE] With C compiler I got the output address of …

Software Development c++
Member Avatar for WolfPack
1
478
Member Avatar for LieAfterLie

Hi, i'm new to C++ (well actually i just haven't looked at it in awhile) and I've been trying to figure out how to make my array's content depend on a condition. It's not extremely important, but I think there's got to be an easier way than what I'm using. …

Software Development c++
Member Avatar for WolfPack
1
910
Member Avatar for akadri

Can anyone suggest me a nice and easy to use C/C++ compiler under Windows.. Give the URL from which I can download. Thanks in anticipation...

Software Development c++
Member Avatar for WaltP
1
261
Member Avatar for arjunsasidharan

im jus into basic.. i need to create a login form containing the fields Username, UserID and Password. It has to be connected to the MS Access Database and when the login button event is clicked i want it to check t database whether the details are all correct n …

Software Development vb.net
Member Avatar for Tanvir
1
108
Member Avatar for Miles Archer

I have never compiled before, and I will leave it to you gurus. But I want to drive this (single) program around the block, so any assistance would be appreciated. I have: WindowsXP Pro Borland Compiler 5.5 (free version) MS Visual C++ 2005 Express and the Platform SDK I am …

Software Development c++ data-structure visual-studio
Member Avatar for Salem
1
344
Member Avatar for Vickyy

Good Day one and all, I am final year MCA student. I want to do one mini project in this semester. I know VB, VB.NET. I already done a student management system for a school. Now i need a good project title to do in this semester. can anyone give …

Software Development vb.net
Member Avatar for Bharati Krishna
1
480
Member Avatar for Killer_Typo

got to thinking that i couldnt find a way to find the intersect of a string and array nor could i find a quick way to do an array / array. i searched a bit on google and didnt really find anything that showed me something like Array.Intersect(array a, array …

Software Development google
Member Avatar for alc6379
1
355
Member Avatar for rdubey_jsr

I am reading a CSV file and parsing its content into tokens. Now i want to know how to check for End of File. I am giving my code to be more clear. [CODE][COLOR=#0000ff]ifstream file(filename); if (file) { char ch ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; …

Software Development c++ file-system
Member Avatar for WolfPack
1
290
Member Avatar for tllcll

Hi, Is there anyone who know of any website that offer free interactive learning of java? TQ

Software Development java
Member Avatar for tllcll
1
87
Member Avatar for paramveer

Hello group, Could anyone of you tell me how to convert string to const char* in C ....function c_str() is not working ...i dont know why............ Thanks...

Software Development c++
Member Avatar for Narue
1
112
Member Avatar for winbatch

So here's what I'm trying to do. Basically, I have a huge text file of strings which are delimited by a delimiter. I would like to read each string separately based on the delimiter. Note that each chunk can span several lines, so I don't want to read it line …

Software Development c++
Member Avatar for Ancient Dragon
1
221
Member Avatar for binod

Can any one help me out... How can i read website uploaded xml file e.g [URL="http://www.abc.com/book.xml"]www.abc.com/book.xml[/URL] reading xml file is not a problem if it reside on my PC. but i need to read and save book.xml (as shown in the above example) Please let me know the code if …

Software Development xml
Member Avatar for alc6379
1
152
Member Avatar for jchaike

[FONT=Comic Sans MS] :?: Ok, I am a pretty good with visual basic, i have almost mastered the basics and thoght it would be cool to make my own personal os, the way i want it, updating it whenever i feel, i am not sure if it is possible, but …

Software Development visual-basic
Member Avatar for Comatose
1
2K
Member Avatar for valiant_aleksei

Hello people! i reallay dont have a clue how to connect my newly made database to my c# please help.

Software Development c# sql
Member Avatar for alc6379
1
757
Member Avatar for geez85

Hey, i just got alil problem. Im trying to create a 2d array with a size of [1000][1000]... [code] double variable[1000][1000] = { 0 }; [/code] its compiles fine but when i run the program, it just crashes...is the array too big?? the maximum i can get is [300][300]...any ideas??

Software Development c++
Member Avatar for dubeyprateek
1
4K
Member Avatar for matika

hiii all do any1 knows how to read the header of a file to know its format as example if i've a mp3 file but it's name do not include .mp3 i wanna make a program that read the header of the file and detect it's format but i dont …

Software Development file-system
Member Avatar for tayspen
1
274
Member Avatar for Smooth_411_2000

I need to know who to call up other forms from one form or another and also see and unistall programs from a computer using vb programing

Software Development visual-basic
Member Avatar for Comatose
1
103
Member Avatar for Asif_NSU

The following code finds the square root of a number, it runs fine unless you compile with MinGW gcc: [code] #include<stdio.h> #include<stdlib.h> int main(void) { double x0,x1,a; int i; x1 = 1; x0 = 0; printf("\nFind square root of: "); scanf("%lf",&a); for(i = 0; x0 != x1; ++i) { x0 …

Software Development c++
Member Avatar for Asif_NSU
1
1K
Member Avatar for pnjeim

Hey there, I have a large program in Matlab that I have to translate into C. Is there any function or program that can do that automatically? Thanks, Patrick

Software Development c
Member Avatar for Dave Sinkula
1
758
Member Avatar for ghadahelal

i want 2 use the ignore function 2 ignore some of my inputs data, but i dont know how i'm using C++

Software Development c++
Member Avatar for Bench
1
254
Member Avatar for behrk2

Hey guys- I have to write a program in C, a pretty printer, that will be used in formatting assembly language code. To run the input, a source file must be provided as input for the 1st argument. A 2nd runtime argument is optional and, if present, it must be …

Software Development assembly c printer
Member Avatar for Narue
1
243
Member Avatar for Asif_NSU

I am kind of confused about how DestroyWindow() works. According to the help files this function sends a WM_DESTROY message to the window it has just removed from the screen. In my [inlinecode]WindowProc[/inlinecode] I have something like the following: [CODE] case WM_CLOSE: { DestroyWindow(hwnd); return 0; } case WM_DESTROY: { …

Software Development c++ window-manager
Member Avatar for WolfPack
1
743
Member Avatar for winbatch

So I'm trying to learn how to use function pointers (ie to pass the address of a function to another function to execute it - like a call back). I have it working when I use it as follows: Classes.h: [code] #include <iostream> using namespace std; class Class1 { public: …

Software Development c++
Member Avatar for dubeyprateek
1
736
Member Avatar for Asif_NSU

I am trying to access files in a folder. The folder name and location will be given - the program will search inside the files in that folder for a specific pattern(yup like grep). However, I am not sure how to actually let my program know what are the files …

Software Development c++ unix
Member Avatar for Ancient Dragon
1
263
Member Avatar for Podge

Hi, I am looking to hire someone to spend some evenings or days helping me understand Visual C++ 2005 better. I am a Structural Steel Detailer by trade but have developed some application related to my field. I have written some in C and C++ but I would like to …

Software Development c++ email visual-studio
Member Avatar for Podge
1
202
Member Avatar for Lippy

I am learning C++ using Stephen Pratas "C++ Primer Plus" (excellent book btw). However i am stuck on exercise 6 chapter 4, where in essence i just have to use new to allocate the array of structures dynamically. I can allocate a single structure dynamically, however i still do not …

Software Development c++
Member Avatar for Narue
1
207
Member Avatar for TheUglyKing

[COLOR=DeepSkyBlue][COLOR=Cyan]how do i change/get my port number because i have my ip address and all that i just need to find my port number. if you know it please tell me how to change or get one for free since i need it for my site if your interested in …

Software Development java
Member Avatar for paradox814
1
105
Member Avatar for avik1612

I wanted a pragram in C showing the working of various CPU scheduling algorithms like SJF, Round robin.priority etc.

Software Development algorithm c
Member Avatar for Salem
1
167
Member Avatar for Melissa111

Hello guys :) I have a prog. assignment due on Sunday! I need help to get me started. The task is implement a program for any hamming codes not just (7,4). The user input the following: 1. Desired hamming code (n,k) 2. Choose to encode or decode. So, I am …

Software Development c++
Member Avatar for DMR
1
3K
Member Avatar for nazgand

[SIZE=3][FONT=Comic Sans MS][B][COLOR=Magenta]im new :o to vb though ive done some qb before could anyone post games to make a collection so i could learn[/COLOR][/B][/FONT][/SIZE]

Software Development first-post vb.net
Member Avatar for smacksnox
1
101

The End.