Beginners - October 2008 (Page 5)

by jrock
bubble sort function... not working
 
trying to get the output of the bubble sort as a function in ascending order #include "stdafx.h" #include <iostream> using namespace std; void arrBubbleS...
[2 replies] Last: swap(var, var2) is a built-in var used to swap to variables. I think ... (by Somelauw)
memcpy problem
 
Hello, The structure of my classes is : String.h class String { public: String(char*); ~String(); private: ...
[3 replies] Last: String::String(char* data) { int datalength=sizeof(data); int... (by anders43)
Simple problem with reading a variable
 
I need some simple help. I have created this program code that I will show. Here is the problem. The first time through, in the middle of the program it asks fo...
[2 replies] Last: Hi Don't use scanf() for user input, use instead fgets() and conver... (by anders43)
identifier not found errors
 
#include <iostream> #include <vector> #include "Time.h" #include "callParticipant.h" #include "supportPerson.h" #include "expert.h" #include "standardSup...
[17 replies] Last: Thank you for your help Zaita (by growe79)
If Statement
 
#include <iostream> int main() { using std::cout; using std::cin; int age cout << "Enter Your Age: "; cin >> age; i...
[6 replies] Last: Also, I think your conditional statements are backwards. You should... (by CheesyBeefy)
by kp83
need urgent assistance with c++ Secure shell client project
 
...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
trying to create this
 
I am trying to create some that looks like a cannon at is on a 30 degree angle? Thoughts? please in mind I only really know how to creat simple shapes rig...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by Hazer
Get function name
 
Is there any way to get void function name or check it with other function? Thanks.
[2 replies] Last: Why do you want to do this firstly? And Boost has a library which s... (by Zaita)
im trying to get a handle on structs and im having a problem
 
* this is the actual code the other one was something else sorry this is what i need help on #include <iostream> #include <iomanip> #include<fstream> ...
[11 replies] Last: http://www.cplusplus.com/doc/tutorial/functions.html http://www.cplus... (by Zaita)
cout question
 
I have a loop that caluates the new x and y coordinates of an object. I need/want to show these while the anmation is running. I know I need to do a cout <<...
[3 replies] Last: U also may try cout.width(x); , http://www.cplusplus.com/refer... (by Smok006)
What is the difference among NULL, '\0' and ""?
 
I am confused that what is the difference among NULL, '\0' and ""? I wrote a short program 1 to test int and char types: #include <iostream> #include <...
[5 replies] Last: The compiler differentiates between NULL and 0 on occasion, but they a... (by Timaster)
by Nay
debugger does not work
 
Hi, I am starting to use Dev C++, but the debugger does not go into interactive debugging mode. It compiles the whole program. How can I step into and trace? an...
[1 reply] : Been using that too, Debug:Go to Help->GNU Debugger Help. You'll need... (by vorticidal)
void main()
 
What is void main(), and why wont Dev-C++ allow it? main must return an int value << says the error message
[4 replies] Last: The return-value normally says or the program is executed correctly. 0... (by Scipio)
Custom Operator?
 
Is it possible to create your own operators? (eg. +, -, *, /, etc. ) Thanks in advance, CheesyBeefy
[2 replies] Last: Operator overloading is also valid for enum s (by Bazzy)
Looping Practice
 
I have a program the I have compiled in Dev C++ and VC++ sucessfully. I want to add some more parameters to it. I'm a beginner with C++. What I need to do is ca...
[10 replies] Last: cout << "how many grades do you wanna enter?"; string sGrades = ""... (by Zaita)
New to programming assistance is appreciate
 
I'm not very good with programming at all and i have an assignment due tomorrow. I am to make a program that will calculate a students grade, given test and qui...
[1 reply] : I think you mean: while (testScore != 'X'); and while (quizSco... (by firedraco)
by bmancl
Arrays max and min wrong numbers
 
Can someone help me with this problem. I cannot figure out how to get the max and min in this array.When I execute the program it gives me incorrect numbers for...
[3 replies] Last: No worries :) (by Zaita)
do while loop for simple insterest program, aligning the output etc
 
This is the lab ive been assigned: You want to buy a car but no one other than your parents will lend you any money. When you approach your father he agrees ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
Compiler Error with Char
 
I am working on a project that takes in a Name and a Year group to run functions on, however I keep on getting a compiler crash in one statement of my code. It ...
[12 replies] Last: Ah right, using String methods over Char... I'll have to give it a tes... (by SwanSong)
by pino
get_size()
 
I'm new to C++, and I'm studying the dinamically allocating arrays. I've found the following example in the C++ primer: size_t n = get_size(); int *p = new...
[2 replies] Last: OK, now it's clear. Thank you for help. (by pino)
October 2008 Pages: 1... 34567... 20
  Archived months: [sep2008] [nov2008]

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