49,761 Topics

Member Avatar for
Member Avatar for eaglehorse

I am new to programmiing and I am starting to learn C++ but I have a question about the differences between programming C++ in windows and Linux? I ask because the book I have covers Windows but I alos want to learn any differences for linux as I have a …

Member Avatar for Radical Edward
0
91
Member Avatar for En1ro

In Unit1.h private: [ICODE] struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] Now in Unit1.cpp im trying to do simple thing: [ICODE]void __fastcall TForm1::Button18Click(TObject *Sender) { gydytojas.vardas=Edit21->Text; gydytojas.pavarde=Edit22->Text; gydytojas.adresas=Edit24->Text; }[/ICODE] Getting these errors: [C++ Error] Unit1.cpp(172): E2108 Improper use of …

Member Avatar for En1ro
0
2K
Member Avatar for elementz

Knowing basic PHP and basicVisual Basic I have decided to move onto C++. I only know the basics of PHP and Visual Basic, I never decided to get to know both languages better. I could do little with PHP as it requires a web server to test it and Visual …

Member Avatar for elementz
0
164
Member Avatar for bhups40

this is my assignment and i also have tried to do this assignment and could not further proceed. please help. i will be very glad to here from you.[ATTACH]5921[/ATTACH] [ATTACH]5922[/ATTACH]

Member Avatar for bhups40
0
116
Member Avatar for David Wang

[U]Visual Studio 2005 Windows Forms Application GUI[/U] [B]Form1[/B]:entering name, then log-in [B]Form2[/B]: main interface I want to show the log-in name on Form2 at a certain place. So every time a different person uses the program, it shows the log-in name on the interface. How to pass the input of …

Member Avatar for Radical Edward
0
266
Member Avatar for hjfast

Hey everyone. I am working on my final skills check for my intro C++ class and I am having some trouble. the problem is to take a descriptor and a value and tag it onto the end of a 2D array created in a struct, a la: [code] struct 2d …

Member Avatar for Ancient Dragon
0
91
Member Avatar for want_somehelp

what defines the type of data access that the class members make use of: 1 integer data types only 2 access specifier 3 abstract class 4 float data type only plzz answer the above question iam unable to get it.....and if possible give me reason for it as well

Member Avatar for thekashyap
0
109
Member Avatar for MikeyMan07

Hello, I went to college for computer science and graduated but the school i went to never actually had me focus on a certain language. By happenstance i took cumulatively 4 years of c++ but never got very far. Im really good at beginner stuff and not so good at …

Member Avatar for VernonDozier
0
88
Member Avatar for daniel88

Hi all, This is my maiden post on not only this forum, but in fact any programming forum so please bear with me. I must say that this question does relate to a piece of homework, but it is the final member function in a series of about 8 and …

Member Avatar for VernonDozier
0
2K
Member Avatar for EBC

Hi, I'm a beginner in C++. I have a problem with referencing resources between 2 or more files. This is the main cpp code: [code] #include "stack.h" #include <cassert> #include <iostream> using std::cout; using std::endl; int main() { IStack ist; ist.Push(1); } [/code] and the header file: [code] const int …

Member Avatar for EBC
0
203
Member Avatar for winky

I recently downloaded Visual C++ 2008 express edition, and when I tested it out with a simple "Hello World" program, I got the following error: general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified. After doing some research, I found out that …

Member Avatar for winky
0
91
Member Avatar for alkeshtech

