49,761 Topics

Member Avatar for
Member Avatar for cyber_aziz

hello ppl since i am new to the group, il first introduce myself my name is Aziz Mansur. im a grade 12 student (CBSE in indian curriculum) studyin in Dubai, UAE. neways for my final exam i have to submit a project and mine is making a student database management …

Member Avatar for freemind
0
164
Member Avatar for angel22

Hello: I need help with a project. I have to read an input file that contains data for 17 students. This is how they are: first ID, then first name, then last name, then 10 test scores. For this data, I have to read it and process it to send …

Member Avatar for angel22
0
544
Member Avatar for wu7jian

#include<iostream> #include<string> using namespace std; void main() { string str="hello world"; string::const_iterator p=str.begin(); while(p!=str.end()) { cout<<*P<<endl; p++; } } when i try to run this program.it doesn't working. it tells me the 'p' is not declared identifier. string::const_iterator p//the defination is wrong?

Member Avatar for wu7jian
0
177
Member Avatar for Acidburn

Hello, just wondering if theres any guidance you could offer as to learning MFC in c++ . I've downloaded a few sample. scripts but they fail to run in my compiler (VC++ v6) ... I'll give you the errors when I return home, just windering if anyone as any tutorials …

Member Avatar for Narue
0
99
Member Avatar for Gillzor

There might be another Thread about this.... and if there is PLEASE tell me link. But I have been a few weeks trying to figure out why my games fail and the Visual C++ Library error comes and my game fails.... I have been uninstalling and installing but it hasnt …

Member Avatar for Gillzor
0
337
Member Avatar for mtwisd

Hey, can anyone help me, i am trying to install the free borland compiling program and i keep getting a message with the tittle bar saying, "16 bit Windows Subsystem" then the message says, "C:\WINDOWS\SYSTEM32\AUTOEXEC.NT. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Choose 'Close' …

Member Avatar for mtwisd
0
104
Member Avatar for kerribyrd

I have spent the evening trying to complete a program to be turned in before midnight. This program simulates the game Rock, Paper, Scissors. Towards the end of the code, I had thrown in the if-statments declaring 1 = rock, etc. I can't find my last mistake. Any advice guys? …

Member Avatar for kerribyrd
0
160
Member Avatar for angel22

This is an array string problem where I have to ask for a sentence input that includes an integer (between 0 and 9), then the program has to change that integer to its name in words. Like: This is test 3. Would say: This is test three. My program does …

Member Avatar for winbatch
0
227
Member Avatar for mozira

Hi everyone I have a small program on ATM transaction that i did on console application in C++ and i am having difficulty converting it to GUI and i dont understand why.Here is the code if you can do it plz send me the coding i will gladly appreciate it …

Member Avatar for Narue
0
491
Member Avatar for mark1048

Have you noticed that there are way more C++ developers than Java developers here in this community. See the comparison of the two primary forums: [CODE] Forum On-line members Threads Posts C and C++ (50 Viewing) 2,941 14,622 Java (18 Viewing) 1,212 4,976 [/CODE] Is it true that there are …

Member Avatar for freesoft_2000
0
503
Member Avatar for wu7jian

#include<iostream> using namespace std; class linkedlist {private: llink* firstelem; ..................................... struct llink { int elem; llink* nextelem; } ......................................//when i take the struct out the class definition , the program works well.but just like this it doesn't working! i am confused . ........................................................................... public: linkedlist(void); ~linkedlist(void); void AddElement(int elem1); void …

Member Avatar for wu7jian
0
148
Member Avatar for POW

I have been taking a few courses in C++ and I am having difficulty starting a few problems. I am seeking help to develope programs for the follwing questions: 1) Write a function to calculate the mean, variance, and standard deviation for values stored in an array. 2) Write a …

Member Avatar for Dave Sinkula
0
73
Member Avatar for ORA-MAN

Hi every one.... i have problem in c++ , i hope i find the solution for it :-| :-| :-| . i want store number like 2.000000000002 12-13 digits after comma it's important to me these digits. i'm sorry if my english language is not good ,but this is all …

Member Avatar for Stoned_coder
0
238
Member Avatar for Jon182

Hey guys, I was just wondering what the term wildcard means in C++ and I was also wondering why some people initalize int variables to -1 rather than 0 does this have any advantages? Thanks in advance.

Member Avatar for jhdobbins
0
90
Member Avatar for zeek

hello guys, i would like to ask again about this: i am trying to divide two large-digit numbers (up to say 100 digits) using C. I thought of one approach but trying to code it, it seems so complicated... can anyone help me give an algorithm or a code to …

