51,593 Topics

Member Avatar for
Member Avatar for qfar96
Member Avatar for zandiago
0
30
Member Avatar for k4Q3A

"hello world". i have a question about gui programming in c++ or java. i would like to have a basic tutorial about gui's. could anyone help me about this. thanks! i am a k4Q3A

Member Avatar for zandiago
0
18
Member Avatar for holeejo

Gang, I am so confused by all the descriptions of different Visual C++ stuff, API, MFC, I don't even know how to tell you what I am trying to use - other than: I created a Windows Form Application using Visual C++ 2005 Express Edition. I have a textBox1 which …

Member Avatar for sillyboy
0
288
Member Avatar for sean25hun

This is the code ive got so far [code=cplusplus] #include <iostream> int main() { int a[10] = {0}; //sets an array of ten zeros int x; //intialises x int y; //intialises y std::cin>> x; //reads in x input std::cin>> y; //reads in y input if ( -1 < x && …

Member Avatar for Lerner
0
95
Member Avatar for helixkod

here is my current code: [CODE]#include <iostream> using namespace std; int bubbleSort(int [], int); int selectionSort(int [], int); void showArray(int [], int); const int SIZE = 20; int main() { //The array with unsorted numbers int numbers[SIZE] = {23, 44, 2, 6, 15, 70, 45, 80, 46, 30, 0, 11, …

Member Avatar for Koldsoul
0
81
Member Avatar for Ratte

Before I write this, I realize there are way better ways to accomplish what I am asking, but I am JUST wondering if it is possible to do it the way I am asking. I have a main function called system. The system has a menu and depending on input, …

Member Avatar for Duoas
0
153
Member Avatar for Ratte

I overheard a conversation in a class the other day about someone being able to "look" into various classes and data storage types and see what is being stored as you run the program. I understand this can be done using the traditional ways of adding breakpoints and such, but …

Member Avatar for Narue
0
113
Member Avatar for Ccrobinson001

Could anyone help me with an issue that I have? I have a program that reads from a data file using an array and the data is structured as a long interger. I am trying to break up a long interger in to pairs i.e 141251 into 14:12:15 using c++.

Member Avatar for Ccrobinson001
0
97
Member Avatar for blakey971

Hey, I am somewhat new to C++. I'm not sure if this is something that is even possible with this programming language, but I am very curious. Okay, so the gist of what I want to do, is be able have an input through the microphone jack on the sound …

Member Avatar for Salem
0
93
Member Avatar for dblbac

i just received some help from zandiago it his help was great and i thank you. when i incorporated the info into my program i received an error when building the solution. it was only one error. it was error C2447: '{' : missing function header (old-style formal list?) the …

Member Avatar for dblbac
0
118
Member Avatar for toneeg

Can someone please help me with this? I have been struggling with this for days now, and for some reason, my instructor's help is not working for me. I am not sure if it is because he is from Germany and I am taking courses on-line, or if it is …

Member Avatar for toneeg
1
348
Member Avatar for Mussa AL_Zyod

