8,298 Topics
![]() | |
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 … | |
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: … | |
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 … | |
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 | |
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 … | |
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() … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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; … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
What kinda appoch would people here take for tacking a gui on an already existant console program. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 << … | |
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,, … | |
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 … | |
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 … | |
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 … | |
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"); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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): "; … | |
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? | |
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 | |
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 … | |
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 … | |
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 … | |
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] ![]() | |
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] … | |
Can anyone explained to me how to use asp.net with c# for web applications or direct me to a good tutorial on it? | |
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 … |
The End.