General C++ Programming - April 2012 (Page 27)

C++ Project
 
Hi everyone, I have this project to do which I am unsure of how to approach. I need lots of helP. Thank You Background: The project is a simplified view of...
[8 replies] Last: 2D arrays are pretty harsh. If you play around with this code you mi... (by IceThatJaw)
C++ flexibility?
 
Hey guys out of personal interest I was wondering if you could me how flexible C++ is? I've heard it can technically do everything but other languages are more ...
[4 replies] Last: No, a compiler produces native executables. An interpreter does not. ... (by Duthomhas)
Getting graphics card connetion type in XP
 
So I need to be able to find out in code how the graphics card is connected, whether VGA, DVI etc. You can do this by querying the Windows Management Instrument...
[no replies]
Obtaining and parsing a string
 
Hi, I need assistance with a program. In my program, a user should indicate the number of lines of characters he will enter and then I would like to count eac...
[no replies]
by Ying
Why I cant read out time data correctly
 
I had a binary data file. The data was saved as sequence of 256 data of type "BYTE" and followed by extrabytes. The extrabytes data has structure as follows: ...
[2 replies] Last: Thanks for your reply. I found the solution, that is add "#define _US... (by Ying)
by ggally
passing arrays by values
 
I need to pass these arrays to a fcn extend() which should caluclate elements in the amount array as the product of the elements in price and quantity arrays. ...
[3 replies] Last: Hi , i cannot get this , vals and nums are doubles, whereas tot ... (by bluecoder)
Need builder/compiler
 
Hi, if youve read my profile you will know that Im an out of practice programmer. Im used to programming in a RAD environment like the old Borland C++ Builder. ...
[1 reply] : For compilers, get the Visual C++ 10 Express compiler for windows, g++... (by TheDestroyer)
Why my program harasses my CPU?
 
Hi, I've finished with roulette program and all works as expected but CPU just runs like crazy, as if I would lounch a nuclear missile LOL... there is nothi...
[2 replies] Last: Ok, I found it. I've installed visual studio 11 beta today and run a c... (by codekiddy)
const question
 
Hi , I came across a function that is as char* getdata( const char* const fedex ) ; I am not able to get why use these two const in the function . ...
[5 replies] Last: Thanks @Framework . what about const_cast does not it change the value... (by bluecoder)
going crazy with template function
 
Hi all, This is my situation: I've made a template class my_vector that works like normal vectors. I have a normal random access iterator and a random access th...
[13 replies] Last: thanks ..@JLBorges for the link .. now i got it .. the link have been... (by bluecoder)
The program isnt working perfectly.
 
// What I want to do is enter "T" no of lines. Then displace each character in //the line by two ASCII value #include<iostream.h> #include<stdio.h> #include<...
[no replies]
by arooj
Zip Code/City Sequential Access File Program Help
 
Im writing a program that stores zip codes with corresponding cities in a sequential access file. This I have no problem with. The program also has to display...
[no replies]
Array Programming Problem
 
I'm a bit (completely) lost on how to approach this. Any help on where to start or anything like that would be greatly appreciated. In this lab, you complet...
[no replies]
by ggally
copying an array to an array
 
Need to copy the miles array to distance array. And display the distance array. Im getting distance = 0. Any suggestiong to modify the code? #include <iostr...
[1 reply] : *m = *d; should be *d = *m; cout << "The distance is " << *m++ ... (by Null)
tricky one
 
Michael Scofield needs to break out of a prison, to save his brother from getting executed, on account of a crime he has not committed. To accomplish this, he c...
[no replies]
I need help. I have encounter problems in creating my assessments components.
 
Below are my code: #include <iostream> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; const int MAX = 100; stru...
[2 replies] Last: Nope. when cout << "how many assessment components? "; i'm prompted t... (by vincdec)
QT bold and underlined text?
 
i can manage to make the text in my text box italic, but for some reason i cand figure out how to make it bold or underlined (without using html codes that is) ...
[2 replies] Last: thanks (by even821)
by tambun
logic error
 
hey guys...i have problem with this coding here.. #include <iostream> using namespace std; int main() { int found=0,count=5; { ...
[2 replies] Last: ohh...now i get it...thanks!!.. (by tambun)
String reading problem
 
I have a file with lots of string like the following: 12345678,123 12312837,324 21323543,78 I have to read these into strings and I used list and the data...
[2 replies] Last: #include <cctype> bool isAllDigits(const std::string& s) { for (uns... (by cire)
NEED URGENT HELP! PLEASE HELP!
 
Create a program that contains one class that has all the planets and so you can add more or delete. The planets should have the surface area, and the density o...
[3 replies] Last: you can also separate them in tow class class SolarSystem { ... (by bluecoder)
April 2012 Pages: 1... 2526272829... 49
  Archived months: [mar2012] [may2012]

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