20 student apply an exam, the mark of the exam is out 10, write a C++ program to do the following: 1- read students grades and store in student _ grade array. 2- find the frequency (number of occurrences of each grade. 3- find the mode (number that occurs most …

Member Avatar for Ancient Dragon
0
111
Member Avatar for nurulshidanoni

How to choose one element from each array., Which A(i)+B(i)+C(i)+D(i)+E(i)+F(i) must equal to 10. __________________________________________________ i A B C D E F __________________________________________________ 1 3 2 3 3 2 4 __________________________________________________ 2 6 9 4 24 5 7 __________________________________________________ 3 11 28 5 81 10 12 __________________________________________________ 4 18 65 …

Member Avatar for darkagn
0
117
Member Avatar for picass0

i'm trying to read from a text file and store it into a STL List. i able to read from the file but when i wanted to print out my list i get an error - [B]primary-expression before '>' token [/B]which is pointed to the text in red. am i …

Member Avatar for Ancient Dragon
0
91
Member Avatar for Garock

Hi all, i'd like to ask anyone here who may help me solve this problem i compiled an apps which records when is the last time user make an input, either with keyboard or moving mouse, thru' GetLastInputInfo API however, this can't works whenever user logged on as different using …

Member Avatar for Garock
0
166
Member Avatar for eXceed69

Hi Guyz, I had to create a program w/c objective is to omit a certain tag in xml file. the only thing in my mind is to search and get the length of the tag. my problem is what if that tag had a certain sub fields: [QUOTE] <team> <cell1 …

Member Avatar for Salem
0
110
Member Avatar for Benimaru025

Hi This is how my input file looks like and i while loop is sorta messed up, i'm a newbie, can someone give me a lil help? Input file: Iron Man 90 80 70 -1 Captain American 90 80 70 60 -1 Spider Man -90 Phil O'Sophy 72 81 63 …

Member Avatar for WaltP
0
144
Member Avatar for toko

Okay, i am very new to Visual C++ and i understand the design and stuff but what i don't get is where do you put the actual c++ code to tell each thing what to do? And by the way does anybody know a good visual c++ tutorial??

Member Avatar for sagedavis
0
116
Member Avatar for Koldsoul

I am now writing a new program, a modification of a program I have done before but now with arrays. It is a currency conversion program that converts four currencies. User inputs the starting currency and the program will display all four of the currency conversions for the amount the …

Member Avatar for Ancient Dragon
0
164
Member Avatar for dblbac

i received some help but when i implimented it into the program it came up with an error. if anyone could help me fix this problem i will greatly appreciate it. here is the program. it is a guessing game. the error message says: error C2064: term does not evaluate …

Member Avatar for Ancient Dragon
0
126
Member Avatar for sean25hun

Create array for which each object can hold integers in the range 0-100. You input a few numbers say 1 3 5 they are displayed as 0 1 0 1 0 1 0 0 0 0 up to 100.I can do a simple loop of zeros up to 100 but …

Member Avatar for Lerner
0
81
Member Avatar for chris53825

A friend of mine wanted to see if I could figure this out.. and it's driving me crazy!! Maybe I'm just over thinking it? Anyways, can anyone figure this out? Design an algorithm to sort a deck of cards with the restriction that the cards must be kept stacked in …

Member Avatar for Salem
0
129
Member Avatar for HLA91

Hi all I started learning C# but I became annoyed at the need for the .NET enviroment on every machine the program was run on, so I switched to C++ and started learning that. I am hearing talk about C++ dying out and C# is better and is where all …

Member Avatar for HLA91
0
152
Member Avatar for sunrise2007

hi every body... i have problem in my project,and i need help to solve it the problem is :: i have string variable and i want to store two values in it one value is string that insert it by the user and another value is integer that is generated …

Member Avatar for sunrise2007
0
158
Member Avatar for cl3m0ns

I have int x I would like to fill it with a randomly generated number between lets say 6 and 10 I know that x = 1 + rand() % maxRange; will limit the maximum range but i would also like to limit the minimum range. How do i put …

Member Avatar for joshua.tilson
0
151
Member Avatar for guitarrick

Hello, I am new to C++. I have read the warnings about homework and do TRY.... I am an older student and have been trying to get this project going to no avail.... My first part of this code is attempting to create a grid of 16 playing cards laid …

Member Avatar for guitarrick
0
197
Member Avatar for nosa2008

i need to write a C++ program to determine the real root of Ln X^2= 0.7 (A) using three iteration of the bisection method with initial guess of Xl=0.5 and Xu=2 (B)using three iteration of the false-position method with intial guess of Xl=0.5 and Xu=2. ANY KIND OF HELP WILL …

Member Avatar for Ancient Dragon
0
101
Member Avatar for nathanrt

I'm trying to create a piece of C++ code which will only allow a user to enter odd numbers. If an even number is entered, the program must tell the user to enter only an odd number. Im comfortable with the whole output bit in the 2nd line above, but …

Member Avatar for Narue
0
3K
Member Avatar for ithelp

Hi Experts, Did anyone use eclipse and cdt in solaris, I am getting eclipse version 2.1* for solaris however cdt is compatible with 3.* versions, can anyone let me know where can I get latest version for eclipse for solaris ? I am unable to find later versions in eclipse.org …

Member Avatar for vijayan121
0
87
Member Avatar for jaepi

Hello, there. I just would like to ask any other possible ways to read wchar_t data in a file? I tried to use ifstream but it seems that the '>>' operator cannot be used to unsigned short variables with the likes of wchar_t. Thanks. :)

Member Avatar for Ancient Dragon
0
68
Member Avatar for Ali_110

hello im a new here and also i am a new student of C++ i have to make these programes in next 1 hrs can u help me in making these 3 programes 1: take input from user,check whether the given no. is even or not. 2:take input from user, …

Member Avatar for Ancient Dragon
0
205
Member Avatar for manzoor

I coded a program its for temperature conversion its still not developed yet and I'm having a problem. Here's the code: [CODE]/* Software Name = Temperature Converter Calculator... Made by Manzoor Ahmed.*/ // Program that helps converting Temperature degrees. // Formulas obtained from wikipedia.org. #include <cstdlib> #include <cctype> #include <iostream> …

Member Avatar for Ancient Dragon
0
118
Member Avatar for Pačo

Hello, could anyone please help me with this. I have a hardware connected to my PC via serial port. This hardware is sending me data (in HEX format). Now i would like this data save to a .txt file. Please help me. Here is my code so far...if anybody is …

Member Avatar for Pačo
0
122
Member Avatar for people123

So I am learning arrays, and i was given a piece of code in my book here which basically finds the average, min, and max value of a set of numbers, but the thing i don't understand is, when you are finding out the min and the max why you …

Member Avatar for helixkod
0
94
Member Avatar for Zay

hi; this for circular link list type , its to check whether a word is palindrom or not . it dosen't work ! can you check it this the insert function : [CODE]void InsertLast(const elemtype &Item) { Node <elemtype>*temp; temp=new Node<elemtype>; if ( temp==NULL) { cout<<"Full memory"<<endl; return; } temp …

Member Avatar for Zay
0
146
Member Avatar for thewurster4

:!: I keep getting a pop up that says: Microsoft Visual C++ Runtime Library Buffer overrun detected Program C:/Program Files/Yahoo/browser/ybrowser .exe A buffer overun has been detected which has corrupted the programs internal state. Program cannot safely cont. execution and must terminate. Then the browser shuts down. I spoke to …

Member Avatar for Joaquin357
0
278
Member Avatar for talk2tisa

Hello, I am new to this board and C++, so I do not even know what encase code in [] means, but I will try. I have an assignment I have been working on for a week. I have consulted my book and the web, but I have been unable …

Member Avatar for talk2tisa
0
114
Member Avatar for tracethepath

i am making a menu driven program on linked lists. the program's display function is printing garbage values. i.e if n=3...i add three values and when the values are displayed the last entry is displayed and the rest two enteries are garbage values for eg. [QUOTE]MENU (Linked List) 1. CREATE …

Member Avatar for tracethepath
0
148
Member Avatar for santhiks

I don't know how to insert a paint picture to my c++ program .Can anyone help me.

Member Avatar for Ancient Dragon
0
40
Member Avatar for gattispilot

I have this code. but I get this error: chariot1.cpp c:\orbitertest\orbitersdk\samples\shuttlepb\chariot1.cpp(235) : warning C4700: local variable 'speedvec' used without having been initialized I was told that the oapiGetFocusShipAirspeedVector(speedvec) initialized the speedvec. Not sure how to fix this. What I am doing . Is to determine which direction a vessel is …

Member Avatar for vijayan121
0
106
Member Avatar for dblbac

when i try to build the solution for this program i get 4 warnings. they are: c:\documents and settings\mike\my documents\visual studio 2005\projects\practice\practice\practice.cpp(22) : warning C4244: '=' : conversion from 'time_t' to 'int', possible loss of data c:\documents and settings\mike\my documents\visual studio 2005\projects\practice\practice\practice.cpp(13) : warning C4101: 'ncount' : unreferenced local variable …

Member Avatar for Lerner
0
212
Member Avatar for ChaseVoid

I just recently came across Shift Operators and it interests me. Though I'm beginning to learn more about it, I'm still a bit confused as where to implement them. However, the problem I'm facing is because of an example I found on [URL="http://msdn2.microsoft.com/en-us/library/336xbhcz(VS.71).aspx"]MSDN[/URL] [CODE]// expre_Shift_Operators.cpp // compile with: /EHsc // …

Member Avatar for Duoas
0
304
Member Avatar for Ratte

I have a template Graph class which uses an adjacency matrix (array of singly linked lists). I need to be able to initialize the Graph with a size. I guess it is done this way? [code] template <class T, int SIZE> class Graph { } [/code] My problem is with …

Member Avatar for vijayan121
0
134
Member Avatar for tarekkkkk

#include<stdio.h> #inculde<math.h> int main () { int R,n,A; float S; printf("plz give me the value of N elements:"); scanf("%d",&n); printf("plz give me the value of the first term A:"); scanf("%d",&A); printf("plz give me the ratio between 2 consecutive elements R:"); scanf("%d",&R); S=(pow(R,n)-1)*A/(R-1); printf("the value of the sum of a geometric …

Member Avatar for tarekkkkk
0
114
Member Avatar for dblbac

i have the program written but i am having troble with a few parts. i am supposed to have the number of tries on the screen (which i do) but i need the program to ask the player if they want to play again after the game is done and …

Member Avatar for tracethepath
0
100
Member Avatar for picass0

i'm using stl list to do a simple inserting of a range of value into the list. The problem i have is that when i do a push_front i couldnt see the value when i did a displayed of my list, but when i did a count it show that …

Member Avatar for picass0
0
91
Member Avatar for rolemodel

hi there... I'm new in this forum so I don't know how to start new threads, anyway.... I was wondering if anyone could help me with a login page, I mean by sending me a good tutorial, because I'm stuck in a homework, a web application that needs a login …

Member Avatar for scru
0
75
Member Avatar for Lerner

I'm frustrated at the moment and thought I'd vent a bit before asking for help. I've finally decided to download MS Visual C++ Express 2005 and migrate from VC++ 6.0. I know, it's about time! What can I say, except that I hardly ever download stuff from the net because …

Member Avatar for Lerner
0
123
Member Avatar for mailkayzay

How do I begin the creation of a web project in C# using the file system in VS 2005

Member Avatar for mailkayzay
0
89
Member Avatar for dblbac

i have a program but how do i go about putting it in the code for the thread. i received a warning the last time and i appologize for that. what are the steps. i nread the faq but i still didn't understand it. what should i be pressing inorder …

Member Avatar for Ancient Dragon
0
149

The End.