General C++ Programming - August 2008 (Page 3)

by ioabo
Calculations with array
 
heeey everyone...i got one question. ok, if you have a table with 2 columns and a number of rows... in the first column there are some repeated numbers in it. n...
[1 reply] : You could use 2 arrays e.g. int a ={2,1,1,5,2,7,4,4,8,3}; ... (by buffbill)
by treyk4
libpng read from array?
 
Hey all, I'm a bit new to C. I'm currently working on a graphics rendering library for the wii, and I've run into a bit of trouble with libpng. All the docum...
[2 replies] Last: (a) This is a C++ forum. If you think that C and C++ have something i... (by treyk4)
by enet
Need for 1 function
 
Can any one help to define ??? part in my data structure project? thanks. .... ... struct Customer{ int tckimlikno; // customer identity number ...
[1 reply] : If the order in the activity list doesn't matter, then you have the ch... (by mahlerfive)
How to read filenames from a vector and open them
 
Hello, I am trying to write a program that stores all of the names of textfiles in a current directory in a vector,once having the filenames I need to open eac...
[2 replies] Last: Thanks!! It worked!! You are the greatest!! I have been seeing alot of... (by tnjones)
How to search for a string in a text file using wildcards(*,?)
 
Hey, I am trying to write a program that reads a textfile and displays all valid e-mail address(tj@yahoo.com or tn.hall@auburn.edu) that are in the textfile.At...
[8 replies] Last: Duoas, Thanks!! I have it working somewhat!!! (by tnjones)
by Beni
2d array and scanf() problem
 
Hi! I've two source code, the difference between the codes is the 2d array size. My question is simple: Why causes runtime error the first code and why runn...
[3 replies] Last: No, that is where you are mixed up. t == *(t+i) : is not an addr... (by Duthomhas)
by Gregor
File operation problem using fstream
 
Hey, I'm writing a simple program that will mask a string of bytes - a file - with another string of bytes using xor. I've wrote about 600 lines of code, quite ...
[2 replies] Last: Update! I've noticed that writing sucseeds, if I dont use truncate ... (by Gregor)
STL list <unsigned short> and ostream
 
Hi I have a following class: /////////////////Data.h class Data { public: ... friend ostream& operator<< (ostream& out, const Data& rData); ...
[2 replies] Last: Hi exception, It (ostream) now works. Also changing the iterator ... (by shrinath)
The keyword abstract
 
I was just wondering if it would be correct for me to use the abstract keyword which seems to be specific to Visual Studio. From what I have found I can use th...
[4 replies] Last: Oh dear. Another spam post... (by markwales)
by Gonen
Question about string
 
Hello , I am doing a program now , and I got a string like that. string s="123\n~~~\n456\n~~~\n789\n~~~"; I want to do that if the user will insert 45...
[6 replies] Last: Hi, I am Rammohan from Bangalore and working as a Technical lea... (by FindSyntax)
3rd party C++ Library for PDF conversion
 
hi guys, Can someone suggest me any 3rd pary C++ library , which will convert text files( MSWord , MSExcell and normal *.txt file ) to PDF file. please he...
[2 replies] Last: Hi, I am Rammohan from Bangalore and working as a Technical lea... (by FindSyntax)
may i ask whats wrong with my if statement?
 
#include <iostream.h> #include <stdlib.h> main() { char name ; double sales,com; //com is commission cout<<"\n Input name and sales " ; cin>>name...
[6 replies] Last: Oh my god, what the hack should that be? It isn't april the 1st on my ... (by exception)
by Gonen
Very weird problem about string.
 
Hello , I wrote this code #include <iostream> #include <fstream> #include <string> using namespace std; int main() { string str="HelloW...
[3 replies] Last: thanks a lot duoas , I understand it now... I did like that in it w... (by Gonen)
by astro
Finding memory address.
 
Greetings mortals. what i am about to ask might sound a Like its been asked before, but its not... i need to change the value of a memory address. say t...
[no replies]
Menu
 
Which section shows how to do a menu?
[3 replies] Last: Then by reading the Basic I/O you will find how to output at the conso... (by Mitsakos)
find_if + member function
 
Hi, What I'd like to do is iterate over a list of objects, checking the return value of a member function for a particular value. Some groundwork: #incl...
[8 replies] Last: Actually, I had to compile and run the example before I posted it so I... (by jsmith)
by Nobun
Question about free() and memory deallocation
 
I'm sorry for boring you about SO MANY questions of memory allocation. Assuming I have struct C { int a, b; }; struct B { C * c; int total_...
[16 replies] Last: Helios, Jsmith... at a first-eye I'm not sure I understand all you sai... (by Nobun)
How convert string to char*
 
Hi! I can't convert string to char*. This is my code. string temp; cout<<" Enter your name: "; cin>>temp; char * pch = (char *) malloc(sizeof(char)*(temp...
[3 replies] Last: You also need to pay some close attention to little details. You've g... (by Duthomhas)
by Alck
need assistance in oop
 
hi all, we need some assistance in our program. please advise question: A community centre has decided to computerize the booking of two badminton courts...
[5 replies] Last: You could assign a 6 element array for each day and enter a * for each... (by buffbill)
how to reuse a previous function
 
Im not sure how to recall the last function i did in a new one. (LINE 7) double azimuth(struct place * a,struct place * b){ (a->lon)*(PI/180.0); (b->lon)...
[2 replies] Last: call func A() from func B() then D will be available for other purpose... (by buffbill)
August 2008 Pages: 12345... 9
  Archived months: [jul2008] [sep2008]

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