51,593 Topics

Member Avatar for
Member Avatar for tweedsmuir

New member. Got to this site by Googling "programming vista C++"; wild thread exchange from a couple of weeks ago with implications that some folks might have the answer I need. Basic question is whether my partner & I can adapt a longstanding, robust C/C++ program we've been marketing so …

Member Avatar for jbennet
0
145
Member Avatar for Ravenous Wolf

am i the only one who thinks that c# screen development really sucks? i have just completed the silly task of repeating the same 30 lines of code sixteen times. and why, some might ask, are you so silly to do that? it is because, unlike java and visual basic …

Member Avatar for latitude7ds
0
100
Member Avatar for talk2tisa

Hi again, I've figured out how to get the program to do what I need it to do, except it is doing the last thing twice and I can't figure out how to change it so it does it only once. Please provide some direction. I've attached the files.

Member Avatar for WaltP
0
103
Member Avatar for johny112

this is the exact problem: Write a routine to sort the ten-number list shown in ‘Sample Screen Output’ below, and then make the following modifications to improve the performance of the bubble sort: Sample Screen Output Data items in original order 2 6 4 8 10 12 89 68 45 …

Member Avatar for WaltP
0
95
Member Avatar for rayy

i want to write a c++(console) programme for a voting system that accepts names of candidates and the votes they had and sort these votes in descending order to show the winner. how do i go about it. thanks. this is the what i have been able to do so …

Member Avatar for Nick Evan
0
87
Member Avatar for Nidaa87

radix sort: an example : Original, unsorted list: 170, 45, 75, 90, 2, 24, 802, 66 Sorting by least significant digit (1s place) gives: 170, 90, 2, 802, 24, 45, 75, 66 Notice that we keep 2 before 802, because 2 occurred before 802 in the original list, and similarly …

Member Avatar for Nidaa87
0
93
Member Avatar for bpage

Hi, I am trying to do a pretty basic project for my computer science class. The part that is giving me trouble is where the user needs to input every letter of the alphabet in a random order but only each letter can be inputted once. I was wondering if …

Member Avatar for bpage
0
158
Member Avatar for driplet

there is a intrinsic function, ichar(C), to convert character to a numerical value (ASCII?) in FORTRAN. Can any one tell me a similar function in C++?

Member Avatar for Ancient Dragon
0
90
Member Avatar for mugenoid

I am doing a game and i need to refresh the screen to make it less messy, Can anyone teach me how to do plz?

Member Avatar for FireNet
0
750
Member Avatar for mr.cool

in my c++ class we have to make a game and i need some ideas on what to make. the only thing i have learned is: random numbers, ifs, switch case, while loop, for loop, some character string functions of cin.get and cin.ignore, also declaring a character string, data formatting …

Member Avatar for ithelp
0
91
Member Avatar for tonyaim83

Hi My input file is as below. AXY,21,23,12,334,34 VBE,32,34,32,43,34 AXX,32,34,45,32,45 AXY,23,43,323,122 VBE,23,3,323,21,121 Now here the first token designate the nodal name. Now what i want is to create a set of file name AXY_info.txt,VBE_info.txt,AXX_info.txt and here file name designating the nodal name and each file should contain their respective values. …

Member Avatar for WaltP
0
168
Member Avatar for hpr12951

Could ppl please fix my 2 codings to "template version". I spend so much time understanding template, but still hard for me! Please help~ thanks to all [CODE]#include <iostream> using std::cin; using std::cout; using std::endl; const int ARRAY_SIZE = 10; void search(const int a[], int lowEnd, int highEnd, int key, …

Member Avatar for hpr12951
0
124
Member Avatar for guccica

Hi all, would need your help on unzipping message which is zipped with java.util.zip. For your information my module was written in c++. Currently i am trying to unzip with zlib, how ever it failed with "Z_DATA_ERROR" error. Please advice.. thanks a lot. regards brandon

Member Avatar for guccica
0
120
Member Avatar for death_oclock

I am trying to write an openGL application from a tutorial I found and tried to copy it as accurately as possible without just copy+pasting it, so I can actually learn the code. The source file from the tutorial compiles and runs perfectly, but my code fails at a call …

0
133
Member Avatar for sbenware

I have a binary tree program that is trying to retrieve a name. I've already inserted names into the tree correctly and can see this at output. Now I'm trying to check for a name in the tree and calling that input "key". My program wants to take that key …

Member Avatar for sbenware
0
155
Member Avatar for #include<DAN.h>

