8,298 Topics

Member Avatar for
Member Avatar for Joey_Brown

Hello. I have a question regarding a task I was given. It goes : Fill the array with random numbers and then print out how many times theyve appeared like so : [CODE] /* ARRAY : 0 0 0 0 1 1 1 2 2 2 2 2 6 6 …

Member Avatar for Joey_Brown
0
109
Member Avatar for nssltd

Hi During my Web browser program i have got a bookmarks bar running but when ever i add a bookmark to it the name is the URL, which is bad if you are adding a Google search page. When i try and add document title into the equation apparently i …

Member Avatar for nssltd
0
143
Member Avatar for zozanthonyzoz

Hi all, I need to have a program to word count remove punctuation and sort it in alphabetical order. I had done the word count portion but i am lost in removing punctuation and sorting in alphabetical order portion. Hoping to get some help. [code] #include <fstream> #include <iterator> #include …

0
257
Member Avatar for geojia

Hi, this is my first time posting and I would like thank everyone in advance. I'm doing a homework assignment that requires me to design a teller application which simulates a bank. I'm currently getting a segment fault, after I call one of my getBranch(). I've tried to do this …

Member Avatar for geojia
0
181
Member Avatar for imprezal2345

I've finished a void display function for an in-game menu. I'm trying to have the menu stay at the top of the cmd for the length of the game. However, since it's a separate function, the program stays in the menu function, and never reaches the functions that follow it. …

Member Avatar for imprezal2345
0
1K
Member Avatar for borogirl09

I am working on a program that reads students name and test score from a file. The program should assign the appropriate letter grade, then output the name score, and grade. It should also determine the highest test score. I do not see where my errors are. Please help! [CODE]// …

Member Avatar for VernonDozier
0
155
Member Avatar for jobyjames85
Member Avatar for dduleep
Member Avatar for Jmknight
0
105
Member Avatar for terabyte

Hello I'm starting to learn c++ and I'm wondering if I should wait until c++0x standard is published (since I'm not in a hurry, currently learning Perl and Java) or should I start learning c++ with an old book I have If i do learn c++ w/ the 2003 standards …

Member Avatar for Bench
0
147
Member Avatar for tagazin

Hello, I'm trying to realize a simple calculator but when I double click the file.exe to see the output, my program keeps running in the terminal, maybe I created an infinite loop.. I'm using cin.get() I don't understand.. I compiled it with G++ (MinGW), using Win Xp. can someone help …

Member Avatar for tagazin
0
363
Member Avatar for codemogul

someone please help me with printing out body parts... read in word from list..user inputs letter.when correct letter is place on line..else ..im stuck here..cannot print out body part when input is wrong.. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; void pickword (); int …

Member Avatar for mtbs1826
0
91
Member Avatar for jlininger

Hi I am new to the programming world . I took a certification course for my MCTS .net I passed one of two certs for MS. But even though i undersatnd syntax i don't get coding in its entirity. I don't want to see that my time and money went …

Member Avatar for Diamonddrake
0
101
Member Avatar for dnambembe

Hi, I am writing a code that reads input from user to create a linked list database at the same, time it write the data received in to binary file. when I run the program is supposed to prompt the user to enter the data for ten time, however the …

Member Avatar for dnambembe
0
1K
Member Avatar for biju127

Whats wrong with this code. I can create the DAT file.Name and Grade is writing to the file perfectly. but the file contains ASCII values for RollNO and after Grade. [B]Output file:[/B] Name A ÈB [B]Program[/B]: #include<iostream.h> #include<conio.h> #include<fstream.h> #include<string.h> class stu { int rollno; char name[20]; char grade; float …

Member Avatar for biju127
0
217
Member Avatar for armanus

I'm attempting to make a Tic-Tac-Toe against the computer program, I'm pretty much done, but i can't figure out how to stop the computer from making the exact same move as the human does. Thank You. [CODE]// Include the libraries #include <iostream> #include <string> // Use standerd namespaces. using namespace …

Member Avatar for SgtMe
0
181
Member Avatar for AndreiZ3

Hi, I am trying to send emails from a mobile C# application that I am writing. There are heaps of articles online how to do this which is great. Everyone has: Using System.Net.Mail; reference at the top of the code. Problem is when I type System. there is no Mail …

0
84
Member Avatar for joy55

How can I create a code for this task? *You are given a natural number m and natural number n =2, .,.,.. 16. Print the number m in counting system with base n.

Member Avatar for maria198
0
170
Member Avatar for Gatsby

Hi, All. I created several basic programs on Visual C# Express and now I'd like to get into the Web Developing / ASP.NET side of Visual Studio. I downloaded Visual Web Developer and all my previous C# programs are now accessible and editable with Visual Web Developer. So, my question …

Member Avatar for Gatsby
0
312
Member Avatar for vedro-compota

Dear programmers)) Please tell me - why in С# this line [CODE]string [this.LevelNumber] mass = new string [this.LevelNumber];[/CODE] isn't permissible? What can be an equivalent for it? Thank you for your answers)

Member Avatar for vedro-compota
0
139
Member Avatar for tylerjgarland

I have an implementation question. I am trying to have a rectangle change color based on the position of four sliders. (Alpha, Red, Green, Blue) I am attempting to use a dependency property to combine all four values, convert them to a brush, and apply the brush to a rectangle. …

Member Avatar for tylerjgarland
0
377
Member Avatar for cortez716

Okay heres the background on the code. I've written a code that prints a 10x10 array or random numbers. Then prompts the user to pick a number. After user picks a number, the program then tells user the number of times number was found in the array and supossed to …

Member Avatar for vanalex
0
209
Member Avatar for carobee

Hi I have created a code to create excel macro in C#.But while trying to create a new VBA code module i am getting a error.The code that i have used is [code] module = excelWorkbook.VBProject.VBComponents.Add(VBIDE.vbext_ComponentType.vbext_ct_StdModule); [/code] this part of the code is throwing an error. Error 1 The best …

Member Avatar for comsdev
0
1K
Member Avatar for Jean Chew

Hi, can some kind soul advise me on my coding cos it does not seem to work. [CODE] private void DisplayText(object sender, EventArgs e) { textBox1[COLOR="red"].Display[/COLOR](); if ([COLOR="red"]10<x && x<294[/COLOR]) [COLOR="red"]&&[/COLOR] [COLOR="red"](-5<y && y<13[/COLOR]) && (-12<z && z< 228)) textBox1.display("It has moved inwards"); else if (-53<x<-265 && -11<y<37 && -57<z<218) …

Member Avatar for apines
0
193
Member Avatar for irandokht

can i format a digit while typing it on a textbx for example 2343244 will show 2,343,244 any help will be appreciate

Member Avatar for irandokht
0
3K
Member Avatar for yigster

[CODE]namespace week4Matrix { class Program { int[,] a; int[,] b; int[,] c; static void Main(string[] args) { } public void TransposeMatrix() { for (int i = 0; i < a.GetLength(0); i++) { for (int j = 0; j < a.GetLength(1); j++) { c[j, i] = a[i, j]; } } } …

0
61
Member Avatar for RobBobSmith

Hello all: I am working on a class for creating 2-D arrays. A couple of days ago, someone kindly helped me identify a problem with my operator() expression, but now I'm getting a segmentation fault. I just can't figure out where the problem is! If anyone could take a look …

Member Avatar for RobBobSmith
0
410
Member Avatar for z_a

While reading Stroustrup's "The C++ programming language", I was puzzled at 'declaring a pointer to an array of character strings and declaring a reference to an array of 10 integers', and I had to clear my mind on pointers to arrays. I am posting here the notes I made to …

Member Avatar for z_a
0
456
Member Avatar for gbsn3219

Hello. I am relatively new to C++ programming, and I have a question about a program that I am supposed to write. The assignment reads... Prompt the user for a word; call it SEARCH. Then begin reading words from the user, counting them until SEARCH is entered. Display how many …

Member Avatar for gbsn3219
0
161
Member Avatar for tom_cat

Hi, I have following questions, 1. I want to know that what is the difference between tcp tunneling and regular tcp client server chat program. 2. If I live in Sri Lanka, and I want to connect and pass data to a pc with a dynamic ip (a standalone one, …

Member Avatar for oredigger
0
2K
Member Avatar for vedro-compota
Member Avatar for vedro-compota
0
84
Member Avatar for tastyTreeHUGGER

I am writing a calendar in C. I'm still very new to the language. I think i wrote most of the functions/algorithms correctly (it would be nice if you guys could check for any errors too). Now I'm having a tough time printing the calendar out In a correct format. …

Member Avatar for tastyTreeHUGGER
0
304
Member Avatar for Tyster

Hi folks, I'm quite new to C++ and I'm getting an exception I don't understand. I have a class named 'Rational' that performs calculations on fractions. It has a default constructor as follows... [CODE] //In Rational.h public: Rational(int num = 1, int denom = 2); //Default constructor void addition(Rational); void …

Member Avatar for mike_2000_17
0
161
Member Avatar for geryin

Write a function that accepts an array of integers and determines the product of each two integers. Although you can create a fixed size array in main, your function should work no matter what size of array is passed to the function. MY code: [CODE]#include <iostream> using namespace std; void …

Member Avatar for Lerner
0
102
Member Avatar for mikesowerbutts

Hi, I have some code which creates a PDF based on the data posted to the entry point page (print.aspx). When I run a page with multiple frames in, each accessing the main print.aspx and posting data etc. but for some reason each frame loads one at a time, rather …

0
167
Member Avatar for chintan_1671

Can any one help me to convert this delphi code to C#. class function TShrinkConfig.MyVersion: WORD; var ini: TIniFile; begin ini := TIniFile.Create(gsIniFile); Result := ini.ReadInteger( SHRINK_INI_SETUP_SECTION, SHRINK_INI_MYVERSION, SHRINK_INI_VERSION_1); ini.Free; end; if (not ini.ValueExists(SHRINK_INI_VERSIONS_SECTION, IntToStr(version))) then .... I searched online that TiniFile corresponds to FileStream in C#. But i am …

Member Avatar for chintan_1671
0
259
Member Avatar for vinitmittal2008

Please give Free download links of Latest and Best C/C++ Compilers for Windows...

Member Avatar for Ancient Dragon
0
162
Member Avatar for myrk

Hello, Can anyone suggest a GUI library that meets the following criteria? * Cross-Platform * Doesn't control the main loop * Not 100% object-oriented; similar to Xlib :) * Not many pointers please (like FLTK that every object is a pointer) * Free to use for closed source and open …

Member Avatar for Stefano Mtangoo
0
709
Member Avatar for cmb2thim

could you please help me? i need to write a program, no dynamic allocation, using classes and arrays to multiply only 3x3 matrices only

Member Avatar for daviddoria
0
61
Member Avatar for centerline00

O.K., I have a project I'm working on. It uses 8 classes (I'm only showing 2 and main). It gives me a "bad_alloc" error when the obj is instantiated. When obj is removed it works fine (or call the personType class that "should" be inherited from extPersonType.) Any thoughts of …

Member Avatar for Fbody
0
237
Member Avatar for Nivass

Hi, I have loaded a web page using web browser in window form. Now i like to paste the text (Using Text box)in the text field on the web page that i have loaded. How can i get this.... Thanks in advance....

Member Avatar for Nivass
0
124
Member Avatar for Jollyyy100

Hi, i'm a student and i needed help in storing all my information from C to a text file. Could anyone help me out. Thank you

Member Avatar for Adak
0
181
Member Avatar for snehalj

[CODE]year = GridView1.Rows[i].Cells[5].Text; [/CODE] i have written above code for getting value of particular cell from gridview. but now i want to store variable value in particular cell of gridview.

Member Avatar for pharindra
0
96
Member Avatar for Sharpmax

Hello guys! I am new to web development in general and C# particularly. Recently I have been given a project to create a simple web application, using C# and .NET. The application is divided into three parts: Data Access Layer with an XML file attached to it, the Business Layer …

Member Avatar for alc6379
0
154
Member Avatar for lynneh3979

I need to create a structure related to an overtime pay calculator and define the variables needed within the structure to do those calculations. Then define and create a base class using the same variables that may serve the same function as the structure This is as far as I …

Member Avatar for geethasree
-1
132
Member Avatar for Annettest

Hi everyone: I would appreciate some help with understanding how to free memory/use destructors. I have created a 2D dynamic array template class. I'm using Xcode and Xcode keeps crashing, with the message, "out of memory." Before I implemented this array class, I was using "new" directly within main() to …

Member Avatar for Annettest
0
2K
Member Avatar for sharifyboy7

Program Requirements: Let A be an array of n elements. Write a template function that takes an unsorted array of type <class T> as an input parameter and feeds back a sorted array via the input parameter. Assume the operators < and > are defined for the class T. In …

Member Avatar for SgtMe
0
168
Member Avatar for mrar85

i have a problem regarding functions. this leap year code is frustrating because it will always give me "not a leap year" whenver i entered a year: [CODE]#include <iostream> using namespace std; int get_input(); bool CheckLeapYear(int); int main() { int year,x; char key; do { year=get_input(); cout<<CheckLeapYear(x)<<endl; cout<<"Press 'y' to …

Member Avatar for SgtMe
0
168
Member Avatar for AndreiZ3

Hi, I have loaded a listview with data from a webservice. foreach (DataRow dr in dt.Rows) { ListViewItem lvi = new ListViewItem(dr["ProductName"].ToString()); lvi.SubItems.Add(dr["QuantityOrdered"].ToString()); lvi.SubItems.Add("0"); lvProductsOrdered.Items.Insert(0, lvi); lvi.Tag = dr; } Now when the user taps on the listview item I want to read the data back in: The list view …

Member Avatar for N4JRY
0
160
Member Avatar for Cort3z

Hi! I am working on an program that basicly needs a large list. The program works fine untill i comletely fill up the "List<Object>" type. And no, it is not due to lack of ram. The program tries to add more than System.Int32.MaxValue ammount of objects. I have thought about …

Member Avatar for Cort3z
0
3K
Member Avatar for ja0

Hi, I already did an application in C# in release mode. However, I am not sure if in the .msi I will need all that files that are in the folder 'Release' or just I will need the .exe and the .ini that I created to optimized the program, to …

Member Avatar for alc6379
0
76

The End.