49,761 Topics

Member Avatar for
Member Avatar for arakawid2120
Member Avatar for riotburn

I am trying to automate my program for Simpsons rule. Finally got it running thx to here, so now I'm trying to have it ask the user for all the variables on run. Everything is good except for inputting the function to integrate itself. After entering the function i get …

Member Avatar for jonsca
0
1K
Member Avatar for team_ferrari22

Hi All, We want to create a c#/VC++ application by using which we should be able to create sql server database SNAPSHOTs in our own file format (in online manner). And later we should be able to get data from those snapshots files in offline manner using our application ( …

0
100
Member Avatar for team_ferrari22

Hi All, Is there any way to convert the Sql Server 'Snapshot' files (*.ss files) to some other format...like 'xml','xls' or 'txt'...etc. Thanks.

Member Avatar for kvprajapati
0
111
Member Avatar for c1979h

I need some guidance formulating a Do, For, While output using a Fibonacci sequence. After searching the foums I only saw posts that had just the sequence of numbers outputed like so: 01123453 after a set number was preset. I need the output to display like so: 0 +1 = …

Member Avatar for jonsca
0
122
Member Avatar for higuain14

Hi I'm new to c++ programming. This is my first ever program, it calculates the average of numbers that the user input. The user can input up until 10 numbers. I get a segmentation fault for some reason. Any ideas? [CODE]#include<iostream> using namespace std; int main() { int numbers[10]; // …

Member Avatar for naresh.M
0
113
Member Avatar for casjackkwok2001

