Beginners - May 2011 (Page 18)

Problem with setjmp(probably). please help
 
I have a problem with my project. It should run some processes simultaneously, using interrupts, but i get throw out of borland c after the first part of every...
[no replies]
by tbuell
where to start
 
i am just entering the world of programming. i looked at the hello world program to make it, and my first thought was word, notepad, or wordpad. i put my progra...
[3 replies] Last: You can create source files in a text editor, but you must then get a ... (by anonymous23323124)
Question about quicksort (1,2)
 
Hello, So my next algorithm is QuickSort which I'm trying to implement. Here is the code: #include <iostream> #include <time.h> using namespace std; void ...
[23 replies] Last: You can get a value at random between left and right (inclusive) with ... (by closed account D80DSL3A)
curcor movement
 
can any one guide m in a program in which we take two dimensional array .pass value of only 1 and 0 to it and on output screen cursor move only on 0 and not on ...
[5 replies] Last: actually the code which i made ,when cursor move it delete integer 1 a... (by hira aftab)
Difference between "Adaptor" and "Sub-Class"
 
I'm currently reading about adaptors (example. stack, queue, deque). My question: A deque, for example, is an adaption of a double-linked list. How does this d...
[2 replies] Last: True. I forget that object-oriented code is not just about functionali... (by NewProgrammer)
two dimensional array error
 
this code is working but im having troubles in some part the program will ask for scores in double type and will be stored in an array of double type, that wor...
[2 replies] Last: coder777 thanks i got it! i wasnt able to notice it, thanks again!!!!! (by asymptotes14)
Wanting to write a ATM program with classes and either linked lists or arrays
 
Basically I have used codeblocks to generate the functions/classes in my code i know what i want them to do but i cannot figure out how to manipulate the data i...
[4 replies] Last: I am still trying though i am completly stuck on the basics here #... (by jaimesharp)
Debug assertion failed: _BLOCK_TYPE_IS_VALID(phead->nBlockUse)
 
Hey I currently get following error when I try to run the code: Debug assertion failed: _BLOCK_TYPE_IS_VALID(phead->nBlockUse) int main () { ...
[7 replies] Last: No, you don't need 2 arrays. Just 1 and it's all done in place (like a... (by coder777)
void and int question
 
While learning C++ i have seen a lot of example codes. But there is something i do not understand. Sometimes int is used to declare a function but other times v...
[4 replies] Last: void printText(string str) { cout << str << endl; } string text... (by Breadman)
Homework help - issues with the code
 
Hiya. I am finishing up my intro to C++ course at college and thus far, I havent had much trouble. However, I cant seem to grasp functions well enough. Th...
[15 replies] Last: @packetpirate Nobody has mentioned yet that he is putting semicolons ... (by dangrr888)
Program help
 
deleted
[1 reply] : EDIT: deleted (by coder777)
Help with logical question
 
Hello there. I need to build a source code that calculates the total distance from the given distances of a city to another, using Multidimensional arrays. The ...
[1 reply] : What's the user supposed to enter? The names of the cities? Then you n... (by coder777)
Menú para métodos de ordenamiento de números
 
He desarrollado este algoritmo en C++. Mi problema es el que deseo retornar al menú principal y no se como ya que al elegir una opción, al termino del ordenam...
[1 reply] : You just need a loop that repeats forever (or at least until you exit ... (by Athar)
The rand function
 
Hello, everyone. This is a sample code of my function, which allocate memory for random char array. #include <stdlib.h> #include <time.h> unsigned ch...
[2 replies] Last: Thanks, Athar. Already, clear up. (by SimpleIce)
Function Pointers
 
Hi, I'm trying to make a process function for my doubly linked list. I have a fully implemented doubly linked list designed as well as the nodes. I wanted to p...
[5 replies] Last: cool.. (by writetonsharma)
First time with user defined functions...
 
This is homework, so just looking for some guidance. Program for calculating right-circular cone calculations (global variables are prohibited). I have spent ar...
[1 reply] : Refer here: http://www.cplusplus.com/doc/tutorial/functions/ and here:... (by matsom)
Program requiring enter key be pressed before running
 
Whenever I run my program, it starts at a blank screen and I have to press the enter key before it will proceed. I have narrowed it down to the cin.ignore(100,...
[2 replies] Last: Try moving that cin.ignore(100, '\n'); command to follow line 33 in ... (by closed account D80DSL3A)
by Sabre
C++ text based menu
 
Gday all Can someone tell me if there is a better way to make this work? It is on Dev-C++, for windows only. It is working however I am sure there is a better...
[1 reply] : Is there a better way to do this? (by Sabre)
how to pass down values?
 
#include<iostream> using namespace std; short unsigned int choice = 0; short unsigned int sss = 0; void breakfast(); void lunch(); void snack(); void dinner(...
[4 replies] Last: #include<iostream> using namespace std; short unsigned int choice = ... (by m4ster r0shi)
by dspain
Comparing Strings
 
i wrote a game and here recently i noticed a flaw in targetting monsters. if the monster is a "Black Dragon" you can target any characters up to the space ...
[1 reply] : first off use code tags please because it makes it much easier to rea... (by ascii)
May 2011 Pages: 1... 1617181920... 48
  Archived months: [apr2011] [jun2011]

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