Hey Guys, So, I am writing a program that reads in from a file, and prints the word and counts the number of lines in the document. Here is the function that is supposed to do the work. Every time I run it lineCount is always 0. [CODE]string getString(ifstream& inFile, …

Member Avatar for Ancient Dragon
0
218
Member Avatar for henpecked1

I've been given an assignment to write code for a sphere class. Now the point of this lesson is really formatting I/O, so they've given some member functions for the class. The problem is I don't know what they are all for. I've included them below and what I think …

Member Avatar for bugmenot
0
148
Member Avatar for himsk8r0

Im trying to make a console app to solve math in order to make things go faster. However, there is an error and it says expected primary-expression before "else" and also says expected ':' before "else". Here's the code: [code] #include <cstdlib> #include <iostream> using namespace std; int main(int argc, …

Member Avatar for himsk8r0
0
83
Member Avatar for xtheendx

In my program i have three sperate vectors that store the students last name, first and score. I need to sort it by last name and print the contents of the vectors lastname, firstname: score. Well i have got it doing that for the most part. But after it sorts …

Member Avatar for xtheendx
0
151
Member Avatar for Erdnase

Hi everybody, I'm working on project to my tutorial, it's called Library and basically it's reading data from text file and inserting it in structure. Output part is String Grid. It should be able to sort books alphabetically, add and delete books manualy etc. I'm using Borland C++ Turbo. Here …

Member Avatar for Erdnase
0
114
Member Avatar for Black Magic

Hey, I was just wondering if i could write my C++ code on notepad and run it etc? I am asking this because atm i'm at a community centre and on a computer, but not allowed to download anything, so can i? reply asap please

Member Avatar for Ancient Dragon
0
245
Member Avatar for Wza

[CODE=cpp]#include<iostream> #include<string> using namespace std; void main() { char *inputString; inputString=new char[]; cout<<"Enter your string:"<<endl; cin>>inputString; //int stringLength=inputString.length(); int stringLength=strlen(inputString); inputString=new char[stringLength]; cout<<stringLength<<endl; for(int i=0; i<stringLength; i++) { if(inputString[i]>='a' && inputString[i]<='z') { if (inputString[i] != ' ') { inputString[i]=toupper(inputString[i]); cout<<inputString[i]; } else cout<<inputString[i]; } else cout<<inputString[i]; } cout<<endl; }[/CODE] First …

Member Avatar for Radical Edward
0
129
Member Avatar for macrosoft

i'm getting a problem when using cin and cout, for some odd reason it's like I'm not using a C++ compiler. I'm using Microsoft Visual C++ 6.0 and i tried using a borland compiler as well and i get the same error on several different computers. What in the world …

Member Avatar for togayot
0
442
Member Avatar for noraantonia

Hello:) Can you please suggest some good opengl terrain rendering links or books(not to complicated, i am quite a beginner yet). Thanks in advance.

Member Avatar for wtf4096
0
239
Member Avatar for Black Magic

Hey. I get bored so muck around with c++ and i have made this: [CODE=C++]/* My shop program*/ #include <iostream> #include <fstream> #include <conio.h> #include <time.h> using namespace std; int main() { double quantity; unsigned int itemNo; time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime …

Member Avatar for Radical Edward
0
125
Member Avatar for wtf4096

I`m designing a series of classes that are responsible for creation of a lego-style (well, sort-of) 3D meshes. The basic building block of each mesh is a Box. There could be well over 1000 of these Boxes in each 3D mesh. However, my following design looks dirty to me since …

Member Avatar for wtf4096
0
146
Member Avatar for tm5054

[code] #include <string> #include <iostream> #include <cmath> using namespace std; const int findMe (string n[MAXIMUM = 100], double scor[MAXIMUM = 100],) { } int main () { string names[MAXIMUM]; double score[MAXIMUM]; for (int x = 0; x < MAXIMUM; x++) { cout << "Please enter a student name (Enter a …

Member Avatar for Lerner
0
129
Member Avatar for mussa187

how can i convert an array of char to char? this what i want to do char *argv[]; char i compare and index or argv to i.

Member Avatar for Radical Edward
0
3K
Member Avatar for xtheendx

I am writing a gradbook type program. It first allows the user to enter the number of students they want to enter. then allows them to enter the first name, last name, and grade of each student. The program then should sort the names alphabetically by last name and display …

Member Avatar for Lerner
0
1K
Member Avatar for joanam

I am programming using Visual studio C++, doing some win32 console application simple programs. I am upgrading to visual studio 2008, and I cannot compile programs in C++ done with previous versions (6.0) because I always get a compiler error. For instance, if I write: ifstream f("file.txt") then the compiler …

Member Avatar for joanam
0
2K
Member Avatar for XCaliber

hey, i want to start learning C++ and i was wondering if Notepad++ is a good program to use to write it. also how do i view it as a program? <---(stupid question ya i know but i cant figure it out ><)

Member Avatar for Radical Edward
0
129
Member Avatar for loeto

Write a program which will calculate, for every integer that is being input, a code in the following way first digit multiplied by 3 plus second digit multiplied with the third digit minus fourth digit thus the number 3124(of type int) should generatethe code 7, because 3*3 +1*2 - 4=7. …

Member Avatar for loeto
0
160
Member Avatar for dan_e6

hey guys. I need some help here! I have a 2D vector named grid. what i need to do is magnify any data in it. it's of a bool type so something like this. 1100 0110 0011 in the 2D vector would become (after magnification) 11110000 11110000 00111100 00111100 00001111 …

Member Avatar for dan_e6
0
194
Member Avatar for chrisfrolich

I was given an assignment where i have to calculate and aoutput the ocst of airline tickets for different classes (business class, coach class, first class). Output the price from different funtions. Here is what I have..... [code] int main () { double firstClass, coachClass, businessClass; cout<<"Enter the price of …

Member Avatar for Radical Edward
0
82

The End.