I'm working on my c++ assignment (bubble sort), but i 'm stuck on my code. Is there anybody know how to print out the array contents after [B][U]each pass [/U][/B]of the sort? Should I use a for loop or a function call to print out?? thanks int first_array[8] = {13, …

Member Avatar for vmanes
0
258
Member Avatar for AmigaCarolena

I do not have a clue here. I am floundering along but not getting anywhere. Any suggestions would be greatly appreciated. Thank you. /*This is a program that processes a loan for a car using appropriately named variables. It will use those variables in the input, calculation, and output of …

Member Avatar for gnarlyskim
0
329
Member Avatar for corby

the only problem i have now is that when i enter the symbols to draw the border and fill for the rectangle, this is what is drawn: lets says witdh 10 and length 5, the border is % and the fill is @. %%%%%%%%%% %% %% %% %%%%%%%%%% The filling …

Member Avatar for EngSara
0
142
Member Avatar for gnarlyskim

As you can see I am new here. I found this site from googling a question about a getChoice() function , and I was able to learn how to implement the function in my project to fit my needs from the post. ([url]http://www.daniweb.com/forums/thread162456.html[/url]). Well anyways, I have more issues that …

Member Avatar for gnarlyskim
0
1K
Member Avatar for zhaviere

Hello, I am a new programmer. I am trying to copy the elements of this 20x3 array into a 1x60 or 60x1 array an[60]=A[20][3] one of my attempts is:[code] for (i=0;i<20;i++) { for(j=0;j<3;j++){ at1[i]=A[i][j]; at2[i]=A[i][j]; at3[i]=A[i][j];} } an[60]={at1,at2,at3};[/code]

Member Avatar for mrnutty
0
2K
Member Avatar for corby

my compiler keeps saying that i have an operator error at lines 22 and 50. what did i do wrong??? plz help [CODE]#include <iostream> using namespace std; class Rectangle { public: Rectangle()/*rectangle constructor defaults the values for length, width, area, and perimeter to 1 and initializes five rectangle objects to …

Member Avatar for corby
0
112
Member Avatar for Jiwe

Hello, today I got a new issue on the program im developing so.. the issue is that I want to change a file in this path [B]C:\Users\[USERNAME]\AppData\Roaming\[PROGRAM NAME].[/B] But the thing is when a user's computer has a different language then english this path changes to something like this [B]C:\[Users …

Member Avatar for Jiwe
0
143
Member Avatar for cassds

I just started a C++ class at a local tech school. It is a self taught course, and I have just learned how much "self taught" applies to this course. The instructors have no experience in programming and can not answer the simplist of questions!! The book I was asked …

Member Avatar for cassds
0
792
Member Avatar for Stefano Mtangoo

I work out a small project. I need to Get list of folders in each drive. Up to now I can get the drives but I have no Idea on how windows treats Drives. Does it treat them as super Directories (Super folders) that contain many sub-folders? If not How …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for MrYrm

First of all im new here so Hi all.. im also new to c/c++ have been a java php and actionscript developer for some time now and finally have time to learn something new so im gonna go for c++ im just tryna get familiar with everything but i ran …

Member Avatar for Stefano Mtangoo
0
119
Member Avatar for CppBuilder2006

the process Foo is running. Foo calls a lot of functions (loaded somewhere in RAM). how can a programmer get the names & prototypes of all functions called (or loaded) by Foo? now suppose the programmer suceeded to identify the function Hitler(int,int) called by Foo. how can the programmer redirect …

Member Avatar for WaltP
-4
147
Member Avatar for mathpro

Hi, I am trying to implement a bottom-up merge sort using void pointers, but I am having some problems. I am using visual studio to compile it and it gives an error that requires me to break the execution. I am new using void pointers, so I am positive that …

0
52
Member Avatar for newcuser

Hello, I am attempting to rewrite a program in c. Here is what I have so far. Thanks in advance for assistance. [CODE]#include <stdio.h> void sales[ salesPerson ][ product ] += value; int main() { const int PEOPLE = 5, PRODUCTS = 6; double sales[ PEOPLE ][ PRODUCTS ] = …

Member Avatar for mitrmkar
0
179
Member Avatar for wwsoft

Hello , I a creating program in witch objects are stored in the namespace var in var.h. How do I make the var namespace available to more than one file without having redefinition errors ? [CODE] ### var.h ### namespace var { ... } ### main.cpp ### #include "var.h" //multiple …

Member Avatar for wwsoft
0
141
Member Avatar for mebob

i was trying to make a program that uses the chudnovsky algorithm to calculate pi with this code: [code] #include <cmath> #include <iostream> #include <cstdlib> using namespace std; float fac (float num) { float result=1; for (float i=1; i<=num; ++i) result=result*=i; return result; } int main() { double pi=0; float …

Member Avatar for vmanes
0
438
Member Avatar for iarkey

Ok well I'm making a console msn client. [CODE]#pragma comment(lib, "wsock32.lib ") #include <windows.h> #include <iostream> #include <stdio.h> #include <string.h> int main(){ char buf[12]; WSAData wsdata; WORD wsver=MAKEWORD(2, 0); int nret=WSAStartup(wsver, &wsdata); if(nret != 0){ std::cout<<"Startup failed, error code: "<<WSAGetLastError(); WSACleanup(); return -1; } std::cout<<"Init success\n"; SOCKET kSock=socket(AF_INET, SOCK_STREAM, 0); …

Member Avatar for iarkey
0
146
Member Avatar for wdow

I'm trying to write code for a very basic version of the game 24. This code will receive either two, three, or four integers and determine if there is any way that these numbers can add, subtract, multiply or divide to the number 24. Locations of parenthesis can change as …

Member Avatar for wdow
0
182
Member Avatar for JHus00

It wont compile! I know something is probably wrong with my if condition but im unsure of what. [CODE]if (weight > 200) shipping_cost = 49.95; else if (weight >= 100 & < 200) shipping_cost = 39.95; else if (weight >= 50 & < 100) shipping_cost = 24.95; else if (weight …

Member Avatar for JHus00
0
110
Member Avatar for lolster

Hello there, I'm trying to understand this source code to block the packet send to the application I'm using right now. Basicly this source code is for making application that will crash the application that Im using atm. I have no basic C++ knowledge. I hope someone could explain this …

Member Avatar for lolster
0
240
Member Avatar for xrv1

Im supposed to implement a quad tree that will input cities into a fixed format. when the user asks for a particular city, all cities within a certain range will be displayed. i think i have the right method's in place, but for some reason or another, the program wont …

Member Avatar for WaltP
0
123
Member Avatar for corby

Ok the problem im having is in my setRectangleLength and setRectangleWidth. The compiler shows no errors so everything is fine. However when I try to validate the length and width between the values of 1-20 it does not work. When the program asks the user to enter another length or …

Member Avatar for corby
0
110
Member Avatar for arafat_alam

i am facing problems of destructor in the following code.destructor is not working.can any one help plz???? [CODE] #include<iostream> #include<cstring> #include<cstdlib> using namespace std; class strtype { private: char *p; int len; public: strtype() { p=(char *)malloc(sizeof(char)); *p='\0'; len=0; } void getString(char *str) { len=strlen(str); p=(char *)realloc(p,sizeof(char)*len); strcpy(p,str); } void …

Member Avatar for arafat_alam
0
129
Member Avatar for srinath3

[CODE]#include<iostream.h> class alpha { int x; public: alpha(int i) { x=i; cout<<"\n alpha constructor"; } void show_alpha(void) { cout<<"x="<<x<<"\n"; } }; class beta { float p,q; public: beta( float a,float b):p(a),q(b+p) { cout<<"\n beta constructor"; } void show_beta(void) { cout<<"p="<<p<<"\n"; cout<<"q="<<q<<"\n"; } }; class gamma:public beta,public alpha { int u,v; …

Member Avatar for srinath3
0
155
Member Avatar for Eternity[LK]

Hi. I have never used a command-line compiler before and I'm very confused now. I need to use this compiler for my home assignments in one of my subjects in University. I installed the compiler but I don't know how to use it. Help file says: [I]To see a list …

Member Avatar for Eternity[LK]
0
140

The End.