Does anyone have a list or know how I can get a list of the bit addresses of keys used in the getch (); fuction. For example: F1 is 59 F2 is 60 F3 is 61 F4 is 62 F5 is 63 etc. I'm pretty sure that this is the …

Member Avatar for guy40az
0
124
Member Avatar for talk2tisa

I am attempting to complete a homework assignment. The progam basically requires input from the keyboard into an array and then to perform some calculations on the input information. I believe I can do the calculations, but I cannot figure out how to get the input into the array. The …

Member Avatar for talk2tisa
0
111
Member Avatar for robotnixon

So below is a working program I wrote that mimics a rolodex. It stores the information on a text file with the number of cards listed at the top of the file and one card per line like this: last first phone email last first phone email ... I'm currently …

Member Avatar for robotnixon
0
121
Member Avatar for guy40az
Member Avatar for Ancient Dragon
0
101
Member Avatar for jacknight

Why does (start+last)/2 work to calculate the midpoint while start+(last-start)/2 does? To be more specific, I put the contents of a binary tree into an array, sorted it, destroyed the old tree, and plan to rebuild the new one. I know that start+(last-start)/2 as a midpoint calculation works correctly. My …

Member Avatar for Narue
0
147
Member Avatar for jsmith9990

Hi , i''m Smith. I want to know more abou C pointers . And its use in C. Friends, those who are interested in this topic please give me good idea . First of all i want to know About basic things about pointers. What is a C pointer? And …

Member Avatar for Narue
0
108
Member Avatar for Max_Payne

[b]***Header Files:[/b] [b]Point.h[/b] [code=c++] #pragma once #include <iostream> using namespace std; class Point { private: int x; int y; public: Point(void); Point( int x, int y ); Point( const Point &xPoint ); ~Point(void); void setX( int x ); int getX() const; void setY( int y ); int getY() const; Point …

Member Avatar for Max_Payne
0
119
Member Avatar for Biro

Hey, I have started working with I/O file streams using my 'problem solving with c++' book, I am not sure where the .dat file goes in MS Visual C++ or how to make it for that matter... Also is this code correct? I am getting strange errors... I am trying …

Member Avatar for Salem
0
908
Member Avatar for hugvc333

Hii.... Please help me... The use of inline function in C++ is usual.But What is the advantage of using 'inline' function ? Can a function be forced as inline?

Member Avatar for Jishnu
0
100
Member Avatar for ravisen22

Hey, Me too have some doubts. When do we need to use forward declaration? Can anybody show one example?

Member Avatar for Jishnu
0
63
Member Avatar for samtben111

Hii, What is the mutable keyword? When do we use this mutable keyword? what are the differences between a pointer and reference?

Member Avatar for Ancient Dragon
0
68
Member Avatar for atiti.m001

Hello guys, Mention the usage of the scope resolution operator? show one example . What is the const keyword ? Illustrate its various uses?

Member Avatar for Ancient Dragon
0
46
Member Avatar for tonyaim83

Hi. Hi My program takes the user input of the location where the directory need to be created. I found Windows API: CreateDirectory() but then for Linux i need to write some other function. Is their any function which can work for both operating systems. Kindly help

Member Avatar for Ancient Dragon
0
98
Member Avatar for tonyaim83
Member Avatar for Salem
0
151
Member Avatar for jitterson
Member Avatar for jasimp
0
90
Member Avatar for henpecked1

I've just started a C++ class so I am a total beginner at this. I am having a problem figuring out how to pass by reference, and pass by value using the enum data type. The data types are as follows: enum suits {hearts, spades, diamonds, clubs} enum cardValues{two=2, three, …

Member Avatar for henpecked1
0
128
Member Avatar for fith

Im am making my first game and one of the files just won't compile. I keep getting this error whenever I try to compile this file (this is only the problem part): [code] if (answer[0] == 'y') { if (player->GetGold >= 10) // PROBLEM { player->SpendGold(10); cout << "You find …

Member Avatar for WaltP
0
359
Member Avatar for warpstar

