General C++ Programming - September 2011 (Page 3)

by barbis
fatal error C1001: INTERNAL COMPILER ERROR
 
Hello all! I am using and i have to use vc6 to make a multithreaded dll. The code is too huge to post here. Everything was working with debug mode and in ...
[4 replies] Last: http://support.microsoft.com/kb/216718 It appears it was updated in o... (by Azagaros)
Simple Bank Percentage Code
 
Hi Everyone :) I've just started a C++ programming class and I need to write a program to total up one day's worth of bank activity with a small percentage, ...
[3 replies] Last: I think you starting the wrong way so look at my code and see what you... (by Azagaros)
Efficiency Vs. Convenience
 
I'm debating code efficiency vs. convenience. I'm writing a general header file to help me if I ever need to use certain functions again. The one I'm working on...
[6 replies] Last: It doesn't affect speed though and that's normally what my focus is wh... (by Nerdy314159265)
by Grux
Output English word from number
 
Hi, I am new to the forums here, so forgive me if I placed this in the wrong spot. I looked around, but nothing has helped me out much. I'm having a little tro...
[2 replies] Last: It works perfectly now. Thank you very much! (by Grux)
Help really confused
 
When I try to compile this something about <= and says operator has no effect. how would i enter these lines in the code? Line A-1-3-27 is where i'm having ...
[no replies]
Reading from files
 
hello, i am facing a problem about reading from a file for my project. i am using fgets() to read from my file. i have chosen this function because i want th...
[1 reply] : which i do not want to do Then...don't? You don't need to create a... (by ultifinitus)
Weird Error
 
I'm writing a c++ program in visual studio that reads lines from a file and performs the bitwise operator indicated by the file line. For some reason when I rea...
[2 replies] Last: Thanks that fixed it! (by cdc2492)
vectors
 
I have a set of objects, that need to do something all at once, so I put them all into a vector.However, whenever I try to do something to a specific variable u...
[4 replies] Last: Either by pointers or references. References must be initialized wit... (by closed account zb0S216C)
Questions about pointers
 
The following code gives an output of 4111 int list = { 1, 2, 3, 4, 5, 6, 7}; int *p = list; std::cout << *(p+3) << *++p << *--p << *p << std::endl; ...
[4 replies] Last: Why ++++p is illegal? (by naderST)
by Amy269
Errors
 
I have a program I built tht is supposed to display change after a purchase. So far this is what I have and I keep gettin two erros at line 28. The error sta...
[11 replies] Last: Or even half dollars. (by whitenite1)
by swizzy
A bug in AVL tree deletion !!! Help pls !!
 
Watz wrong with this avl tree deletion code ?? A node with a single child alone gets deleted.. But then for other nodes the program stops working and term...
[1 reply] : Pasting a fairly complicated function without providing the data struc... (by diedrexler)
by Srija
Cursor Movement
 
hi Can anybody tell me how to move the cursor in the console window after taking an input from the keyboard. like string name; for(int i=0;i<5;i++) { cout<<...
[4 replies] Last: @Srija You're welcome. You may now want to update this thread as 'Sol... (by whitenite1)
nan
 
hi what's the "nan" error and how to solve it?
[3 replies] Last: Isn't this error from some other language, like Javascript? (by moorecm)
putting void on functions
 
hi, i have to go through one big file that contains code written in capl and there are function hwo don't have any returning type and i have to put void befo...
[5 replies] Last: Well first you have to be able to identify different functions. Chec... (by Stewbond)
How to update a string in xml file using C++
 
Hi , i have a question about dealing xml files with the help of C++.I have an 10 xml file in which i want to search a particular string value and want to cha...
[1 reply] : Hi, you are probably using some sort of library to parse the XML? The ... (by ljs)
How to Create multiple files in C++
 
i want to generate multiple files using for loop ....... how can i keep a difrnt name of every file #include<iostream.h> #include<fstream.h> #include<pro...
[3 replies] Last: @Stewbond: Change the ' on line 8 to " .... (by Nisheeth)
Converting a MFC dll to a console project
 
Hi, I am trying to convert a MFC dll to a simple console project where I can use its classes and member functions. I simply created a new console project wi...
[no replies]
by Srija
Supermarket billing problem
 
hi I am Trying to create a simple Bill format in the console application of visual c++.. I have completed all the code except My program can take maximum o...
[2 replies] Last: i am not using linked lists and all just simple 1. tabular format firs... (by Srija)
Allocate Memory dynamically on stack
 
Stack dynamic allocation with _alloca(), What pros and cons one see while using it, as it takes memory from stack. I have compiled one article for it :- http://...
[4 replies] Last: nice article. i got following from it Disadvantage of using alloca :... (by tajendra)
switch menu, keep the program running?
 
-- removed since resolved
[8 replies] Last: ow sorry, I misunderstood, I got it working now. nesting the switch in... (by navlelo)
September 2011 Pages: 12345... 31
  Archived months: [aug2011] [oct2011]

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