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

Exporting classes
 
Hi, I'm having trouble exporting classes in a diamond structure from a DLL: #ifdef DLLDLL_EXPORTS #define DLLDLL_API __declspec(dllexport) #else #defi...
[no replies]
Correct variables?
 
This is just the beginning of my program. This is all new to me, as you can probably tell below, but I'm just checking to make sure I'm on the right path. I wel...
[3 replies] Last: Do the underscores only apply to variable identifiers? I think you ... (by Moschops)
Big O Notation
 
Did I count the steps correctly? And if so how to I plot O(1),O(N),O(NlnN),O(N^3)
[1 reply] : Try reading this, I found it very helpful http://rob-bell.net/2009/06... (by broot)
by Seeshi
Knight's Tour
 
Hey guys, I am trying to complete a c++ Knight's tour program. I am getting full output but the tour stops after the first move so my output is this 00000000 0...
[10 replies] Last: @Seeshi Oh, goodness I feel so stupid now. Been there, done that - m... (by keineahnung)
HEAP CORRUPTION (#209)
 
#include "stdafx.h" #include <iostream> using namespace System; using namespace std; class KeepRunning { public: ~KeepRunning() { system("PAUS...
[2 replies] Last: Thanks a whole lot! This cleared up so much of what I thought I knew a... (by yukyduky)
by Nuzut
Vector of pointers to struct
 
hey guys, I'm having a little bit of trouble with my code. it is s'pose to read the names and stats of basketball players from a file and store it in an individ...
[2 replies] Last: How on earth do you expect to remember what those variables stand for?... (by Disch)
Hello Everyone im having a little problem . . .
 
im having a little trouble with this reverse program can anyone tell me where i went wrong? -_-" im a new IT student it would help me a lot if anyone can tel...
[4 replies] Last: THANK YOU VERY MUCH SIR :DD! (by emongadarna)
Wrap around chars in a string
 
Given a "char s " I want to shift every char of it "offset" positions. For example, given offset = 1 (shift 1 position), 'a' should become 'b', 'i' becomes 'j'....
[1 reply] : This is not right at all. Try it with offset 0 and s = 'a'. s = 'a'... (by hamsterman)
String Value
 
Ok so I have been looking for a solution in the internet for nearly 2 hours and this has been bugging me seriously... class Menu(){ private: ...
[5 replies] Last: If you write std::string some_string(); , you're declaring a function... (by hamsterman)
read from excel files
 
I wish to know how can I do the following, mostly in TC ( i had studied TC long back but seldom used it) I have two excel files. File1 has a lot of rows in ord...
[2 replies] Last: Determine for given complicated question there is a http://www.recover... (by zlatan24)
where can i find c++ poject?
 
i am a c++ programmer,i get a job of server development two months ago.i want to improve my c++.knowlege ,anyone can tell me where to find some c++ small proje...
[7 replies] Last: thanks a lot, hanst99,i find it (by wufengyi)
dynamic allocation problem in function
 
if I want to call a function manipulateMatrix(Image * im, int n); Image is a class, which one is a better function? Can you classify the situation to use eith...
[3 replies] Last: ...If I'm understanding you right, then, I would do the second. It see... (by Zhuge)
by grlbcc
Program for a right Triangle
 
I need help with this...this is my fourth week in C++ online class, and it is going pretty bad. There are some errors on my code, mainlly where the equal signs ...
[4 replies] Last: cout << "Enter the side of the angle you want to solve"; cin >> side... (by buffbill)
read and write.
 
I just want to change the contents of file into one line. Can you tell me the error, please? Thank you for your help! #include <fstream> using namespace s...
[2 replies] Last: Generally you need to open all files before you can use them. It is a... (by Azagaros)
Help - how to calculate salespeople
 
The company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salespe...
[2 replies] Last: I think I figure it out. Not sure but i already submit my assignment. (by Neary Sim)
Scanf Function
 
i recently wrote a program in C that allows a user to enter a letter which is later identified with the help of the coding of the program and displays an output...
[8 replies] Last: And People as the answer to my previous question i think no more solut... (by Amalinda Gamage)
is there a way to change the user's password with c++/
 
I was wondering if there is a way to change the admin or the user's password using c++.
[1 reply] : Yes, but obviously you will need the original password for it to be su... (by Disch)
Doubles/floats adding up wrong
 
This program I'm making is an amortization schedule, and the numbers aren't adding up correctly (in the beginning, it's off by a cent or two, and by the end it'...
[3 replies] Last: puzzling through your code.... double totalInterest = newInterest... (by Azagaros)
segmentation fault
 
I'm working on a program for my class and I've hit a wall the header file I created enum Hogwarts {GRYFFINDOR,SLYTHERIN,RAVENCLAW,HUFFLEPUFF}; enum Minist...
[3 replies] Last: ah, thank you. I had been playing with the code for a while and had sw... (by Kniggits)
Array of structs
 
lots of code so I'll stick with individual problems for the time being. first off, the struct struct Wizard { string wizName; int bDay; int bMonth; int b...
[3 replies] Last: upload the code (by tolga gerekci)
September 2011 Pages: 1... 56789... 31
  Archived months: [aug2011] [oct2011]

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