General C++ Programming - December 2011 (Page 36)

int and char pointer difference
 
Well, sorry if it sounds too naive, but I am not able to understand why value stored in a char pointer is not address itself, like integer pointers. Eg. I am tr...
[4 replies] Last: Hmm..Makes sense :) Thanks for the help. Got a pretty clear idea now ;... (by incognito)
Deleting sum data from a file
 
switch (a) { case 1:{ system("CLS"); char a ,b ,c ; char x; ...
[no replies]
by Raust
date class with member functions
 
I am trying to create a date class with member funtions. I would like to set it up when you input 1-12 it will output January-December. Would I use a while loop...
[6 replies] Last: Many errors in the code ....incomplete code , incomplete while loop. ... (by bluecoder)
by Nouf
Array of sets of sets
 
Hello, I have created an array of sets as follows: set<int> A ; and wrote some code to access it. Now, I want to create an array of sets of sets. i.e. s...
[3 replies] Last: Hi, Thank you very much for the replies... I have managed to creat... (by Nouf)
by Layne
When Colour Under Mouse = "" Call apimouseevent LEFTDOWN
 
Hello everyone! My name is layne and I'm currently learning C++ Basically I want to have a program that detects the colour under the mouse and when the colou...
[1 reply] : It depends on what you are trying to track. For the standard Windows d... (by Duthomhas)
error c1033
 
can someone help me. I'm having a problem compiling my code. thanks in advanced
[3 replies] Last: [quote=Google and MSDN]error c1033: cannot open program database pdb T... (by LB)
plzzzzzzzzzz help me plzzzzzzzzzzzz
 
enter the equation then :- 1- change the equation from infix to postfix then print the result 2- Solve the equation and then print the result Allows the use ...
[6 replies] Last: Do you have to write your own stack? Because your assignment says that... (by Galik)
Please help with task
 
Given an even number n>2, find prime numbers, whose sum is n maybe can star something how for (int i = 2; i < n; i++) { if (IsPrime(i) && IsPrime(n - i)) b...
[12 replies] Last: there need some addition to this code (by shadowmangb)
by dalawh
Timer
 
In a class, how would I keep track of time using two functions? One to start the timer and another to stop the timer? I tried a few things with clock() and time...
[4 replies] Last: clock() returns clock ticks. If you divide the number of ticks by CLO... (by Texan40)
Please help on my project
 
Hello C++ Masters. Could you help program a robot or a remote control toy car. I really dont know where to start. and what should i get first.. Its for our ...
[4 replies] Last: Have you tried a Google search on: "C++ Programmable Robot"??? There ... (by cnoeval)
Help with locating Blobs in C++
 
CODE #include <iostream> #include <fstream> using namespace std; // sets max row and colum size const int MAXROW=22; const int MAXCOL=72; const int MA...
[5 replies] Last: Have you found you how to do this yet? I'm in a similar situation (sam... (by skatr0830)
by bb1
add to vector
 
I have read from a file and store the elements to a vector. The problem i am having is adding new element to the vectors. Here is what i have: vector...
[10 replies] Last: I got it to work thanks for the help. (by bb1)
Heap corruption error...........How to solve it?
 
#include<iostream> #include<conio.h> using namespace std; class Person{ protected: char *name,*nationality,*dateofbirth; public: Person() { name=new c...
[12 replies] Last: HI , if the array are defined as name= new char and delete the char... (by bluecoder)
Universal sys pause
 
so some people use cin.get(); cin.ignore(255, 'n'); cin.clear(); for a system pause, shouldn't it be cin.get(); cin.ignore(0); cin.clear(); ...
[4 replies] Last: Include <limits> for this to work. std::cin.ignore(std::numeric_limi... (by LB)
operator>>
 
I am writing a simple xml validator as an assignment. I ame having an issue with reading in the file with my operator>> here is the code: /** * Re...
[2 replies] Last: really that is there i cant belive i didnt see it thanks (by LiverEatnJohnson)
Why call close()?
 
I see some people on this forum explicitly close files with the close() member function. I understand if you want to call close on a global fstream object or so...
[2 replies] Last: Thank you Cubbi! That's a good point that I have never thought about. ... (by Peter87)
function help
 
you go into a void function, called a, and enter values for a and b, who add their user input values together and give that value to c. Now you go back to main ...
[2 replies] Last: okay that makes sense. thank you. (by Aramil of Elixia)
C++ Help about loop
 
I have a program which works but it will not continue or start over. After I input the first function it exit without starting over and over until I tell it to ...
[4 replies] Last: using / in paths on windows works fine and makes the code more compati... (by Peter87)
How to get this program to remember the seat
 
Hi guys (again), i am here with a new program! This time, i have created an airline reservation system that allows a user to choose a seat, the problem i having...
[2 replies] Last: Sorry, i think ive asked the question wrongly. What im asking for is f... (by PhilThompson)
How to read jpg image file in c++.
 
Hi, I want to read jpg image file in c++. please help me how to read , edit and save it with C++.
[4 replies] Last: What operation do you want to perform on jpg image ? (by bluecoder)
December 2011 Pages: 1... 343536373839
  Archived months: [nov2011] [jan2012]

This is an archived page. To post a new message, go to the current page.