Beginners - April 2010 (Page 6)

charcter input
 
Hi guys and girls; I am writing a program for my college work and I am asking the user to input a single character using cin to capture the info. Is there...
[8 replies] Last: But then your program requires ncurses (by Disch)
Recursive Binary search
 
Hi , I have an Assignment and I am not being able to do it by myself. 1) Write a program that obtains the execution time of Bubble sort, Selection sort, Ins...
[no replies]
by qafry
Stairs (1,2)
 
I have this program to do with the following program and I am not sure how to go about doing it. Write a program that prompts for number of stairs and then dis...
[24 replies] Last: Thanks guys for everything I go it finished. (by qafry)
by dumas9
char*** value
 
I need to use an API/function that requires a parameter of type char*** value. How do I declare this variable - some kind of character array. Thanks
[4 replies] Last: Thanks.... let me try that out. (by dumas9)
by chron3
Failed to pass struct to function
 
I was wondering how it works actually. Any point out for me will be helpful. Thanks in advance. #include <iostream.h> struct EmpRec { char e...
[5 replies] Last: attaboy : Thanks a lot, man. You've saved my day. Will look more into ... (by chron3)
by Upaka
Sigma - summation
 
Hi I am very very new to C++ and I wanna write few formulae which consist of "Sigma - summation" mathematical function. If someone knows how can I write, plea...
[2 replies] Last: Hi hi Dufresne Thanks alot. (by Upaka)
by kcbob
program skipping input
 
the program executes properly the first time but if the user any key to continue it skips the input and displays #1,#2, and #3 without asking the user to input...
[3 replies] Last: u define a word : some character that eather have nothing, or have a s... (by justAbeginner)
plot in C++ anjuta
 
Hello, Anybody has any idea on how to plot in C++? and specifically in ANJUTA compiler? I tried to include the gnuplot library but I didn't succed. Tha...
[1 reply] : Depends on what you want to do... You might try OpenGL or DirectX..... (by attaboy)
graphics problem
 
I currently use the Borland C++ version 4.5 I know it is kind of obsolete. Two questions: 1) When I include graphics.h, it gives the error BGI graphics not ...
[no replies]
including files that are not in the same folder
 
I want to use some functions I created in a class for another project. I knew one way to do it (not elegant at all) is to copy the file in the current folder ...
[1 reply] : #include "directory/of/your/file.h" (by Bazzy)
How to install/use Boost Graph Library
 
Hi I'm trying to use the Boost Graph library. I've downloaded and installed the library. Currently all the files for the boost library are included in th...
[no replies]
by APCS
Linked List Delete
 
Hello, I have a linked list that has delete and retrieve functions. The retrieve searches the linked list by index and returns the value contained in the no...
[no replies]
by cyfu
appending data from text files
 
Hi everyone, I'm working with two txt files. If they contain the same number of lines then my code will output and append the data to another text file succes...
[2 replies] Last: yea that captures all the lines in both files but in the output file I... (by cyfu)
by APCS
Exceptions
 
Hello, I need help with an assignment that asks for me to throw an exception if a value is out of bounds. I am a beginner at exceptions and do not understan...
[3 replies] Last: I got it to work by placing a try catch around my statment in main. I... (by APCS)
by mmm
error in strcpy function
 
help in that issue plz # include <stdio.h> # include "math.h" # include "stdlib.h" # include "string.h" int main () { char text ,chartext ,numte...
[2 replies] Last: Use strncat (): strncat(chartext,text,1); That is, to appe... (by Duthomhas)
by JoH
Lost primary function
 
I am getting an error in the int main section of the code beloww (I've written the error as a comment//). I am afraid that I haven't been able to figure out whe...
[2 replies] Last: I've got separate file for the functions. Perhaps I should place them ... (by JoH)
Error in casting
 
I was trying to cast the string to a double in the following program. Unfortunately, I get the following error ==============================================...
[4 replies] Last: Why are you storing double numbers in a string anyway? You do realize ... (by packetpirate)
by dumas9
passing a variable into a function
 
This is what I would like to do: //----Main Cpp file----- int main() { bool myBool = true; if (someCondition == NULL) { myBool = false; } //create...
[2 replies] Last: Thanks that works..... So simple - yet it had me perplexed for some... (by dumas9)
by JMHCRW
QUEUE program
 
I need help with my program. It will not recognize whether or not a customer has arrived. I have a feeling that the timer isn't working either. #include...
[4 replies] Last: Alright, i fixed it. It works now. thank you for the help. here is the... (by JMHCRW)
Returning a Pointer to an array
 
Hi, I'm trying to write a function which generates and returns an array. I know I can't actually return the array and instead need to return a pointer, but I...
[6 replies] Last: You need operator new two separate times, once for each array. Here a... (by kempofighter)
April 2010 Pages: 1... 45678... 35
  Archived months: [mar2010] [may2010]

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