General C++ Programming - March 2014 (Page 26)

File display problem
 
Hi i guys i want to display all the contents of a file excluding one based on user input say i have 4 records in the file numbered 1 to 4....the user chooses ...
[2 replies] Last: Typically we would do something like //read while file contains data ... (by long double main)
Searching Algorithm
 
1011101111101111011000110011 Me and a friend are working on a project that requires us to create a C++ program (that isnt object oriented) that reads and sea...
[7 replies] Last: If you are trying to squeeze out the last bit of performance, you migh... (by doug4)
N x N matrix
 
I am trying to figure a way out to take in an input from a user and create a N x N matrix with what the user has inputed int **arr, rows, i, j; ...
[1 reply] : I was wondering if anyone knows what I'm doing wrong or have another w... (by Impala570)
program solved
 
I posted this about a month ago asking for help but it was taken down like a couple of days ago. I wanted to put it back up for anyone that needed help or wante...
[no replies]
sleep in main..Unexepcted result
 
#include<iostream> using namespace std; #include<unistd.h> int main() { cout<<"I am in main about to sleep"<<endl; sleep(5); cout<<" I w...
[1 reply] : Strange:P In any case, in c++11 you now have std::this_thread::sleep_... (by fafner)
linkked list
 
So I have linked list and function which deletes element if next element is bigger, so my code is working but its not working with first element, in the comment...
[1 reply] : sry for double post The fact that you knew you shouldn't be doing t... (by MikeyBoy)
C++ DFS (Depth first search)
 
I am trying to write a program that will find the path from the beginning to the finish.I understand the DFS scene,the thing is I don't know how to solve the p...
[no replies]
Multi-threading using boost::thread
 
I'm currently trying to log real-time data by using boost::thread and a check box. When I check the box, the logging thread starts. When I uncheck, the logging ...
[2 replies] Last: Boost ASIO actually has a built-in threading pool for it's resource ob... (by NoXzema)
Help! Program to generate Symbol table
 
Need to create a program in c++ to generate a symbol table of given assembly language program?
[1 reply] : If you compil/link for debug, you'll get a symbol table. Exactly how ... (by kbw)
by Slord
std::out_of_range vector error
 
Hi there :) I've been struggling with some code that was working fine until recently when I must have changed something and screwed it all up. #include...
[4 replies] Last: Ah, that makes sense :). Cheers, been racking my brains all day over t... (by Slord)
why I cannot run this programe?
 
When I run the programe following errors were displayed and i can not find any error. Error 3 error LNK1120: 1 unresolved externals c:\users\pvs\documen...
[2 replies] Last: I'm fairly sure this type of error occurs when you haven't properly li... (by Mike5424)
by pervez
UM6 serial parsing(datasheet parsing function) problem for getting serial data
 
BOOL readbyte(BYTE &resp) { BOOL bReturn = TRUE; BYTE rx; DWORD dwBytesTransferred=0; if (ReadFile (hPort, &rx, 1, &dwBytesTransferr...
[no replies]
by bads
help tetris
 
can anyone help me put some menu here that includes *Start *name of player and to improve the speed of the piece that falls when the block score is 20 here's m...
[4 replies] Last: thanks (by bads)
Get Items from map and add to a vector c++
 
I rote this code in my program JSONNode::const_iterator iter = root.begin(); for (; iter!=root.end(); ++iter) { const JSONNode& arrayNode...
[1 reply] : When you access nodeMap in the "Way" case, why not use the iterator? ... (by kbw)
Using Char instead of unsigned to calculate numbers?
 
How do you use char instead of unsigned to calculate numbers? This is using char only and nothing else. Step 1: I ask the user to enter a number. Step 2: ...
[4 replies] Last: Soe other points: char instead of unsigned On most implementations ... (by MiiNiPaa)
write header
 
can any body help me with this question question : Assume a class named Dollars exists. Write the headers for member functions that overload the prefix and...
[3 replies] Last: class Dollars { int dollars; public: Dollars& operator++(); Dol... (by Stewbond)
c++ game
 
I am new to c ++ (more or less) and I would like to make an rpg. (Perferably multiplayer) I need a bit of help. I know other languages. I need help on graphic...
[1 reply] : at least a link to a library http://www.sfml-dev.org/ (by MiiNiPaa)
2D Array Tic Tac Toe
 
#include <iostream> #include <iomanip> #include <cstdlib> using namespace std; int main() { const int row = 3, column = 3; char Table = {{'1', '2',...
[2 replies] Last: God Bless Your Soul. I looked so retarded looking at your reply. Thank... (by MazharMustapha)
I want to use old version <iostream.h>
 
Hi all! I'm want to use the old version for programmin in C++. I'm want to use the <iostream.h> instead <iostream>. How can I do this.? I have the Visual S...
[3 replies] Last: Also it should let you use it directly unless the compiler does not s... (by cire)
external file read failure
 
I'm having trouble with a function that reads in data from an external txt file. inFile.fail() keeps returning true which really baffles me because I have the ...
[no replies]
March 2014 Pages: 1... 2425262728... 36
  Archived months: [feb2014] [apr2014]

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