General C++ Programming - April 2010 (Page 14)

quick check please!did it all myself
 
Hey guys! I have an exam tomorrow and just want some one to take a quick look over this program(GCD program) . I added comments for quick understanding.Thanks i...
[2 replies] Last: I would suggest looking up GCD on Wikipedia. It gives a simple algori... (by jsmith)
TEST SCORES #1
 
Hi please i need help with this question. Here it is: Write a program that dynamically allocates an array large enough to hols a user-defined number of tes...
[1 reply] : Please don't double post: http://cplusplus.com/forum/beginner/22290/ (by chrisname)
Beginner. C++ and GUI
 
Hi, I'm new to this forum. I have been looking at some books and tutorials on C++. I'm going to be doing a Bachelor of Engineering (Software) next year but I...
[3 replies] Last: I just want to add to this so that it doesn't hurt THAT bad next year.... (by Computergeek01)
by Deimos
Const-correctness issues
 
Hello again, I'm trying to understand const-correctness with references, I think I understand it with pointers but references confuse me. Please correct m...
[5 replies] Last: Ok, got it, thanks! (by Deimos)
by anzki4
"Moving" strings and ints. (1,2)
 
int main () { goto next_step; next_step: { string name; cin >> name; cout << "Hello " ...
[28 replies] Last: So the question is, how to change this function, so that instead of go... (by anzki4)
by wrz234
how to print the output from right to left
 
example: printf("Result"); printf("123\n"); printf("1234\n"); printf("12345\n"); the result will be Result 123 1234 12345 If i want to make ...
[5 replies] Last: @ chrisname, hmm, yes indeed, sorry i forgot but the ' - '. my mis... (by ManuAizen)
by Deimos
A generic handle-based resource manager
 
Greetings, I've been working on a resource manager which intends (amongst other goals) to replace seg-fault prone pointers with handles. It's quite simple, b...
[6 replies] Last: You have to make up a CImageHandle rather than just use CHandle<CImage... (by kbw)
Linear search
 
hi....im new to C++ and still getting a lot of problems understanding how it really works 1. i need to search a text file with records of music albums by the...
[15 replies] Last: Welcome to www.manoloblahnikcvs.com, from here you will hunt for any d... (by huanghuiyue)
by wrz234
alignment problem
 
Can correct my code below for the alignment problem #include <stdafx.h> #include <stdio.h> int main() { int i,j,mul; printf("\t1\t2\t3\t4\t5\t6\t7\...
[1 reply] : See here: http://www.cplusplus.com/reference/clibrary/cstdio/printf/ a... (by chrisname)
C++ loading large images slows down program?
 
I am loading around 5 images 512/512 pixels each and I change those images around, after I change those images around like 20+ times, my program just lags badl...
[no replies]
by prog
Use of macros: shouldn't be deprecated?
 
Sometimes I see an intensive use of macros in C++ code. Shouldn't be much better to use generics instead? It's frustrating to debug code packed of macros: t...
[13 replies] Last: int a , b; memset(a, 0, 12); Theoretically, that should work. If a... (by chrisname)
by tanago
write the name of a file in .txt doc
 
i want to make a program that prints the names of the files in a text doc. for example in C:/test/ there are movie.avi and song.mp3 and the program creates name...
[4 replies] Last: 10x very much btw it is working (by tanago)
Classes and Inheritance
 
Ok, I have a class project to basically design a program that handles classes and vehicles. What I have so far is far from the ending product. I have made 3 cla...
[1 reply] : In order to get the previous list of code to compile you have to remov... (by denis90)
dynamic creation of template class objects
 
Hello, I need to read a delimited file and then extract fields and other information that i want to store into a template class object. Every field will go ...
[6 replies] Last: I`ll try to read all as string and store them in a vector or some dyna... (by anotheruser)
how to remove newline character
 
hello every one in the below code void List::Fileoperation() { static s3eFile* a_FileHandle; static char* a_DataToBeRead; int flag=0; cha...
[4 replies] Last: char* p; if (ch=='\n') {p=&ch; p=p+1;} //should work (by wadim)
URGENT Problem Related to linked list of Struct
 
I have Structure typedef struct{ char* id; char* name; char* state; }productInfoT; I created list of this structure typedef list<roductInfoT> produ...
[2 replies] Last: List1(productListT) through this m just showing that list1 is a typ... (by hussainalishahid)
by Null
sizeof gives wrong results?
 
Hello, I have a question about sizeof() operator" struct s1 { short y; int *p; }; int main() { cout <<"size of ss1::y : "<<sizeof(s1::y)<<endl; /...
[9 replies] Last: Thanks. (by Null)
Heap Corruption
 
This is the .cpp file for a class, have a Heap Corruption problem and are sure the problem lies here. I've initialized all pointers to NULL, but are still unabl...
[4 replies] Last: thanks a lot, everybody. I am yet a beginner in this and are still lea... (by plurple)
by Zata
Print a value to a file?
 
Hello, I have this code: BioAPI_FAR FARRequest=0; BioAPI_BOOL bFARPrecedence=0; BioAPI_INPUT_BIR inputProcessed; BioAPI_FAR FARAchie...
[8 replies] Last: If you're new to files, you may as well start with the C++ iostream li... (by kbw)
templates and ld error (linking)
 
Hi, I had previously programmed a vector and matrix template class library (put together in the same .h file). I used this as one of the header file to compi...
[4 replies] Last: I didn't really got your problem. Templates are just not compiled in... (by imi)
April 2010 Pages: 1... 1213141516... 24
  Archived months: [mar2010] [may2010]

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