Member Avatar for vegaseat
0
267
Member Avatar for desidude

guys i am trying to write 3x3 matrix . i am posting the main,.h and .cpp file,main and .h file is given and i have to write .cpp file. can sombody look at it and suggest me solution appricated guys IntMatrix3_h [CODE]#ifndef INTMATRIX3_H #define INTMATRIX3_H #include<iostream> #include<cmath> using namespace std; …

Member Avatar for desidude
0
158
Member Avatar for fishman

Hi I am trying to teach myself C++ coding but am having a problem with classes and objects. I need to pass my objects to a function which may use various object attributes in calculations but may also change the original values of these attributes. My code is: #include <cstdlib> …

Member Avatar for Narue
0
10K
Member Avatar for angel22

Hello: I need help identifying some errors in a program that has to make a dice game for one person. However, when I am trying to use if statements to explain the user when some moves are invalid, I can't do it because it displays the message explaining why it …

Member Avatar for Narue
0
85
Member Avatar for jhdobbins

Here is a chunk of my program... without the class and header file... I am wanting to take that little graph thats in the middle of the code and have the user input a starting point and an ending point... the class is a stack class with all the functions …

Member Avatar for jhdobbins
0
199
Member Avatar for Analogsleeper

Hi, I have a somewhat odd and complicated question. Some background: I am trying to open up a file which contains formatted numerical data, find certain elements, and then overwrite these elements with corrected data. So, my plan was to just iterate until I found the data, use .tellg() to …

Member Avatar for Dave Sinkula
0
145
Member Avatar for lortfan

Ok i am have so many questions to ask but i will start off slow for now. What items do i need to get to start off like book and software. I would like to go into the game disign and programing which ever one. And i have been told …

Member Avatar for nemesisrobot
0
169
Member Avatar for Mahen
Member Avatar for Mahen
0
98
Member Avatar for wu7jian

hi guys i don't understand the following clause. LargeStruct *s=(LargeStruct *)0; here LargeStruct is defined as following: struct LargeStruct { double bigd1[MAX_ELEMENTS]; double bigd2[MAX_ELEMENTS]; double bigd3[MAX_ELEMENTS]; double bigd4[MAX_ELEMENTS]; }; could you explain that for me?thanks.why not just: LargeStruct * s?

Member Avatar for wu7jian
0
165
Member Avatar for freemind

Here I paste a simple address book/telephone book. The linker spits the following error: g++.exe derived2.o -o "Derived2.exe" -L"C:/Dev-Cpp/lib" derived2.o(.text$_ZN2ABD2Ev[AB::~AB()]+0x3a):derived2.cpp: undefined reference to `vtable for AB' derived2.o(.text$_ZN2ABC2ESsSsSs[AB::AB(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)]+0x3d):derived2.cpp: undefined reference to `vtable for AB' collect2: ld returned 1 exit status …

Member Avatar for freemind
0
241
Member Avatar for joeh157

Hello, I've been taking a class on C++, and the summer semester is now over but I'm very interested in taking more classes during the fall. I've ran into a few problems here and there. I have a few questions about functions. How would I write a function that takes …

Member Avatar for Narue
0
78
Member Avatar for zauber

Hello, for some time I have programmed in java and python, and would now like to enter the C-scene. The only problem is: I'm more or less only interested in C and not C++. And it seems quite tricky getting hold of programming tips and tutorials which apply to c …

Member Avatar for Narue
0
149
Member Avatar for Mike182

Im adding a specialised formula to a calculator, and it uses the Ln/ln function which is often on scientific calculators, how do i get this function to work in c++? The formula is as follows: 'formula: pl * (10*diff + 10*creat +2*lines) ------------------------------------------ 150 * (Ln(pl/1.5))' Can anyone help?

Member Avatar for Mike182
0
320
Member Avatar for angel22

I am taking a C++ class, but I am having a real trouble understanding arrays which confuse me completely. This is the first time I take a programming class, so I really need help. I do not really understand how arrays are read and filled or how to use for …

Member Avatar for angel22
0
392
Member Avatar for mozira

In class we did a program on moving a round object up and down on a form,we finally figured it out but what i want to know is there are another way of shortening the coding instead of tesing using boolean :(

Member Avatar for zyruz
0
225
Member Avatar for jhdobbins

just curious why this isnt working... its probably simple.. but its a friday so im allowed to not access my brain as much... anyways... i want to input a string then switch that to a char array then switch back and print reversed string this doesnt work... debugger stops it …

Member Avatar for jhdobbins
0
134

The End.