General C++ Programming - October 2013 (Page 15)

by maniac
Windows or Linux for programming
 
Hi! I have been learning C++ for around a year and through all this time I used Windows XP. Now I want to start learning C#. But I can't decide which platform t...
[2 replies] Last: Is Windows better for developing .Net aplications? Seriously? Even... (by MikeyBoy)
Adding data from a file into a class variable
 
Hello everyone. I am trying to add data from a file that would go into a class that would later go into a vector of a class. I'm not really sure how to do it ...
[2 replies] Last: What is the problem you are having? Is it reading data from a file? ... (by MikeyBoy)
Reading Files (Income Tax)
 
I need help trying to figure out why my data is not being displayed in my text box. I have no compiling errors and it seems as if my program isnt doing anything...
[4 replies] Last: First of all, it does nothing, let alone what you want it to do. You ... (by MikeyBoy)
Hash Table
 
I'm having trouble running this, I always gets two errors (1) ...\hash.h(11): error C2061: syntax error : identifier 'string' (2) ...\main.cpp(14): error C...
[8 replies] Last: and line 7 too, using namespace std; should have been before the hash... (by MikeyBoy)
c++ declaring parallel arrays as functions
 
i'm facing some problems with the array, as I have my .h and .cpp files so do i declare them as per norm of how we usually declare a function? pointtwod.h ...
[1 reply] : PointTwoDImp.cpp:99:6: error: prototype for 'void PointTwoD::storeda... (by SneakySnake)
How to start writing game app
 
How do i start writing Gaming app using C++. What is the environment required. I have mingw compiler installed on Windows8. Please suggest some reference to sta...
[4 replies] Last: Thanks for the links.. (by kulkarnisr)
Do I have to explicitly typecast for conversion from derived to base???
 
#include<stdio.h> #include<iostream> using namespace std; class base { public: void display() { cout<<"base"<<...
[2 replies] Last: Your derived is not a derived class from base. Change your code to: ... (by abhishekm71)
when do we use vectors??????
 
Hi All, can you please let me know one practical example where do we use vectors? I write many sample programs when I was learning vector member functions,it ...
[1 reply] : Hitting a database every time you wanted information is s-l-o-w compar... (by Zhuge)
Searching by Last Name
 
Hi everyone. I have an assignment to create an address book in c++ where you can enter contact information and then search all entries via last name. I am troub...
[1 reply] : This should let you get started : #include <iostream> #include <st... (by Kikiman)
const char* not being interpretted correctly
 
I am trying to use libXl to output text from a C++ program to an Excel file. The problem is coming with this library function: bool writeStr(int row, int col...
[3 replies] Last: In case anyone else faces similar problem, this was solved using the s... (by abhishekm71)
Expression Must have Constant Value??
 
line 27 and line 88 Im having a hard time figuring it out what the error is. #include<iostream> #include <cmath> #include<algorithm> using namespace st...
[2 replies] Last: From Line 1 through 25 my instructor gave us the code from there on we... (by Alex1991)
Errors i Cant seem to Fix
 
1>c:\users\kelvin\documents\visual studio 2010\projects\person\person\person.h(16): error C3646: 'Private' : unknown override specifier 1>c:\users\kelvin\docum...
[17 replies] Last: Her is my output;does not seem right Enter the number of your siblin... (by Kelvin Njuguna)
strange error
 
ok so this is my code: #include <iostream> #include <conio.h> #include <cstdlib> #include <cstdio> #include <windows.h> #include <string> using namesp...
[2 replies] Last: Thanks a lot. (by megasnorlax)
by mahm
Click Not working
 
My first post so im a newbie. This is part of my main function (graphics program- Maze). CreatMaze(maze), DrawWindow(maze, x, y), SolveMaze(maze), MoveRobo...
[4 replies] Last: Solved it thanks! That was the problem. Instead of changing the whole ... (by mahm)
Drawing a rectangle and diamond using recursion
 
Hi everybody, I'm wondering if someone can help me out to write a code that draw a block and diamond each in a single run by using '*' in recursion. Below are...
[1 reply] : Do you have anything in terms of code yet? It would be very helpful to... (by Danny Toledo)
c++11 and multi-threading
 
HI! I'm on an old computer running windows XP and I'm trying to check out the new multi-threading features of c++11, but Code::Blocks doesn't recognize the <thr...
[5 replies] Last: yes TDM GCC is the one I tried with code::blocks (by AeonFlux1212)
Where to start for C++ Game Development?
 
This is not my first time developing games using C++. I wonder if there are any programs that can provide some type of IDE/plugin made for game development or s...
[2 replies] Last: Supposedly Norton indicated the virus coming from Visual Studio 2006, ... (by backslashx00)
by San007
Calculate average of array and print elements.
 
Use function decomposition. -To prompt user to enter value and assign it to correct position in array -calculate the average of an array -display all eleme...
[2 replies] Last: Thank you. I usually use visual studio and it tell me right away if i ... (by San007)
problem with <bitset> and reinterpret_cast
 
Hi! Here's some code... #include <cstdlib> #include <iostream> #include <bitset> #include <fstream> #define RANDOM_A (1103515245) #define RANDOM...
[4 replies] Last: Hello again... after a lot of testing and debugging I figured out that... (by AeonFlux1212)
Creating a headerfiel
 
Hello All, I was wondering if someone knew of a good/solid example on how to create a header file? thanks.
[2 replies] Last: I think he meant how to do it properly/when to. There is an article on... (by giblit)
October 2013 Pages: 1... 1314151617... 46
  Archived months: [sep2013] [nov2013]

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