49,761 Topics
| |
Trying to come up with a code that will give you your circumference value by taking the measurements of your waist and hips and subtracting the measurement of your neck but I'm getting several very weird errors. Most of them in regards to !=. Can someone please take a look … | |
Hey, I'm having trouble of making my program work. So far I managed it to read the file and display the numbers (just to verify that it is being read right), but I'm not sure if the storing is functioning well, as when I pick another option, well, it doesn't … | |
Hi, I'm trying to loop through multiple textboxes in a C++ form using visual studio.net 2008 to set the selection start for each. The code for a single textbox is easy: [CODE] textBox1->SelectionStart = 4; [/CODE] When I try to assign textBox1 to a Control variable, and assign selection start, … | |
I have writen some code for a HugeInteger class, but my input funtions will not work. It is suppose to check the array for negative numbers or 2 digit numbers. Since I randomize the numbers between 0 and 9 and checked them by not using the input funtion I know … | |
My first attempt at 2-dimensional arrays is not working out so well. We are to simply initialize an array and print out the results. My problem is that the data contains text and numbers.....column header is car color, row header is car make. I am getting error for lines 19 … | |
Hello, I am new to this forum and would like to say hi to every one. My name is renny. Now I hope someone can tell me what I am doing wrong. I dave devC++ and when i compile my code then run it, a window comes up and goes … | |
1What are the advantages of using a constant for the array size? 2In addition to the array itself, why should you pass the array size to a function? 3.How are pointers and array names related? | |
I would like the output of this string to display each word in a column and ignore all punctuation. I have tried including an if statement that tells the string to start on a new line when a space is encountered but I haven't had any luck. Any hints are … | |
I was just talking to my hosting and they did say that it is possible to login to my account and read a file using a secure connection. So called SFTP (Secure FTP). For the moment I use some code that is for FTP connection with EnableSsl = true; wich … | |
Hi, I wonder how it will be possible to open a .DLL file for editing, to reach the Source code files. ? Thank you! | |
Does anyone know how to set the character background color? I tried using system("color ") etc. but this sets the background color of the whole screen... What I need is the c++ equivalent of the 'textbackground()' function used in pascal.... thanks | |
I have an assignment a C++ assignment and here is my code so far; [CODE] #include <iostream.h> #include <stdlib.h> #include <cstring> #include <cctype> class Student { private: char Name[80]; long SSN ; public: Student (char, long); void setSSN (int SSN); void setName (int Name); int getSSN (long); int getName (char); … | |
here's my question: write a program that asks the user to type the value of N and writes this picture : N=1 * N=2 ** * N=3 *** ** * any help? tips how can i start?? thanks | |
So I'm currently using Lazy Foo's tutorials. Here's the link: [url]http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php[/url] I followed all the instructions, but I'm having a couple issues. So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am … | |
hey i'm really not sure how to solve this, im making a simple "press enter to continue" function called wait(), defined it in a header file with extern keyword, and then in the main file prototyped it and from then on used it as wait(); But it still states that … | |
Hey everyone, needing a little hand... i'm using the SDL on windows and all the right libraries are installed correctly, I know this because all my other functions that need these libraries worked and still do, but my SDL_Surface* pFontSurface; variable my print text method creates a compile error. ~The … | |
Hi ... I m having question on vc++ floating value slider in CLR windows from... I want to have a slider which should have 0 to 1000 value and the values should be float values.. can anyone please help me how to resolve this problem.. here i included the code … | |
Hello all im trying to work out whats wrong with this code, [CODE]#include <iostream> using namespace std; int player1score = 0; // global variable int add10 (int &score) // function that adds 10 to player1score variable by reference { return(score + 10); } int main () { cout << "Please … | |
hello. I am writing a program that will solve a type of min. spanning tree problem. i have 2 different algorithms that I've gotten working in two separate .cpp files i've named kruskels.cpp and prims.cpp. my question is this: each file takes the following command line to run it . … | |
i get this error, while I think I included the .lib files correctly. here's a detailed description of my problem [url]http://www.gamedev.net/community/forums/topic.asp?topic_id=567099[/url] | |
[CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> #include <stdio.h> using namespace std; int main () { // Declared Variables. int choice; ifstream inputFile; inputFile.open("C:\\temp\\RowPrices.txt"); if (!inputFile) { cout << "Error opening file.\n"; } inputFile.close(); // These are my details. cout << "******************************************************* \n" << endl; cout << "Name: Bhupendra … | |
I have a C++ console executable module build in VS2008. To run it requires some MS components to be installed, namely: -- Visual C++ 2005 Redistributable Package -- Window Media Encoder 9 Package The module runs fine on all XP machines I tried but fails to load on a Windows … | |
Hi, I seem to have a problem with an 2D arrray. I want to create an 2D AnsiString array (AnsiString array[][] ). I can compile it but i get an acces violation when i try to put value in the array. I changed the AnsiString to integers witch works fine … | |
Any good web resources out there for picking up C++ after already knowing Java? It's kind of a yawn to have to go back over concepts that are already familiar - functions, classes, polymorphism, recursion, etc. Really just looking for syntactic differences. Would be great to find some solid tutorials … | |
what am i doing wrong ? :) [CODE] if(InternetGetConnectedState(INTERNET_CONNECTION_LANINTERNET_CONNECTION_MODEM , 0) == true) { cout << "internet alive"; } [/CODE] [CODE] error: invalid conversion from `int' to `DWORD*' error: initializing argument 1 of `BOOL InternetGetConnectedState(DWORD*, DWORD)' [/CODE] | |
I have a problem to re declare a List<String^>. The first line compiles fine but I get this error on the second line: [B]'operator =' function is unavailable in 'System::Collections::Generic::List<T>'[/B] I dont know what could be wrong here ? [code] List<String^> Lines = gcnew List<String^>(); Lines = gcnew List<String^>(); [/code] | |
I dont even know where to start with this program. I have been really busy and he tells us what to do. If anyone could help with this it would be great. here is what it says to do ASSIGNMENT DESCRIPTION This program will simulate the card game WAR!. The … | |
can sombody tell me binary addition in c++ | |
Hello, I'm working on a project that involves making two dlls: one of them is in Borland C++ (file1-bc.dll), the other one is in Visual C++ (file2-vc.dll). Right now I'm prototyping and trying to make them as simple as possible and to see data being exchanged from one side to … | |
hello i hv a question... i hv to start my cpp project on the topic airlines.. as im a beginner only.. pls help me how can i start it from the beginnings.. pls ... help me..i hv to submit this project as soon as it is possible. pls tell me … |
The End.