8,298 Topics

Member Avatar for
Member Avatar for djbsabkcb

I must ask user number of students who took test, then create a dynamic array and then get the scores for each student. Then calculate the sum,average of the scores. My problem is that once it calculates it continues to ask user for student scores. I am confused with this …

Member Avatar for winbatch
0
211
Member Avatar for jcs2380

I also have the same problem my virus scanner says that c:\counter.cab:\counter.exe is infected with a trojan but it cant delete it. Not sure what I should do. Heres my hijackthis log: Logfile of HijackThis v1.99.1 Scan saved at 8:33:14 AM, on 7/21/2005 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: …

Member Avatar for crunchie
0
138
Member Avatar for c#dummie

hi.. im new to c#.. got to do a project to display data (that was downloaded from another PC to my PC) on bar graphs like those u can find in [url]www.advsofteng.com/gallery_bar2.html[/url] > graph titled 'Product Revenue For Last 3 Years'.. i nid the codes to produce such a graph …

0
77
Member Avatar for tayspen

i got a .av file to play but how do i sop it how would i do that. also what code would i use to open a .wav file from in the proggie

Member Avatar for Paladine
0
140
Member Avatar for djbsabkcb

Below is the start of my source code for a program I am trying to figure out. We have to compute the approximate value of PI with random throws at a dartboard. It is considered a hit if it lands inside unit circle (0,0) and radius 1. Any help on …

Member Avatar for djbsabkcb
0
2K
Member Avatar for djbsabkcb

Below is my code to calculate interest and balances and how many months to get there. However, my months calculations are way off by the thousands. Any idea? #include<iostream> #include<string> #include<cmath> using namespace std; class Account { public: Account(); Account (double bal); void deposit(double amount); void withdraw(double amount); double get_balance() …

Member Avatar for djbsabkcb
0
2K
Member Avatar for djbsabkcb

Below is a program that determines if one address comes before another address using classes. One constructor takes an apartment parameter and the other doesn't. My errors are invalid conversion from int to const and among others. Any ideas? [code]#include <iostream> #include <stdlib> using namespace std; class Address { public: …

Member Avatar for djbsabkcb
1
988
Member Avatar for BeeNarak

