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

need explanation
 
An "A" entered in the keyboard simulates an interrupt signaling the arrival of a process. The handling routine should create a PCB for this process, generate a ...
[no replies]
PLEASE SOLVE THIS PROBLEM
 
Hey and hi, Task 1: Write a program that randomly generates 1000 integers, then, generate an integer Y. Determine whether there is a match between Y and any o...
[2 replies] Last: #include <cstdlib> #include <ctime> // clock() and CLOCKS_PER_SEC #... (by closed account 1CfG1hU5)
by clock
What does *= mean?
 
For example, void multiplyByTwo(int m) { m*=2; } How does that read exactly? I understand what it does by the function name, but I don't underst...
[9 replies] Last: #include <iostream> using namespace std; void multiplyByTwo(int m) ... (by closed account 1CfG1hU5)
by Won
Binary input
 
Hi everybody! I would like to read in binary files, then write them to another file. I writed a code, what works perfectly, if I would like to just copy the f...
[4 replies] Last: Thank you!! (by Won)
by Noori
reading from file
 
hello, lets say i have the coordinates x,y of and 2d space in an input file like: 10 2 3.57 3.18 84.91 27.69 93.40 4.62 67.87 9.71 75.77 82.35 74.31 69...
[no replies]
Error: variable or field 'xxx' declared void
 
On running the following codes I'm getting these errors. I'm using Code Blocks 13.12 void view(string); //error: variable or field 'view' declared void & ...
[7 replies] Last: Thanks @MiiNiPaa, It worked. (by atinesh22990)
reading numbers from a text document
 
so the data file is a .txt that is going to be pre-written like this: numbers: 562 444223.123321 312233.31222 3232323.31122 332231.323223 333232.32323 323...
[4 replies] Last: Thank you so much! I am able to see what i did wrong. You were so help... (by anhdang)
Save files
 
How do you create a save file for a game, that is not a separate file? Specifically I am using code::blocks and sfml 2.1 to make a game and it saves to a text f...
[6 replies] Last: Why not just use binary files? Your entire save could be a single str... (by Disch)
C++ Primer 3.2.3
 
Write a program that reads a string of characters including punctuation and writes what was read but with the punctuation removed I have tried it but the...
[no replies]
by Kubani
push_back(new triangle)
 
Hi, In C++ by FLTK, to define a circle we use some code like this: Circle c(Point(x,y), r); And we can using vector_ref put and save them in a vector , ...
[1 reply] : No reply!? for more info read this please: http://forums.codeguru.com/... (by Kubani)
quick sort.seems like the function quicksort(int [],int,int) is not at all called
 
#include <iostream> using namespace std; int split(int a ,int p,int r) { int x=a ; int i=p-1;int j=r+1; while(1) { do{ ...
[2 replies] Last: quicksort is called, what does this line look like to you: int* s_arr... (by Smac89)
Please I need help having this compiled
 
Return the digit at the user specified index of an integer. If the integer has n digits and the index is NOT in the range 0 <=index <n return -1 Sta...
[4 replies] Last: Oh yes. many many thanks. reversing it and then comparing the left f... (by shaniwaketech)
I need more lesson c++
 
I am sick of mathematical operations. I learned all lessons at this address. http://www.muhammedmastar.com/c-dersleri But i want to learn more difficult with...
[2 replies] Last: I have to break c programming because of my school. I go to college an... (by BataryaCompany)
Parking Garage
 
I have a program where a parking garage charges 6 dollars for 3 hours. for extra hours, they charge an extra 2.50. for a 24 hour period they charge 35 dollars. ...
[3 replies] Last: thanks for the help (by sammweout)
please help
 
<<ambiguous overlead for 'operator= ' in '((student*)this) -> student::name = 0'>> This error is in the line below. --------------------------------------- ...
[10 replies] Last: got it. thanx allot man i really appreciate it :D have been trying t... (by mr kutch)
Problems with std::shared_ptr in perfect forwarding
 
I got trouble again with perfect forwarding and std::shared_ptr. Because it's hard to explain, I've created the following live example: http://ideone.com/x...
[8 replies] Last: Haven't we discussed this earlier? Sure we have, but back than, shar... (by hellhound)
Code not showing on console application
 
I'm Using Windows Visual Studios Ultimate 2013 and this is the win32 console application and well it won't show it on the console application when you start to...
[no replies]
Linker errors
 
I am having a lot of trouble with linker errors. I don't know what I am doing wrong. I am not even sure what files will help solve this. I have searched for the...
[11 replies] Last: Since you're using Visual Studio 2010, I assume you started a Win32 Ap... (by liuyang)
Writing float value to file
 
I'm trying to write the value of xcord to the file, but it's come out as jiberish like š™ for some reason. #include <iostream> #include <Windows.h> using ...
[2 replies] Last: If you write the value as binary you have to read it as binary as well... (by Peter87)
October 2014 Pages: 1... 2425262728... 38
  Archived months: [sep2014] [nov2014]

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