General C++ Programming - February 2009 (Page 9)

Iterators
 
Hello, I'm trying to make use of iterators in my linked list. I've read up on them but never used them. I thought I was declaring this right but apparently n...
[2 replies] Last: Thanks. Makes sense that would be the problem. I changed the name an... (by aeronet)
by Folke
Vector question
 
Hello! (sorry if my english is bad I'm from Sweden) I have a little problem. Look at this code: int persnr ; cin >> persnr >> persnr >> persnr >>...
[5 replies] Last: Thanks for the link! But I can't get this to work with a vector. It wo... (by Folke)
DateTime format.
 
I have a small part of my code that outputs a date/time string as this: Thu Feb 12 09:05:52 2009 I do this using this code: ... time (&rawtime); timeinfo...
[1 reply] : Not without using a library or manipulating it yourself. http://www.c... (by Zaita)
revised topic - greedy algorithm, advanced
 
Sorry for doing this, but I am reposting an alternate problem because I think I confused people the first time. I have been reading about greedy algorithms (...
[10 replies] Last: For the likelihood function, so this is just something you would run ... (by Zaita)
changing psuedo code into a function
 
Hi I am having a little difficulty turning my psuedocode into a function. My psuedocode is the following: Prepare to read the file. print main header ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ We don't provide homewo... (by Zaita)
how to insert a struct record into a binary search tree
 
how to insert a struct record into a binary search tree
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ Your not asking reaso... (by Zaita)
hlp with trees
 
this is my program #include <iostream.h> #include <string> struct CropType { string crop; string farmer; string color; ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
greedy algorithm - advanced/theoretical question
 
See http://www.cplusplus.com/forum/general/7692/
[8 replies] Last: If your starting off with an empty network. Then the greedy algorithm ... (by Zaita)
[SOLVED] Thanks to Grey WolfTrying to get a char to reverse
 
Alright quick question I can get this to work but after the "char s = "The quick brown fox ";" I need a space after fox whats wrong in my code thats making it ...
[15 replies] Last: hey for greet output you just need strlen=index; i... (by raprap321)
by bessaz
generic linked list
 
Hi, guys! I need to create a generic linked list (Polymorphic containers),with class no the structur, I found this answer on the site http://www.cplusplus....
[8 replies] Last: thx :) but, in your code kevinchkin : node_base* current; cur... (by bessaz)
by vivmen
why goto should be avoided
 
hello all i read in many books that we should not use goto in our code, but i don't get detail explanation that why we should avoid goto ? wh...
[8 replies] Last: I like what my lecturer said, many years ago, when asked about using g... (by closed account z05DSL3A)
Howto Read From Binary File
 
Dear all, The following code first writes the data into a binary file. Then reading the file again. However the output it gives after reading it is fa...
[no replies]
by olove5
Hello everybody, can someone tell me how to fix those errors
 
array.h:21: error: redefinition of âclass Array<DataType>â array.h:22: error: previous definition of âclass Array<DataType>â // THOSE ERROR HAPEND WHEN ...
[5 replies] Last: Olove5 , Why did you totally change the question and title of this to... (by closed account z05DSL3A)
Looking for a file "pic.h"
 
Hey guys, So I've got the task for some basic programming on a "Sure Electronics - 7" Character Height 7-Segment LED Information Board". Now I'm fine with do...
[4 replies] Last: Hello Mythios. OK. I wait your email with the files at cristoforo.c... (by cricamerano)
Passing System Call Output Into A Variable
 
Dear all, Is there a way to do it with C++? Typically in Perl this could be done this way: my @output = `echo foo \n echo bar`; chomp (@output); ...
[3 replies] Last: You can also read from stdin. If for example, you wanted to run a pro... (by seymore15074)
image power of 2
 
hi everyone, i have an image N*M dimension, but N and M not a power of 2 .How can i convert this image to dimension of power 2 . the Image class is as follows...
[2 replies] Last: Following the post of Zaita.. you should resize the image by ading dum... (by SouravDutta)
Files and Pointers
 
I was wondering how its possible to write information contained into a text file, into a pointer variable like an array. The first number in the file indicates ...
[1 reply] : http://www.cplusplus.com/doc/tutorial/dynamic.html http://www.cpluspl... (by Zaita)
by cmass
STL List class and pointers
 
I am using a list for my data. Is there a way to set a pointer to the beginning of the list?? Thanks!!
[9 replies] Last: No worries :) (by Zaita)
hlp with Trees
 
this is my program #include <iostream.h> #include <string> struct CropType { string crop; string farmer; string color; ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
SOS me with my Log in Dialog
 
if(!strcmp(username,"raprap321")){ if(!strcmp(password,"qwerty")){ clrscr(); gotoxy(23,14); printf("Correct"); } else{ ...
[3 replies] Last: gets() is not a safe function call. It does no bounds checking. (by Zaita)
February 2009 Pages: 1... 7891011... 14
  Archived months: [jan2009] [mar2009]

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