General C++ Programming - November 2011 (Page 32)

by Tatipu
Reading a large amount of input using structs/classes
 
. I'm stupid.
[no replies]
why a string array cannot be rewroten
 
Hello, Have you guys any idea why the following code leads to a segmentation fault (access violation)? #include <stdio.h> char * Portho = {"SIGE","E",...
[2 replies] Last: Quoting from the C++ Standard 2003 (I don't have a copy of the 2011 is... (by Moschops)
Creating Multiple Class Objects
 
I'm working on a project where the user will input various amounts of data. There will only be one user, but the user can put in various amounts of data about o...
[8 replies] Last: The book I've been reading (Beginning C++ Through Game Programming) f... (by PrinceJamal)
need of Copy constructor
 
Hi, Can some one explain me why is copy constructor use ( or why is copy constructor needed) ?
[2 replies] Last: Thanks , hamsterman , its clear now . thanks again (by bluecoder)
by gizzmo
inheritance
 
Hi all, I would like to do something as follows, though I don't know if it is even possible. Here is a simple code #include <iostream> template<typename T>...
[3 replies] Last: make 'm' virtual: template<typename T> class A { public: typedef ... (by Disch)
delete a file using fstream
 
Guyz i am working on a project in which i need to delete a whole file during the program. can anybody tell me please how can we do it.
[3 replies] Last: thanx a lot guyzzzzzz. (by hasanshehryarjaffri)
ant colony optimization
 
Implementation of minimum spanning tree using ant colony optimization in c or c++?????????????????????? Also tell me something ant colony optimization????
[8 replies] Last: thanks Albatross............ (by ankushhhh)
by RuiJ
Making a get() Function for a struct pointer
 
Lista.h: #ifndef _H_Lista #define _H_Lista template <class T> class Lista { private: struct Jogador { Jogad...
[no replies]
Mac or PC for c++ coding
 
Hello, I am concidering buying a new laptop and I am wondering whether I should buy a mac or a pc for coding in c++. Thanks for the help!
[10 replies] Last: Gaminic , iOS is used on iPhones, iPads, iPods. I think you probabl... (by closed account 1vRz3TCk)
help with keeping track of user input
 
Hey all I have a program that I have been working on and am having some trouble with keeping count of all the users grades. I know that now I am only counting t...
[1 reply] : Do you just want to add up the grade values entered in each function? ... (by closed account D80DSL3A)
by razia
linked list data structures
 
It is required to make a list of students registered in Data Structures course. To achieve this functionality, develop a C++ program and use linked list to stor...
[3 replies] Last: I thought that may be what you are seeking. The ethos followed by most... (by closed account D80DSL3A)
Changing 3 letters to 1 in between spaces (1,2)
 
I am trying to write code that changes three letters in a string to one letter. I am creating spaces in that string to find that three letter code and manipulat...
[20 replies] Last: Thank you very much for your help anyways. I am much appreciative. (by brian96853)
fscanf Seg fault
 
#include<iostream> #include<cstring> #include<cstdio> using namespace std; struct studentinfo { int roll; char name ; int batch; float marks; }; void pri...
[3 replies] Last: Also, why do we need to put &n? It is already an array right? Yes, th... (by coder777)
by Firzin
Some guidance on this program.
 
So I have question regarding a program I need to write. I need to read a text file which consists of a location and the coordinates of it's longitude and latit...
[no replies]
C++ issue. Need help.
 
I have been trying to make this program run. Its almost impossible for me to find out what the syntax error is. Please help. #include <fstream> #include <con...
[2 replies] Last: [quote=jason yang]hi Guy, you need to use the namespace std, e.g. std:... (by hbjgd)
Help with a C++ program
 
I am stuck on my program. If anyone can help me it would be extremely appreciated. I have been trying to go this program for days and have had little to no succ...
[5 replies] Last: :D, It's always nice to be appreciated (by Pravesh Koirala)
Looping with an Indata file
 
I have a homework question. I am not sure how to write the program for. Write a looping code segment that takes as input up to 20 integer scores from file ...
[5 replies] Last: My Bad. couldn't help it. glad the person got a good grade though =D h... (by hbjgd)
Linked list problem
 
This is my first linked list and it is a grocery list now several of the parts are working fine but i would like some tips on my insert method cause i am not su...
[2 replies] Last: The source code is too big to share here but it works fine now if you ... (by LiverEatnJohnson)
Simulating a chord algorithm
 
Hi all, have been bugging my mind on this, anyone knows which way to best implement node size? I need a dynamic array of sort to contain these info So which co...
[2 replies] Last: thank you! (by Cosmosgaia)
Need some help with a homework question
 
NOTE: Pass by value only. Assume that your program has a main() function, an enterAge() function, and a birthday() function. The main() method will call...
[3 replies] Last: No. The prototype would be: int enterAge(); // Prototype simply giv... (by Galik)
November 2011 Pages: 1... 3031323334... 47
  Archived months: [oct2011] [dec2011]

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