General C++ Programming - February 2010 (Page 6)

Single to Doubly Linked List
 
I understand the concept of Doubly Linked Lists and I'm trying to understand how you convert them for our upcoming test. Though I know you use prev / precede in...
[1 reply] : If you haven't already, get out a piece of paper and some crayons and ... (by Duthomhas)
strftime in C
 
#include <stdio.h> int main() { char a ; strftime (a,10,"%B"," "); puts(a); return 0; } above code gives 'Marc...
[2 replies] Last: It's probably just reading random garbage and interpretting it as 'Ma... (by vipul mehta)
by smiler
Type size
 
Hello, I have really simple question that comes from wierd compiler behaviour. A variable of type unsigned long long is 64 bit length, but if I store a va...
[3 replies] Last: There is no "shift variable" -- and he isn't interested in it. He i... (by Duthomhas)
1 million integer problem..
 
I intend to study different sorting algorithms on large arrays.. I am trying to use 1 million array in C++ It gives me stack overflow.. Why? and how to sol...
[5 replies] Last: Oh, so like strings, then? They go in the .bss section and get mapped ... (by chrisname)
Pass std::cin as a parameter?
 
For some reason, when I try to create a function like this: vector<Variable> tokenize(string full, Environment& env, LexerType largs=NOARGS, std::istream sour...
[2 replies] Last: Great, that fixed it. Thank you! (by demosthenes2k8)
Project on c++
 
I got stuck in C++ Programming . I'm not really good but wish to learn alot from several experts. I got a project. Title Patient Fees . which im not really sure...
[9 replies] Last: To computerquip, Thanks for your advice, i hope in the future... (by Niwde1463)
What is a practical use of a linked list?
 
I have been reading up more and more on C, and it appears linked lists are very important in that language. Each time they are introduced, it is said they can b...
[13 replies] Last: A list also deals with memory fragmentation much better than a vector/... (by Duthomhas)
Recursive solution to counting nodes in a linked list
 
I know the iterative solution is the best way to go, but just to get a some more practice/experience with recursion how would you make a recursive solution to c...
[7 replies] Last: That'll do, and it's even shorter than mine. (by kbw)
LOOP trouble
 
All help is appreciated, I am currently in a jam here with writting a program, it states that A person will donate 1 penny on day one then double the donati...
[19 replies] Last: As according to we will not this part of the code . // count numbe... (by bluecoder)
by snpl
systemC (Linker error - undefined reference)
 
This is is supposed to be an implimentation of a 4bit shift register (vhdl style coding I am afraid...). The dff.h constracts a d-flipflop The btrg.h links 4 ...
[9 replies] Last: Today I register here to THANK U all. I was about to pull my hairs out... (by prady)
by r2d2
hook a static function?
 
hello every1, I need your suggestion about static declaration function overriding. It should works if I would do pointer to this funcion? IOW, malloc_hook sh...
[no replies]
India Game Developer Summit Announces Program and Speakers
 
Summit Draws Endorsement and Support from IGDA, NVIDIA, Adobe, Ubisoft, Playdom and more Bangalore, February 18, 2010: The highly individualistic nature of t...
[no replies]
by jimr
Can two Bit Fields be AND'ed or OR'ed
 
I am coming from a Unisys Algol environment, yes there are few of us left, and have an application that makes extensive use of MASKS for monitoring different st...
[6 replies] Last: Oh, thanks. (by chrisname)
output formatting
 
Hi everybody, I dont know why my output comes out all weird, maybe its because i have had a long day i dont know. I just want it to come out has it is in the fu...
[1 reply] : You're using tabs, and your tab size is different to that of your shel... (by chrisname)
by Ryan99
fopen to create if not exists and update if exists
 
Im writing an app where I need to open a file, read data, check a element of the struct to see if my data already exists. if exists I update if not I append to...
[12 replies] Last: @m4ster r0shi, fair enough. Personally, I don't use windows, so "a+" ... (by chrisname)
by nicoya
simple C++ program
 
I have a lab that takes user input for example user enters: 45341. The most significant/least significant digit needs to be displayed. 4 would be the most signi...
[5 replies] Last: Thank you m4ster r0shi. It worked out I can finish it from here...yea ... (by nicoya)
Wow things have changed
 
So I finally got a new computer. I haven't messed with c++ or other languaged much in a few years and I decided to get back into it and I got studio 2008 pro. ...
[3 replies] Last: Ok one more question. Take everything I said below and say I wanted to... (by XyA DarkSide)
Problem with using a header file
 
I have a header class that was written for me that creates a stack that you can call different functions on. I am having trouble with how to use this code in a...
[1 reply] : #include "stack.h" void SomeFunction() { Stack mystack; ... (by Disch)
Programs
 
Why do none of the programs that I attempt to make ever work. For example I did "hello world" and all that happened was the command prompt opened for a quick m...
[1 reply] : http://cplusplus.com/forum/beginner/1988/ (by jeffbmartinez)
copying info from file to vector array
 
Hi Guys Could someone help me with the problem, I am trying to read string data from a file to a vector, but keep getting this error, line of code is below....
[1 reply] : It would help if you posted the full error as generated by the compile... (by kbw)
February 2010 Pages: 1... 45678... 21
  Archived months: [jan2010] [mar2010]

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