Hi Anyone, I've made a web application, and now I want my web login by username and password as below but it's have got error('Login.WebForm1.DBConnection(string, string)': not all code paths return a value) anyone who can help me? [code] private bool DBConnection(string strUserName, string strPassword) { string LoginSQL; OleDbConnection MyConn …

Member Avatar for Paladine
1
172
Member Avatar for djbsabkcb

Below is my new code for this julian day program. I have fixed some of the errors I mentioned earlier. However, the day is still one short for the julian day and my conditional if statement seems to be the problem. I have tried a couple of ways to fix …

Member Avatar for zyruz
0
639
Member Avatar for djbsabkcb

Below is my Julian day program. I have to convert a day into julian and then get todays date and tell how many days from the julian date it is. I am having problems with the output of the julian date is off by 1 day and my difference output …

0
113
Member Avatar for drp

Hi, I've made a web application, and now I want to be able to distribute it with a copy of MSDE SP4. MSDE has to be installed via command line, and the web application takes a certain database setup. I've got all the scripts and commands ready to install the …

Member Avatar for drp
0
181
Member Avatar for CSharp-DG

Hi Guys... I'm a new memeber and need your help in coding C# Game. I've started coding in C# couple months ago and i have a project to submit next Wed (01/06/2005). I've been trying to working on the project for the last few days....but i couldnt code the project. …

Member Avatar for Gargen
0
157
Member Avatar for papouAlain

My software (C# Winform) need to connect to a website to download a file. The file is sought on the website with the login and password, then given to the client to download. If I try with the browser, the website gimme a page with the password and the login …

0
75
Member Avatar for djbsabkcb

Need help with the C++ programming. I am trying to compute the count of values, the average, and the standard deviation of the input given by user. My output is correct except for the standard deviation. My code is below: Thanks [code]#include <iostream> #include <string> #include <cmath> using namespace std; …

Member Avatar for djbsabkcb
1
504
Member Avatar for djbsabkcb

Below is my code for a class car efficiency program but I have some errors with the get_gas function. if you can help would appreciate it. [code] #include <iostream> #include <cmath> #include <cstdlib> using namespace std; class Car { public: Car(); Car(double); ~Car(); void add_gas(double); double get_gas(double); void drive(double); private: …

Member Avatar for djbsabkcb
0
169
Member Avatar for DotNetUser

I'm new to Visual Studio .NET. I thought C#.NET replaces VC++ 6.0 until I saw that C++.NET was still around. So, what's the difference between the two? I want to create a GUI that uses some C++ header/source files and a C++ socket library. Which would I use? I have …

Member Avatar for darklordsatan
0
233
Member Avatar for M Tritt

I'm trying to put together a tic tac toe game for a c++ class. Requirements are that it have two classes - gameboard and gamepiece. The gameboard I've pretty much taken care of, but I'm confused on how to set up the gamepiece class. Here's the requirements as given to …

Member Avatar for M Tritt
0
1K
Member Avatar for yaan

I've gotten feedback from my instructor to modify my code because it contains poor design techniques. I need to add a " return " after each function without it going back to " main " and also to avoid the use of global headers. I've tried to modify it several …

Member Avatar for BruceWilson512
0
181
Member Avatar for oRg

Hi, I'm fairly new to C++. I've taken a class on it at a university but it really only went through the basic I/O, data structures, classes, and pointers. It wasn't very algorithm oriented. It was all very basic. Here's the problem a friend of mine needed help with his …

Member Avatar for oRg
0
443
Member Avatar for gpta_varun

Hi All Can anyone plz suggest me a good site with C/C++ questions . I need them for an interview / test Thnx Varun

Member Avatar for indianscorpion2
0
155
Member Avatar for silkfire

Hi, I'd like to have tabs in my console app, but instead of using \t, I'd like to use an equivalent of the C++ setw() method in C#. Any ideas of what I might use? And another thing, in C++, you would declare more than one array with indexes like …

Member Avatar for r0ckbaer
0
2K
Member Avatar for Paul.Esson

What kinda appoch would people here take for tacking a gui on an already existant console program.

Member Avatar for Paul.Esson
-2
259
Member Avatar for white_eyez

Now we are doing pseudocode and looping.On my assignment I believe i should do a sentinel controlled loop? But i really don't know.It says this: Develop an MC++ application that will determine if a department store customer has exceeded the limit on a charge account.For each customer,the following facts are …

Member Avatar for Dave Sinkula
0
81
Member Avatar for maldini

Hi Guys, I am writting some c++ code. And need to use the directx library to render images to the screen. For those you don't have a CPU speed problem(like I have) you can render jpegs images onto the screen in real time with Ipicture class. However I have a …

0
133
Member Avatar for maherddd

this is an example of what is happening consider the program: #include<iostream.h> void main(void) { double x=2.3767553235; cout<<x<<endl; } when i compile it the output is only giving 2.37676 Why? I dont want only 5 decimal places,plz someone tell me why is this happening. i want it to be say …

Member Avatar for Dogtree
0
463
Member Avatar for floyd

Hi everyone, i am a student of IT and i am trying to read a text file and load it into a records of nested structs. I understand the logic how to do it, but i had a few problems. the txt. file contains : [code]John Smith 125 2004 Daily …

Member Avatar for Dave Sinkula
0
123
Member Avatar for somer2412

Can someone please help me on how to do the conversion of char to int using either a c-style cast or function-style cast. I have include my code. [code]#include <iostream> using namespace std; int main() { char state; cout << "Please select one of the following state abbreviations:\n"; cout << …

Member Avatar for Dave Sinkula
0
200
Member Avatar for populate

Hi Guys, After devloping couple of years and months........many projects in .NET framework.....using C# , VB.NET, and ASP.NET.........My personal vote goes to C#. No doubt I love to code in this languages. And I know many of you like so... So then whether VB.NET Programmer getting downward.....I can't say so,, …

Member Avatar for server_crash
0
157
Member Avatar for Dark_Omen

Hello, Can anybody tell me how to be able to open up internet explorer, and then go to a website using a URL and then controlling the website (not control like hack, but like being able to press the enter button or adding something to a textbox). I was trying …

Member Avatar for Dark_Omen
0
114
Member Avatar for Joe Diamond

Hi, I'm working in C# Windows Forms, with an MDI system. My documents contain several different objects. I want those objects to be shown as dragable windows *inside* the document (MDI client) window, and to be part of that window (ie scroll with it, affect the scroll bars, etc). I've …

Member Avatar for Toulinwoek
0
126
Member Avatar for davejigsaw

I am having trouble undestanding this code, can someone please help. I dont understand what the for loops do also. [code] void Merge( long array[], long left, long middle, long right ) { long i, j; long temp[MAX_ARRAY_SIZE]; for( i = middle + 1; i > left; i-- ) temp[i …

Member Avatar for Ghost
0
131
Member Avatar for dejaz

hi guys, i am stuck... we have to show wats in a file.... then at the end show the grand total of the Profits .. heres the report func.... [code]void report() { struct Prods ssg; double prof; FILE *f; f = fopen("data.dat","rb"); printf("\n\n\n==============================================================================\n"); printf("Prod# Type Description Qty Cost Price Profit\n"); …

Member Avatar for dejaz
0
251
Member Avatar for cspikes

I am a new c++ student trying to write code....please help..... I have a telephone entry Name has at most 40 charachters Seven digit number I want to be able to tell the number, name and reset name for name changes and reset the # if a person moves .

Member Avatar for Dogtree
0
139
Member Avatar for Funktar

omg i need help so bad. I've been working on a school project for what seems like an eternity and i'm close to deadline. Using FIFO's (i ahve to) to communicate between parent and child proc's. Right now I'm stuck on a read/write. fifomsg is a struct with int length …

Member Avatar for Dogtree
0
175
Member Avatar for Scuuba

ok, so I'm supposed to write a program which allows the user to input 5 candidate names and the number of votes they receive. The program should the spit out the names, number of votes, percentage of votes received, the total votes, and the winner of the election. This is …

Member Avatar for Scuuba
0
173
Member Avatar for Brent_Ritterbec

I am working through the book Visual C#.NET Step by Step, and I came to the section of the book where the author shows how to create comments on your code with XML. ///<summary> ///The obligatory Hello World in C# ///</summary> ///<remarks> ///This program writes out Hello World ///using the …

Member Avatar for casmith
0
150
Member Avatar for tgreer

Since nobody answered the thread on Binary File IO, I took a different approach. Now I'm having another problem. As I process a very large (>2GB) binary file, I store the byte position at certain points. Then, I reposition the file as needed. I store the byte positions in a …

Member Avatar for alpha_foobar
0
357
Member Avatar for Dave Sinkula

Suggestion: I like the language tags [url=http://www.gidforums.com/t-689.html]here[/url]. I've also seen them on cpp-home. Is something like this already on any wish list for Daniweb?

0
125
Member Avatar for silicon

Hello, I was hoping that someone could help me with this question. We received an extra credit queston which completely bombed on. That wasnt the problem, the problem was that I still cannot explain the questions below and since this was extra credit the professor would not give us the …

Member Avatar for silicon
0
181
Member Avatar for bobr_1013

How can I use "cin" to allow entry of an enum type in C++? My code is as follows: enum Cards {TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE}; Cards hand1 = ACE, hand2 = ACE; cout<<"Player#1 - Pick a card (2 - A): "; …

Member Avatar for Narue
0
8K
Member Avatar for Dark_Omen

I want to check someone's ip address when they come onto my website, is there a way that I can do that using c# and asp.net?

Member Avatar for Dark_Omen
0
136
Member Avatar for Dark_Omen

Hello, I want to know how to use xml and c#. Can someone give me and example of how to do this or link me to a good tutorial. Thanks in advance

Member Avatar for Dark_Omen
0
112
Member Avatar for nickgallimore

Hi guys, I'm a recruiter working on behalf of a young, progressive UK-based company developing a hosted secure email solution (potentially set to knock MessageLabs off their perch.....), based around Linux, Apache, MySQL and PHP. They're based in Kent and are looking for a relatively junior (2 yrs' experience) Software …

0
36
Member Avatar for gicio
Member Avatar for robert_sun

Can anybody help me on this problem: I am writing a simulation program with several files. In a header file, I declared e global variable in hope that all other files could use it. so i put down: #define size 100 int memory[size]; in the header file memory.h. However, there …

Member Avatar for Narue
0
132
Member Avatar for Mr Violent

I'm currently writing a game in DirectX without using the MFC structure. I am manually crating the window by including windows.h and manually creating the window by using windows functions. I am a bit confused when it comes to using strings. I would like to use the CString class, as …

Member Avatar for Narue
0
490
Member Avatar for sham

Hello , I am new to C# and want quick info to start. I know C, VB , JAVA. I am not sure where to start. Also does C# has any changes in .net2002 or .net 2003. Regards [Sham]

Member Avatar for nicentral
0
51
Member Avatar for meabed

This is a short list of recommendations on how to use C++. My experiences are from using gcc 2.8.0 and Visual C++ 6.0. I had to have things compatible between these two compilers, and between Unix and Windows. [b]Contents[/b] [color=#800080]IO of binary files[/color] [color=#800080]When are destructors called for local variables[/color] …

0
140
Member Avatar for Dark_Omen

Can anyone explained to me how to use asp.net with c# for web applications or direct me to a good tutorial on it?

Member Avatar for Paladine
0
120
Member Avatar for Jankos

Hi, i just started c++ programming in college this semester, and i have a project that i have no idea how to do. Im sure it will be extremely simple to all of you experts, but i just cant think of a way to do it. Maybe some of you …

Member Avatar for Narue
0
103

The End.