General C++ Programming - January 2013 (Page 13)

Please give some comments
 
hi programmers below is my code please check it and tell me is it perfect or not by perfect i mean can make it more good and readable and of course efficient ...
[1 reply] : You don't have return 0; at the end of main, otherwise I don't see any... (by SamuelAdams)
(X,Y,Z) coordinate movement
 
Hello I have created a sphere, inside the sphere (cell) is another smaller sphere (nuclei) located at one end and at the other end of the sphere is a structu...
[3 replies] Last: 3D (as well as 2D) movement is usually represented and calculated usin... (by Ogoyant)
by Yevgen
Asking user if he/she wants to continue
 
Hi everyone, I need to ask user if he/she wants to continue, and if user types "Y" then program continues, if user types "N" then program stops. How can I do it...
[2 replies] Last: #include <stdio.h> #include <string.h> #include <stdlib.h> int main(i... (by drew887)
Snake game logic !!
 
I am trying to make a snake game, i read some of the threads related to it but couldntnunderstand some stuff thought my doubts are really basic please help me ...
[no replies]
by MH4
A* Pathfinding
 
This is in my header file #pragma once #include <vector> #include <iostream> #include "Enemy.h" #include "Vector2D.h" #define TILE_SIZE 20 #define M...
[1 reply] : The first node to consider is the one you're standing on. When that do... (by hamsterman)
4th day in class, no idea what to do... How to stop a loop?
 
It is my fourth day in a high school robotics class, and we do not have a textbook because the internet.I am going to pick one up soon! Until then, my homewor...
[5 replies] Last: Should anyone else need it, this was my solution: int x = 0; int ... (by claireballoon)
invalid null pointer
 
I am new to C++ and am getting an invalid null pointer error message after a successful build. Can I get a hit where this is going wrong. This program is suppo...
[3 replies] Last: Oh I see. Sorry, we are given handouts in class that tell us what we n... (by Phule99)
FLTK & Stroustrup library problem
 
I am not sure if I should do this, but the max length of the post is 8192, but my post is 12000 characters long. I have a problem with the FLTK library and the ...
[5 replies] Last: @cire Thank you so much! It all works now! I added all of the .cpp fi... (by benbalach)
by Tazzy
Programming C++ (1,2)
 
Hello people I have problems with this task: I have almost solved the task : Here the task: Demonstration in a programming course, a program will be created ...
[33 replies] Last: Oh hell how can I fix this? thinking? cout << "bye">> endl; // as y... (by coder777)
comments creating a problem
 
I know it sounds weird but when i uncomment statements in the following ,it works perfectly fine for infix to postfix conversion.although comments are simple co...
[2 replies] Last: Thanx.. The program is doing "infix to postfix" conversion. I am reall... (by chauhanshiksha1)
by OT2O
Streaming Audio
 
Hey everyone I am new the these forums. I am a 5th year university student double majoring in Information Tech. & Administrative Management, and Computer Scienc...
[1 reply] : Use IceCast. It is open source and free of charge (of course you need ... (by modoran)
how to implement the Dijkstra algorithm?
 
this is my homework, it really strikes me. I uploaded the pdf and the txt in the https://hotfile.com/dl/190161205/25500c0/Dijkstra.tar.gz.html hope you ca...
[no replies]
c++ program difficulties
 
Kindly try to find the the errors in the following programs: Firstly the difficulties then the progrograms are given respectively:- Difficulties:: 1. A...
[1 reply] : Put in code tags please, makes it easier to see and read (by Smac89)
C++ Prog Difficulties urgent issue
 
Kindly tell the errors in the following program.I will be very grateful Exams are nearing. Here diificulties foloowed by pragrams are given. I will be grat...
[1 reply] : program 9: for(int i=0;i<M;i++) cin>>A ; MN=M+N; cout<<"Enter 2nd ar ... (by Smac89)
Memory Leak Help
 
sss f f
[3 replies] Last: @matheuskiser you're welcome and I'm glad that the advice worked fo... (by SIK)
by appy96
BGI error.Graphics executes well but c++ program hangs
 
I only want graphics for a part of the program.that is why i am initializing graphics and closing it once the job is over.The graphics part executes well, but w...
[no replies]
Need help with structure, accuracy, formatting etc. of this module.
 
Hello, My name is Jeremy and I am an experienced C++ programmer but am completely new to C++11. Below is a module I am working on for a project of mine which...
[no replies]
by Smac89
Memorising periodic table
 
Going to start a project in which I try to make a 'memorising periodic table' game. Ideas so far: -If it is a first time user, get their information, i.e. Name...
[6 replies] Last: www.python.org :) Python is very easy to learn (by Zaita)
Static variable to time struct
 
Hey all, In a function, I have a static variable that I want to assign the time in seconds when a certain condition is met and keep that value until a differen...
[1 reply] : You want a static variable? Then it's value initialised once during th... (by Zaita)
by purlek
Could anyone create this program for me?
 
Im looking for someone to create the following windows console program for me. The program would kind of be like a virtual graph and by entering two certain ...
[7 replies] Last: No. http://www.cplusplus.com/articles/jLzyhbRD/ (by Zaita)
January 2013 Pages: 1... 1112131415... 36
  Archived months: [dec2012] [feb2013]

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