Beginners - April 2009 (Page 12)

How to include a linux command in a C programme?
 
I tried to write a program which includes the execl function but I failed. how can I do that? for example, what should I do if I want to include this command ...
[7 replies] Last: It's not so hard just put file name to char args ; Good luck :-) (by Packman)
Array Based List
 
Okay.. a little confused since we did this a couple of months ago... so my instructor gave us an example of an array based list basically giving us random inte...
[1 reply] : a personType class is just like a integer you used in part two, so yo... (by yang)
by masiht
keyword this
 
Hello , I have been studying OOP these days,I read the explanationfor keyword this but didn't get it.Can anyone please tell me how to use it and give me a simp...
[1 reply] : this is the pointer to the class object that will be called examp... (by Bazzy)
by jayt
how to stop this program
 
can anyone tell me please, how to stop this program. It should finish for q and give the result for c. #include<iostream> using namespace std; int main() ...
[5 replies] Last: I think your problem is when you type in 'q', the program outputs "Hel... (by arun1390)
Sum of digits in a string?
 
I have a question in my C++ class. Here it is: Write a program that asks the user to enter a series of single-digit numbers with nothing separating them. Re...
[7 replies] Last: It worked! #include <iostream> using namespace std; int main() ... (by kenneth196)
HEAP DETECTION ERROR--having trouble debugging
 
I am trying to write a program that will take integers and find the mean using a dynamic array that expands as more integers are entered. I think I have everyth...
[2 replies] Last: That fixed it! Thanks so much! Now I understand why there was a memory... (by grilledtuna)
by jayt
A question about If else
 
Can someone tell me why does this program run even when I press q.this program should not show anything if we press q. #include<iostream> using namespace s...
[3 replies] Last: Thanks eker676 !! (by jayt)
string -> char*
 
Can someone give me actual CODE to convert a string into a char*?
[2 replies] Last: Thanks! I was using c_str, just not correctly. (by PickleMan)
Out-Put
 
The out-put for this program will be: 'LKJIH'? char chs ; chs = ‘H’; for ( int i=3; i>=0; i--) chs = chs[i+1] + 1; for (int i=0; i<5; i++) ...
[5 replies] Last: Compile and check. Nobody is going to compile your code for you bec... (by eker676)
please explain
 
multiple perspectives welcome.. i understand this code except for the application of the less and isLessThan what exactly is going on here? #include <iost...
[10 replies] Last: When you want to give a new name to some type of thing, for example: ... (by Duthomhas)
Switch Program
 
If I write a partial code to read in an integer from the keyboard (the integer should be 1, 2, 3, or 4) and display to the monitor Freshman, Sophomore, Junior, ...
[6 replies] Last: Thank You so much I will fix "Unknown"!!! (by Gonzo 3 5 7)
stl containers?
 
...Yea...I've been programming in c++ proficiently for about 2 years but I'm far from fluent. This is going to sound like the newbiest question to come fro...
[7 replies] Last: how and when do I use stl containers? Are you asking when should ... (by PanGalactic)
by barr
adding a library
 
Hello. I've been trying to add the SDL library but I cannot get Visual C++ 2008 Express edition to find it. I've tried to carefully follow directions from h...
[4 replies] Last: it's #include "SDL.h" not #include <SDL> ... (by Disch)
Basics of a packet editor
 
Ive been programming on and off for like 10 years now (starting at 9 with qb, on to VB6, delphi, python, php and various scripting languages), for whatever reas...
[no replies]
by Joe101
OOP Newbie
 
Hello, I'm a complete newb to C++ and am trying to adapt/adjust my Java thinking to this new language. I'm a bit confused by the differences between the foll...
[3 replies] Last: thank you! (by Joe101)
by jim77
Recompile DLL
 
Hello all, I'm a c# programmer and I have poor knowledge in c++. I need to recompile DLL of PCRE – a regular expression C library, that I'm working with. ...
[no replies]
write to the file and read from file??
 
Hi im trying to write records to the file and with other option read from that file. i can write to the file but i want to keep the old entry this codes k...
[4 replies] Last: hi a made cupple of changes on my codes, i m still having truble with... (by pczafer)
Simple Graphics
 
I am just playing with some simple graphics on Visual Studio 2008. I am trying to make boundries for a simple game board that I have created. Here is my cod...
[1 reply] : To fill the rectangles create an HBRUSH I forget the tags to make ... (by Bazzy)
Use of throw()
 
I just recently learnt that a member function like this: class C { void memfunc() throw(); } tells the compiler that this function would not throw an...
[1 reply] : There's not much difference on adding throw() to a function declarat... (by Bazzy)
OOP
 
I was just wondering before I actualy learnt C++ OOP, if there was anything that I could make after I learned OOP that I couldn't before? Or will OOP just make ...
[7 replies] Last: Object-oriented programming is geared towards making software developm... (by arun1390)
April 2009 Pages: 1... 1011121314... 28
  Archived months: [mar2009] [may2009]

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