General C++ Programming - April 2011 (Page 24)

by dupur
Video tutorial Plzz help
 
Hello guys, I am new to this forum and also to the programming world. I am learning C++ for 15 days. I was referred a book C++ Primer Plus by Stephen Prata. I ...
[4 replies] Last: Yes there is. Dev-C++ comes bundled with an ancient compiler, and s... (by Disch)
ARRAYS
 
Write a program that declares two arrays Gpa and Reg that store the GPAs and Registration number of students of a class. Use a const initialized variable ‘si...
[6 replies] Last: That's not a solution! That code doesn't even do anything. (by ceruleus)
Client-Server Game Question
 
Ok, so this isn't exactly a C++ question, but I expect a certain group of people here that might have experience in certain areas. ;) Now I have worked with so...
[6 replies] Last: TCP isn't suitable for gaming, it can and will cause lags. TCP is ... (by quirkyusername)
if statment
 
an If statement that would have choices from 1-to what ever number included in it such as if ( (choice == 1 then the rest of the choices) can it be lik ...
[5 replies] Last: Thanks guys, but for this project i may just have to use a switch stat... (by mrharris10)
reduce fraction
 
I am working on a rational number class and am a little stumped on reducing the fractions. Can anyone give me an algorithm? Not necessarily the code. I...
[3 replies] Last: I guess I could convert the doubles to integers by multiplying them b... (by closed account 1yR4jE8b)
file io operation help
 
hello, i would like to know how to read characters from a file which have more than one line for example this file "one.txt" "one.txt" abcdefg 123...
[10 replies] Last: in this code here int main() { .. string filename,datain; ... (by tejashs)
by nogy
plz help...void question?
 
how to swap 2 numbers using void call by reference/call by value? how to do it using each one seperately??
[3 replies] Last: Err... http://www.cplusplus.com/reference/algorithm/swap/ -Albatross (by Albatross)
using stringstream
 
String S = "I am a good boy" i want to print: I am a good boy My code: #include <iostream> #include <string> #include <sstream> using namespace ...
[2 replies] Last: okay. got it. Thanks :) (by tarun91)
by Gldnbr
Running program from text file
 
I have a text file that contains: a=10 - 2; print a: I need to use a C++ program that reads the file, solves it, and prints the results. I've been thi...
[11 replies] Last: What is the output (and input) of that code? Anyway, a good thing w... (by hamsterman)
by l2c
hi, i hav a qs
 
hi , i and my frnd have been trying to implement apriori through set container class.. can some one plz tell me what is wrong with this code?? #include<...
[1 reply] : can some one plz tell me what is wrong with this code?? What's the c... (by coder777)
by ToniAz
Copying to Clipboard
 
Hello Everyone! I've been wondering, is there a way to make your clipboard your output buffer? In other words, say I have a string somewhere in my program a...
[1 reply] : Playing with the clipboard is an OS specific game. If you're on windo... (by m4ster r0shi)
Loud thinking about compiler behaviour
 
Hi All, First of all I am new user so pardon me for any inappropriateness in the post. Let me make it clear that this general C++ compiler related post not ...
[2 replies] Last: It compiled because QBuffer is derrived from QIODevice and save has an... (by rupeshbhurke)
Default value for a string
 
Hello guys, I need to have a default value for a string in a function parameter, but the function call keeps complaining "no matching function for call..." w...
[9 replies] Last: I see! thank you so much :) (by TheDestroyer)
by Ingrid
Hi, I'm New and I have a Question redaring Memory Maps
 
Hi everyone, Here is the code I wrote myself. How would I make a map of memory? I need to draw a map of memory at the point just before the closing brace for...
[1 reply] : Your function parameters are somewhat unconventional. If my view, the... (by kbw)
by jackie
Binary Search
 
I have a Binary Search function Working.. But i don't know how to set a function which will see first if the Array was either Merge Sort or Select Sort, if it ...
[7 replies] Last: I have menus in the program so each function is in a different menu (by jackie)
Running loops independently of each other
 
Hello I have two parts of a program. The first part allows characters to flash at the four corners of a 10 by 10 grid while the other has a cross stepping...
[2 replies] Last: In addition to Tresky's comment, I guess you could have shortened your... (by rwan)
by rwan
Sorting class member (functor?)
 
Hi all, I'm trying to sort a vector using another vector as the sort key. I think I know what I need to do, but I was wondering if someone could tell me if I...
[5 replies] Last: Thank you, firedraco! I actually don't understand functors well and h... (by rwan)
by Tresky
Scrolling Map
 
I am making a mock-up of an RPG Crawler and I need a way to make the map follow the character around on the screen so the character doesn't run off of the map. ...
[11 replies] Last: Hmmm... Haha that is probably what I should do XD Let's recap: Looks... (by Tresky)
Inter referencing objects
 
Hi. I am working on making a game with the SFML library. I was wondering how I could use an instance of a class from a different file. My code looks something l...
[1 reply] : You are looking for the keyword 'extern' I believe. The extern keywor... (by Tresky)
by Gldnbr
Storing values in variables in text file
 
I have to create a program that reads another "non-C++" program from a text file and execute it. Right now, I think my partner has developed a program that rea...
[5 replies] Last: For the math stuff, you could consider using a infix-postfix conversio... (by closed account Lv0f92yv)
April 2011 Pages: 1... 2223242526... 37
  Archived months: [mar2011] [may2011]

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