General C++ Programming - January 2015 (Page 23)

Problem in binary files in turbo c++?
 
I am working on binary files in turbo c++ 3.5 and i want to create a library program. I want to add information about books in a binary file and do functions su...
[2 replies] Last: Please read my ask. My codes is c++ and work successful with turbo c++... (by mahdimanian)
Tictactoe with Al
 
Is strange. I never got it working. I`m not in my Linux partition just now to compile, but the code compiles and output is strange eg. computer does not play ...
[no replies]
Help me with this task please
 
input : 325 output : 3332255555 i was trying for so long but i cant get the right code ... im out ... please can someone do it ? im absolutely angry becaus...
[10 replies] Last: For 'auto' you will require to enable C++11 with your compiler (if not... (by bugbyte)
by anhnha
Help understand pointer declaration
 
Let's consider the pointer declaration: int *x; This is understood as *x is of type int and so x is a pointer. So, how would you explain it in the ...
[4 replies] Last: Thanks! This is really new and look chinese to me! I need to read up a... (by anhnha)
by anhnha
The Ksplice Pointer Challenge
 
I am reading The Ksplice Pointer Challenge in the page below: https://blogs.oracle.com/ksplice/entry/the_ksplice_pointer_challenge Could anyone read the art...
[7 replies] Last: Here is what I thought: x has type array of int . printf("%p\n", x... (by anhnha)
by tk tk
Parking lot project need help
 
SOLVED
[1 reply] : Vectors in C++ are a way of storing many things of the same type, simi... (by David Nuttall)
cStrings
 
I get thi error! Unhandled exception at 0x0109489B in estudiar.exe: 0xC0000005: Access violation writing location 0x0109DC74. I have no idea why. #include <ios...
[4 replies] Last: char * is a pointer. It is all a matter of what it points to. Cons... (by David Nuttall)
Code match Pseudocode?
 
This is my code and I was wondering if it matched my pseudocode and if not how would I rearrange it to do so and any improvements I could make. The code works j...
[2 replies] Last: [co de] "use code tags" [/co de] also, leave the pseudocode as com... (by ne555)
Finding Greatest Common Divisor
 
Is there a function or algorithm in stl in c++ which can help me find out the gcd of a vector ?
[1 reply] : Yes. Assuming v is your vector and gcd a binary function, you can ... (by m4ster r0shi)
Lists
 
I wrote this code, but I have problems with function afis(), which must display fruct from import that have the maximum price #include<iostream> #include<c...
[5 replies] Last: Nice, comments. > Function afis() do not works. be a little more desc... (by ne555)
by Danyal
weather report functionaility
 
can anyone of you explain this line of code set <W_report, less<W_report> > perset; and the other statements like this in code below..... #incl...
[1 reply] : it is the implementation for the std::set container, containing W_repo... (by ats15)
Batch Code?
 
Can someone explain to me what batch code is and give me some examples as I'm abit stuck on them.
[4 replies] Last: Both bash and cmd.exe execute batch processes. On Windows systems, ... (by Duthomhas)
by dteel
C style casts
 
I've made many posts in the past with regards to C (on different forums) to have people comment on it saying I should use C style casts if I'm programming in C+...
[3 replies] Last: The problem with C casts is you're never quite sure what they're doing... (by kbw)
Help! Calling all programmers :/
 
The Scenario FLC is developing a new system for an engineering company. A common requirement within the new system is to know whether sets of product dim...
[4 replies] Last: Was helpful, Thanks :) (by BKR1888)
Strange while loop behavior
 
Okay so I have this: int i = 0; int lineN = 0; string line; ifstream qFile; qFile.open("Questions.txt", ios::in); cout << "Opened" << endl; while(g...
[1 reply] : How did you define 'data' and its attributes? (by tcs)
by poteto
Timer efficiency.
 
Just a short question. I'm starting to use many timers (networking), and I was wondering what are the ways of making them more efficient. I was thinking a...
[1 reply] : Multiple timers are indeed realized in a similar manner. Have a look a... (by tcs)
Do std::cout the hard way.
 
If I wanted to do a basic output to the console without any header files, how would I go about this? I don't have any practical reason for doing this, it is jus...
[2 replies] Last: Other than Pascal, C/C++ doesn't know anything about in-/output. The r... (by tcs)
Programming Exercise
 
I have copy/paste my code below for a program. However, I need the numbers to be output in the reverse order than they are currently outputted. For example, if ...
[2 replies] Last: Your return main() statement results into an infinit recursion causi... (by tcs)
Airport data base program
 
------------------------------------------------------------------------------ #ifndef AIRPORT_H #define AIRPORT_H #include<cstdlib> #include<iostream> ...
[3 replies] Last: And please don't forget indentation. (by tcs)
Best books to learn C#?
 
As the title says, what are the best books to learn C# from? Generally for the use of Unity maybe also with use of .NET or XAML. Please tell me the name of the ...
[3 replies] Last: Microsoft Visual C# 2013 Step by Step - John Sharp http://it-ebooks.... (by anup30)
January 2015 Pages: 1... 21222324
  Archived months: [dec2014] [feb2015]

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