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 ...
Oct 11, 2014 at 7:55pm
[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...
Oct 11, 2014 at 7:52pm
[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...
Oct 11, 2014 at 6:58pm
[9 replies] Last: #include <iostream> using namespace std; void multiplyByTwo(int m) ... (by closed account 1CfG1hU5)
continuing program until instructed by user
.....
Oct 11, 2014 at 6:40pm
[6 replies] Last: can try a switch and case for menu. how does the pID work? char in... (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...
Oct 11, 2014 at 6:05pm
[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...
Oct 11, 2014 at 5:24pm
[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 & ...
Oct 11, 2014 at 4:40pm
[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...
Oct 11, 2014 at 4:11pm
[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...
Oct 11, 2014 at 4:09pm
[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...
Oct 11, 2014 at 4:04pm
[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 , ...
Oct 11, 2014 at 3:09pm
[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{ ...
Oct 11, 2014 at 2:10pm
[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...
Oct 11, 2014 at 1:42pm
[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...
Oct 11, 2014 at 12:26pm
[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. ...
Oct 11, 2014 at 12:21pm
[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. --------------------------------------- ...
Oct 11, 2014 at 10:33am
[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...
Oct 11, 2014 at 10:10am
[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...
Oct 11, 2014 at 8:51am
[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...
Oct 11, 2014 at 8:33am
[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 ...
Oct 11, 2014 at 8:15am
[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.
Registered users can post in this forum.