General C++ Programming - May 2011 (Page 22)

bug with ostream::operator<<
 
Hi, I recently discovered a bug in an ostream::operator<< and don't know what my options are. In particular, the operator works fine when I call my library fro...
[2 replies] Last: extern long method; extern vector<string>newArgs; void printArgs(ostr... (by smcguffee)
Best Program
 
What is your best program? Could you provide: 1. Name of program string name ; cout<<"Enter the name." <<endl ; cin>> name ; 2. Code for program ...
[1 reply] : ... void Spammer::GoToSleepAndRest(bool forceIfNotResponding) { ... ... (by savavampir)
by Janlan
Project help
 
I have no idea how to make words from the end to the beginning. So far I've done this... #include <iostream> #include <string> #include <fstream> #incl...
[4 replies] Last: Its not best solution but its better then nothing: #include <iostrea... (by savavampir)
Reading/Writing binary files.
 
I want to save some data in a binary file. What I'm saving is the state of many instances of a certain class. Each class will be saving a string and 3 integer v...
[2 replies] Last: Google around CRC32 for a very simple checksum algorithm. (by Duthomhas)
by suetam
funcion quadratic funcion cuadratica
 
Hi everyone this is the code for a quadratic function but I want this function operates imaginary numbers. Hola a todos este es el codigo para obtener una fu...
[no replies]
SFML Compile Error: C1083: Cannot open include file: 'climits'
 
Hello, I've just downloaded and installed SFML on Visual Studio 2010 Express, following the tutorials on the website and ones I found on YouTube. When I try to...
[no replies]
FLTK IM Chat Window remote (pop-up) instantiation, GUI speed issues, and graceful socket closure
 
IDE: Microsoft c++ 2008 express Platform: Windows 7 Libraries: FLTK and Winsock Hello, all! I'm having some problems working out the bugs on my Instant ...
[2 replies] Last: Found out why from our resident FLTK expert. You can only call show()... (by Austin Covello)
help with my hangman project
 
ok ive gotten this much done of hang man but im getting errors on it trying to run it could someone tell me what im doing wrong? my code is below for you to c...
[1 reply] : //Shows the Picture for when you win the game void Won_The_Game_Displa... (by ohnmeiss88)
Designing a mastermind game
 
I'm designing a mastermind game,i'm having trouble desinging the game board. I'd like the game board to be 4 columns and 8 rows. I have the game working so far ...
[1 reply] : some_type board ; Though you might find a 1d array more comfortable... (by hamsterman)
Deallocation of memory
 
Hey guys, i have 2 questions to ask. Firstly ,i would like to comfirm, does using clear()function on vector and multimap , helps to destroy the elements in the ...
[7 replies] Last: As far as I know there is no way to reduce the memory allocated to a s... (by Galik)
Remove Specific Characters from a char buffer
 
Hi, I want to remove specific characters from a char buffer. For example from "2011/05/10" I want "20110510". I want to do it in the most effective way. Plea...
[4 replies] Last: It would be difficult to write your own code which will work better t... (by writetonsharma)
Help with vectors
 
This program is to calculate the neighbours of each matrix element. for example : if matrix a = [1 2 3 4] then neighbour of 1 i...
[1 reply] : When you will update k to 0? It will keep on increasing. (by writetonsharma)
How to Retrieve primary key field in ADODB?
 
I am using ADO connection with c++ and i want to write delete function that will automatically retrives the primary key column and ask for user for that parti...
[no replies]
by Adidas
STL list <>
 
1.how I can know that it is the end of the list ? 2.how I can find a spesific object in the STL list? can someone give me a code? 4 example I have the clas...
[2 replies] Last: 2.how I can find a spesific object in the STL list? What resembles t... (by savavampir)
Accessing Base Class Function
 
Hi all, How do I access the base class function when I'm calling the derived class. The part I'm struggling is in bold. Thanks class MusicalComposit...
[3 replies] Last: That sentence doesn't make sense. Is it suppose to be: "Implement the... (by savavampir)
Signed saturated addition with only bitwise operations
 
I'm doing some homework for a computer systems class and all is well except this one problem that I can't seem to find a solution to due to the limitations. ...
[1 reply] : I think you cannot use "!" as this is logical operator, not bitwise. ... (by Abramus)
Need help with errors
 
I get many errors that I didn't use to get before. Here is what started my program w/ ----------------------------------- #include <iostream> #include <st...
[1 reply] : cout is defined in std namespace! Either introduce whole: #include <... (by savavampir)
Parallel Arrays? Any help is appreciated
 
Create a program that will calculate the grade for a class full of students. There will be an input file called “Students.txt” that contains no more than 50...
[7 replies] Last: #include <iostream> #include <fstream> #include <string> using names... (by FJB1022)
Prompt the user for a six digit integer then output each digit of the number.
 
Well so far this is the code I have : #include <iostream> using namespace std; int inputnum,changenum; int nr = 0; int math = 1; int parameter; ...
[2 replies] Last: I think...if you mod the number by 10 and then output this remainder y... (by buffbill)
by Shrk
Homework Lab Help
 
Hello I am in a Physics C++ coding class. It has just started and i am still a noob at coding. In the problem we must make a program to output the answer. I...
[5 replies] Last: how would i get the squareroot of G*M like this? sqrt(G*M) whats a de... (by Shrk)
May 2011 Pages: 1... 2021222324... 32
  Archived months: [apr2011] [jun2011]

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