51,593 Topics
![]() | |
Learn how to fully use the windows header with help from [URL="http://www.winprog.org/tutorial/simple_window.html"]Windows.h Tutorial[/URL], I'm pretty well along in the Programming world and was wondering if this would be really useful in becoming a programmer in the future. | |
![]() | how can i use cin.ignore to ignore every character up to and including a specified character – for example a full stop, ’.’ or a comma ',' ?? for example if the person entered Tom Jones. the program needs to igonre the full stop please help [CODE] #include<iostream> #include<string> using … |
I'm making a program, and I'm at the beginning where I'm just reading the information in. The goal of this short bit of code is to read in a date (when I finish the program it should be able to read in multiple dates from a file, but I'm keeping … | |
Where should I include other header files, in header file or source file? What is the difference between the below two: Example: [code] //file1.h #include "file2.h" ... [/code] OR [code] //file1.h class class2; ... [/code] [code] //file1.cpp #include "file2.h" ... [/code] | |
A pointer points to a memory location containing a specified value right? If a pointer is defined without something to point at, it can point anywhere, right? Here is my question: What are the practical uses of pointers? I mean why wouldn't you just make a reference to the variable … | |
I wonder something about adding a .DLL file to a project I am doing in a Win Form. I have rightclicked the Project ant choosed "Properties". Then under "Common Properties" I have "Add New Reference" and Added the Graph.DLL file to my project. This .DLL is a GraphControl. My question … | |
Hey everyone! =) I'm starting an Application Development club at my college! However, there are a fair amount of programmers with multiple backgrounds who want to be a part of the club and partake in some of the Software we will create. Most of the people who are joining the … | |
Hey guys, I'm stuck on some undefined references to glut and OpenGL, even when I linked my projects with the correct libraries. Well apparently they aren't correct... I'm trying to compile this: [code=C] /* Copyright (c) Mark J. Kilgard, 1994. */ /* This program is freely distributable without licensing fees … | |
Hi, I use a simulator written in systemc to evaluate the programs written in pthread. so i have to interconnect the pthreads and systemc threads. The connection works fine, but I want to calculate the execution time of the pthreads events in systemc simulation time. I use systemc events to … | |
hello, im just learning c++ and was wondering if any one could spare the time to explain to me what each line of the ollowing code does, this is no my code i was just hoping to see what each lines does to see if it wil make it clearer. … | |
I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it … | |
Hi All, I have an application to open a serial port and write commands to it. I have used CreateFile function along with ReadFile and WriteFile. I need to use my serial connection from Network Connections and connect to a device.After connecting to the device I disconnect it. Now I … | |
I just need a hint or two to solve this problem. I dont need any coding or something similar just a "hint". Thanx Q.2. A local airlines has three different models of passenger planes: The 101 is a charter plane that carries up to 10 passengers, with the seats arranged … | |
Hi, I'm Sven I'm a student from Belgium and one of my classes is about C++ I'm working on a program for such a long time, but I can't find the solution. (First of all : sorry for my bad english) Here's what I'm supposed to do : I have … | |
Alright, I'm trying to learn some basic threading and this is a problem I've been banging my head up against for a while. I'm doing some image manipulation using boost::numeric::ublas::matrix, which I believe is supposed to be thread safe, but as soon as more than 1 concurrent thread is involved … | |
Hi, i'm new in this forum and i have some questions in C++... 1. I have main.cpp, which has [B]int main()[/B]... I also have some.cpp which has [B]int some()[/B]. How do i access/use some() from main() ? 2. Also, how can i use some other (I'm not sure i'm saying … | |
Hi, im trying to create a image editor and Im currently working on a "history/reopen" image part in my menu. ive read loads into dynamicly creating menu items but have always failed when it has come to adding a function to it, but that is a differnt story all together … | |
Hi every one,i'm following this tutorial and i can't seem to find the Message Maps property sheet in Visual Studio 2008. This is the link of the Tutorial [URL="http://www.functionx.com/visualc/dialog/dialog2.htm"]http://www.functionx.com/visualc/dialog/dialog2.htm[/URL] In the 27nth step says : Click the Message Maps property sheet but i don't find it in VC2008 I will … | |
I have been trying to get my program to ask the user if the want to run the program again before exiting. I have been using he following while loop. It isn't working, any suggestions. char again; again = 'Y'; while (again == 'Y','y') { // // program // cout … | |
Hello guys, I have some doubts.I think one of you can solve this.I'm c++ fresher.My doubts are: 1.What's a parser in C++?:?: 2.How to create a parser cum interface window in c++.:?: Help me please.Thanks in advance.:icon_neutral: | |
Hi :) I'm using winforms to try to make a GUI on Visual C++ 2005. Now one of the forms deals with a linked list (what's supposed to happen is that when a customer clicks the sign up button, a new customer object is appended to the end of the … | |
Just downloaded VC++ 8.0 Express and tried to run a simple sdk style program to see what happens. I've been using Dev C++, CodeBlocks, and MS VC++ 6. I've been advised to get up to date. Anyway, to get the program to run I had to change all the Api … | |
OK I'm a beginner at C++ so don't mock me for this question, so when I declare a pointer ptr (int *ptr; ) and then define ptr as 5 by saying *ptr=5; what adress is ptr pointing at-a temporary variable? Thank you-just curious. | |
hi everyone ;) i'm am having a problem, can you help me how to save big number into array? i have to input two big numbers (20 digits or less) and sum them. please help | |
Hey i have created binary search prograram this progaram search all locations but not first if i give value of other than zero location it gives results but not for zero location please guid me the code is as follows [code]// Program for Binary search #include<stdio.h> #include<conio.h> int a[50]; void … | |
Hi... I am a noob, just started to do GUI. I have a button on it. May I know besides clicking on the button, is there any other way I can invoke the function inside the button_click event?? Like an auto button ?? For example, I have a function running … | |
Hello, I am new to this community but you seemed to be knowlegable with this error so I thought you could help me. I am more of a hobbiest programmer. I get by with doing as little as possible to accent my graphic design abilities. I am currently working on … | |
Hi, I was making a pogram to demostrate static variables and I don't know why my compiler (VS 2005) is giving me these crazy errors that my book im using said I shouldn't be getting. Here is my program, please help: header: [code=C++] class number{ private: static int num; public: … | |
[B]can someone kindly help to do this problem:[/B] Write a program use C++ language with Recursion algorithm to do this exercise. Prefer compile with Visual C++ or DevC Snowflake.h and image included in attachment file 2. What changes have to made in the program in snowflake.h to draw a line … | |
Sirs,I w'd like to build on a website wherein i've a text box n accept code from user.I then w'd like to run code and display output in page. Something like [url]www.codepad.org[/url]. Plz help me with this.... | |
I have written this parsing algorithm in c++ and compiled in visual studio.On runtime after giving the value it gives an assertion error. The logic is correct bcuz ive dry runned it but i think there's a problem with memory allocation.I need urgent help.Please. // sas.cpp : Defines the entry … | |
Hi i get a home work at uni in C, but i have difficulties with this programming language.I don't know a lot.Below i wrote the request.Can someone help me from where to start,please. Chat Create a chat system throught internet.One process in the server machine manage a bunch of processes(resident … | |
Hi. I'm currently messing around with C# and decided to write a small game. One of the first things I am doing is setting up the game's GUI, which I am designing myself with help from XNA (but not Windows Forms). I've already made proof-of-concept buttons that can be placed, … | |
How to find the top n elements without sorting the array? Is this possible??? Well I don't want to sort the array because the order is mandatory? After I have found the top n elements I want to modify them? Is there any certain algorithM?? Help ??? this is no … | |
Hi i am trying to make a notepad like program. The problem is that when i try to display some text nothing happens. If someone could help me i would really appreciate it. The function call: [code=c++] ... SetWindowText(edit, "TEST"); ... [/code] Creation of edit: [code=c++] ... HMENU Menu, SubMenu; … | |
HI me a beginner in C++. i got a paroject to design a menu bar in torbo C 3.0. i faced 2 much problems. i have design the main menu bar but the further sub bars of each counter r not working. plz any 1 can help me plzzzzzzzzz me … | |
i need to write a program which inputs an integer value, checks that it is possitive, and outputs its factorial,using formulas factorial(0)=1 factorial(n)=n*factorial(n-1) sample output: input possitive number: 6 factoral of 6is: 720 | |
i started this code for the binary seach tree but i'm going crazy i cant draw the tree 9 7 12 5 8 15 i need any help that could be provided even if like the level order way 9 7 12 5 8 15 | |
In Borland C++ Builder 6, I used forms. I created a button and clicked on it. It went to the editor. I typed "form1. " waiting for autocomplete to work. But I got "error in source code". The source code was generated by the BDE. Why doesnt it work. I … | |
There was no forum for just general programming, so I decided to put this here. Just out of curiosity, does anyone know how you get from your programs running in terminal or command prompt to having them opening in their own window, with their own GUI? If anyone could shed … | |
Hy, I am trying to encode an X509 certificate into base64, and since the encoder I'm using takes only char*, and typecasting doesn't work, i find a different way to do this. I'm sure there is a simpler way, but i just can't find it. Here is the code: [CODE]BUF_MEM … | |
Okay I am writing a database type of program, which will store data about people. I want to create a class: class Person { public: int age; int weight; int height; }; Okay now I want to do something like this: cout << " Enter name of person.\n"; cin >> … | |
can you guys provide me with an example as to when do i need to use virtual inheritance? | |
All hi, Is it possible to send messages (SENDMESSAGE/PostMessage...) to HTML controls such as Input Type Text or lists? I am able to get/set the url,title but I can't get to the document. Can it be done? Would you show me how? Your help would be appreciated. reallm, | |
can anyone help me? I've made an address book. But I don't understand how to sort the information in alphabetic order. And also the information which is written in information.txt is not neat. Does anyone know how to fix it ? here is my code.. [code=C]#include <stdio.h> #include <stdlib.h> #include … | |
| |
Hi there, I hope this is not a major repeat question. I have a big class and inside it has smaller classes. What I am trying to do is call a function of the outer class from the inner nested class, such as: [CODE]class BigClass : public evenBiggerClass { int … | |
Can i call a class on another class. ex. class a { public: void add (int,int) ... //maybe call class b here.../// }; class b{ public : void mult(int,int)... }; |
The End.