Hey, just wanna say thanks in advance with the help. [code] void backwards(struct node *headp){ int n=0; /* length */ int i,j; /* counters */ struct node *p=headp; /* find length */ while( p->next !=NULL ) { n++; p=p->next; } printf(“%d\n”, p->number); /* print TAIL */ for(i=n-1; i>=1; i--) { …

Member Avatar for vmanes
0
94
Member Avatar for planktonfist

I'm wiring a program where I have a file with city, state, population size laid out as follows; 24 El Paso, TX 577415 Indianapolis, IN 783612 Detroit, MI 925051 Fort Worth, TX 567516 Los Angeles, CA 3798981 Washington, DC 570898 etc... with 24 being the number of elements in the …

Member Avatar for planktonfist
0
126
Member Avatar for Z101

Hello, I've nearly finished writing a program that converts Roman to arabic numbers, but i've run into a problem to do with the "Batch Mode" of the program. The batch mode involves asking the user to type in the file name (a text file) which contains Roman numerals that need …

Member Avatar for Z101
0
181
Member Avatar for mrmrmrmr

Hi, I am trying to write a linux code which will listen on a UDP port and revceive messages from Zyxel modems. (Zyxel modems have a remote packet tracing feature which uses UDP) I achieved most of the task. The received packet is assigned to a string (char[1024]) variable. But …

Member Avatar for Salem
0
171
Member Avatar for tamlo

Am trying to write a structure to store weather data for a particular month. total rainfall High temp Low temp Average temp Am trying to calculation but not getting anywhere. I need help please. (1)Not sure how to add the 12 rainfall to get the total rainfall and the average …

Member Avatar for Lerner
0
163
Member Avatar for safira

hi..can u help me give an info on how to load an image(eg. .bmp,.jpeg etc) in c++ turbo and display it into 2D array.thank you so much for the help..really appreciate it.

Member Avatar for WaltP
0
76
Member Avatar for DylanWright

[code=c++] #include<stdio.h> #include<conio.h> #include<alloc.h> #include"C:\windows\desktop\input.h" #define MAXBITS 32 #define MAXNODES 512 #define MAXSYMBS 256 int hmin(void); void hinsert(int,int); //First structure struct codetype{ int bits[MAXBITS]; int startpos; }; //second structure struct nodetype{ int freq; int father; int isleft; }; //The structure defined typedef struct hlist{ int pos; int hfreq; struct hlist …

Member Avatar for Salem
0
108
Member Avatar for hectic

i have sorting program, it works well when coded in simple way but when used recursion it give the floating exception (core dumped), it have tries to debug and it show error in the division stage, it tires to do typecasting also, but does not work out for recursion [code=c++] …

Member Avatar for Ancient Dragon
0
257
Member Avatar for sahoo.satya1984
Member Avatar for Ancient Dragon
0
51
Member Avatar for wijitha

hi all i have a integer array of fixed max size(assume 100). But the actual number of stored integers are less than max value(assume 50).Because it is change dynamically. How can i get the actual number of integers stored in the array. regards wijitha

Member Avatar for Nick Evan
0
254
Member Avatar for vrnadh123

Hi, I am accessing MBR to get the first 512bytes from hard disk by using absread() function in C programming. But it is showing error: "you are executing a program which directly accessing the hard disk and it works improper. Close to terminate the program". If i ignore that then …

Member Avatar for Ancient Dragon
0
137
Member Avatar for maHvic

my teacher said that it is easy to learn jave when you already know how to program in c++.. why is is it so? whats the difference and similarity of both languages... thanks.....:-/

Member Avatar for Nick Evan
0
101
Member Avatar for maHvic

can you please help me how to convert characters to binary... for example: you have to convert the word "hello world" to its binary form... i dont know how to do... can you please give me some advice...

Member Avatar for Nick Evan
0
242
Member Avatar for ithelp

Hi Experts, What kind of tool do you use to unit test your C++ code in your project ?

0
53
Member Avatar for chubbs1900

Alright, in this situation I want to take a program that I wrote and modify it so it can take an integers and if any of the numbers are negative, it returns a negative number, but if all the numbers are positive, it returns their average. This is the program …

Member Avatar for WaltP
0
109
Member Avatar for kevinpovec

I am writing a program to convert ints to roman numerals. this is the function that gets called when the user enters a number. it works just fine for number 1-99, but then it will either crash, or give bogus data for any numbers higher that 99. any pointers as …

Member Avatar for WaltP
0
320
Member Avatar for Dean_X

Here is my problem. I have searched everywhere for help on this one. I haven't found any. So, I sat down and tried the best I could to write this code: Now I am stuck: Here is what I have so far: [code] #include <iostream> #include <iomanip> #include <fstream> using …

Member Avatar for WaltP
0
178
Member Avatar for jaepi

Hello there, do you have any idea how to get the user default language code id using standard library functions? There is in win32 (GetUserDefaultLCID) but I have to port it into the linux platform. Thanks :)

Member Avatar for Ancient Dragon
0
47

The End.