43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for xfruan

Hello, i'm a novice who have some ideas of the basic concepts and some advanced topics like templates and exception handling. I now want to improve my programming skills. I would very appreciate if anyone could recommend some good books to me. :)

Software Development c++
Member Avatar for xfruan
0
181
Member Avatar for Sphyenx

some one recomended i learned python too, wwhat it is??

Software Development python
Member Avatar for vegaseat
0
246
Member Avatar for kloony

Hi Guys, it's me again! I have been posing memory-related problems for the past few days because I don't seem to understand what is the problem with my code. I kind of figured it's due to memory issues....so here's my question. Suppose I have a (first in first out) queue …

Software Development c queue
Member Avatar for kloony
0
356
Member Avatar for tat2dlady

Does anyone know how to compare a old style character string with a character in qoutes? Example: I want to compare the first character in a record that is stored in an old style character string with a `*`. Here's what I have in my code: char FirstCharacter[1]; // Character …

Software Development c++
Member Avatar for tat2dlady
0
124
Member Avatar for dallin

I'm stuck, I have a base class String, derived class Pstring, and trying to develop another derived class Pstring2. Pstring2 needs a function called left. Main will call the function by Text.left(Text1,N) // Text2 is assigned the leftmost N characters from Text1. I'm having a hard time understanding how to …

Software Development c++ display
Member Avatar for dallin
0
93
Member Avatar for new comer

hi i have just got my self a Borland 4.5 from ebay and would like some help in using it. i am very new to programing and i would like to be able to put a shoping cart on my website but i know nothing about it all help very …

Software Development c c# c++
Member Avatar for vegaseat
0
154
Member Avatar for trevs234

in a book there is a code that i am trying out and my compiler keeps giving me diferent errors (compiler is Borland C++) and i dont know how to fix them. the code is [code] //----------------------------------------------------------------- // Skeleton Application // C++ Source - Skeleton.cpp //----------------------------------------------------------------- //----------------------------------------------------------------- // Include Files …

Software Development c++
Member Avatar for vegaseat
0
161
Member Avatar for oxyi

Hi, looking for an assmelby programmer for x86 today . Yes March 11. for a small project take only an hour or so. I am paying $30 or oOB paypal for it, please emaile me oxyigen@gmail.com Again, it is today only, and need it done by 6pm PST. This is …

Software Development assembly email
0
105
Member Avatar for Maple_Tiger

In this book I'm using, Sams Teach your self C++, it says to: Start compiler, choose file, choose Win32 Console Application, choose empty project, choose C++ source file, edit source code, choose build, check that you have know build errors and run the program. Whats the difference betweeen Build and …

Software Development c++
Member Avatar for Maple_Tiger
0
177
Member Avatar for NewVBguy

Hi there, I'm trying to print an ms word file using vb. Before it will go to printer, I want the document file to be viewable but not editable. Can anyone help me. Thanks, Note: I was able to view the doc file but it is editable. I am using …

Software Development printer visual-basic
Member Avatar for Comatose
0
161
Member Avatar for dani1982

i am suppossed to write a program using an array of strings to hold the words of the ICAO alphabet, and index the array by the positions of the letters of the alphabet. I started it off but cannot figure it out please help!! #include <iostream> const int n_row=26; const …

Software Development c++
Member Avatar for Tight_Coder_Ex
0
239
Member Avatar for kloony

I have a first-in-first-out queue implementation such that when it is first initialized, a malloc is called to set aside memory for items that will be placed on the queue. When I am done with the queue, how do I free up the memory? My code for the queue is …

Software Development c queue
Member Avatar for kloony
0
482
Member Avatar for Acidburn

[php] #include <iostream> #include <cmath> using namespace std; class point { public: point(int xcoord , int ycoord); //constructor point(); int getX(); int getY(); double getDistance( point otherPoint ); void setpnt(point p); private: int x, y; }; class rectangle { public: rectangle(point p1, point p2, point p3, point p4); void perimeter(); …

Software Development c++ oop
Member Avatar for Narue
1
182
Member Avatar for firion

hi administrator, I'm a beginner in c++.I need to draw a graph(x vs y type).I used graphics.h and ended up with a very primitive version of a graph.The graph appears like a scribbling in the top left corner of the screen.I don't know how to draw the x and y …

Software Development c++
Member Avatar for vegaseat
0
103
Member Avatar for Lapari

Hi there, I am working on an assignment that I have to create a menu. The user is suppose to select the menu and change form color. But I have no idea how to that. Help please. Anyone?

Software Development visual-basic
Member Avatar for Lapari
0
253
Member Avatar for evilsilver

ok here is my question, i use borland c++ builder 3 and in a book i found an example for a graphics.h program which is supposed to work but i have heard that this only works in dos mode not in windows (which i am running in) is there another …

Software Development c++
Member Avatar for 1o0oBhP
0
123
Member Avatar for billy-student

I am new at programming and need help: #include <iostream> #include <cmath> using namespace std; int main() { int a, b, c, area, tri_area; area = tri_area(a, b, c); if area (area>0); cout << "Area is "<<area<<"!"<<endl; cout << " Those values tri_angle " <<endl; } double tri_area (double a, …

Software Development c++
Member Avatar for Fasola
0
189
Member Avatar for JoBe

Hello ladies and gents, I'm starting on the next exercise, but I'm puzzled a bit and was wondering if any of you might help me with this. I have to enter four integer numbers, non negative and smaller then 16 into ONE variable int x, now, the thing I was …

Software Development c
Member Avatar for Fasola
0
443
Member Avatar for jonnie83

I am having a problem with inputs. I can get the input using the cin command but i want to use the input to open a file with the inputs name ie the user types in FRED. cin>>name i want to open a file called fred.txt ifstream in("name.txt"); the above …

Software Development c++
Member Avatar for vegaseat
0
109
Member Avatar for tenoran

The assignment is to read and keep records and perform statistical analysis for a class of students. This is what I have done so far,then the codes can show the information(Id,4quizes,exam) of each students on screen. But I need to show 3 more things (The Highest ,The Lowest,The Average of …

Software Development c++
Member Avatar for tenoran
0
136
Member Avatar for compshooter

I have a couple of questions about the main function. Do you need to put the ; after the last }? Do you need to put a return statement before the last }? If so, what number do you put in the (), i.e. return (0), return (1), etc. What …

Software Development c++
Member Avatar for vegaseat
0
153
Member Avatar for evilsilver

hey i am making a game and decided that i want to put a load/save option in it and was wondering if anyone here knew how to do this, (the program has to be able to close, open again and load the progress from before). I am running in windows …

Software Development c++
Member Avatar for vegaseat
0
187
Member Avatar for Cherrio

Can someone help me find the error that keeps this prg from running thanx [code] #include <iostream> #include <vector> using namespace std; int main() { vector<int>v(1,1); v.push_back(2);v.push_back(3);v.push_back(4); vector<int>::iterator i=v.begin(); vector<int>::iterator j=i+2;cout<<*j<<""; i+=3;cout<<*i<<""; j=i-1;cout<<*j<<""; j-=2; cout<<*j<<""; cout<<v[1]<<endl; //output 1 (j<i)?cout<<"j<i":cout<<"not(j<i)";cout<<endl; //output 2 (j>i)?cout<<"j>i":cout<<"not(j>i)";cout<<endl; //output 3 i=j; i<=J&&j<=i?cout<<"i and j equal":cout<<"i and …

Software Development c++
Member Avatar for Cherrio
0
114
Member Avatar for server_crash

I had all of this program finished except for the plotting like a week ago...Ever since then, I've been trying to figure out how to plot the stupid polynomials..I thought I had it, but the program seems to go crazy whenever it's suppose to repaint..It's like repainting components on top …

Software Development image java java-swing
Member Avatar for server_crash
0
128
Member Avatar for scar_zone82

hello there ....can someone help me solve my problem of my assignment....i try to code it....so I need some guidances ... This is the question... An operating systems uses shortest job first scheduling for it’s process management. Assume that there are 10 processes waiting in a queue which is implemented …

Software Development c linked-list operating-system queue
Member Avatar for vegaseat
0
195
Member Avatar for roeschh2

i am having a problem with a function i am writing that takes in a txt file and stores the data in 3 arrays. The data file is always rows containing three numbers such as 1 2 3 2 3 4 5 6 7 8 9 10 with each column …

Software Development c++ file-system
Member Avatar for roeschh2
0
82
Member Avatar for tommy_tucker198

I have decieded to learn c++ just wondering what compilers you would all suggest? thanks

Software Development c++
Member Avatar for alsoagirl
0
183
Member Avatar for tuskyballer

I'm about 3 weeks into my C++ class. I already made a simple program below that calculates grade averages and received an A. Now my teacher wants me to turn in three variations of it, replacing the goto with a while, do while, or for loop. I have experimented and …

Software Development c++
Member Avatar for Stack Overflow
0
716
Member Avatar for cap2361

ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to enter names until prompt to end. these are just two of …

Software Development c c# c++ display file-stream ios
Member Avatar for cap2361
0
149
Member Avatar for ghaney1

How do I flush the write buffer after a write without closing and reopening the file?

Software Development visual-basic
Member Avatar for ghaney1
0
1K
Member Avatar for DaveSS

:?: Hi i am in my first C++ class and have already written two simple C++ programs. Im working on another using functions. I have to write 3 functions to calculate the area, cost, and retail price for wooden boxes and a main function to have the user input information …

Software Development c++
Member Avatar for DaveSS
0
122
Member Avatar for s47221288

Hi, I'm a thai student ... now i have a premiership project but i can't pass this problem that is , How to random matching football team ? example I have 4 team in `vector<string>` name [0]=a [1]=b [2]=c [3]=d I want to matching them such as week 1 : …

Software Development c++
Member Avatar for s47221288
0
108
Member Avatar for migthyjohn

i hate C++. i have been working through the C++ for dummies book, and i have yet to make any sense out of it. the only thing that i have been able to grasp is the i/o parts. it is so hard. maybe i havent given it a chance to …

Software Development c++
Member Avatar for Siersan
0
117
Member Avatar for mrb260478

Can somebody help me in getting cursor position using C++ Programming language on a UNIX operating system. :cool:

Software Development c++ operating-system unix
Member Avatar for vegaseat
0
119
Member Avatar for roscioeak@direc

Can anyone direct me where to go for doing stacks in C++. I have to make a program using stacks but can you initialize a stack with given values? If so can you give an example?

Software Development c++
Member Avatar for vegaseat
0
104
Member Avatar for Dani

I am taking a Computer Graphics course where we are doing some c++ programming using the OpenGL API. I'm writing a C++ program in Visual Studio.NET, where I've installed GLUT (Open GL Utility Toolkit). OpenGL, itself, apparently comes with VS. The only include that I have in my one-file program …

Software Development api c++ opengl visual-studio
Member Avatar for Intel
0
1K
Member Avatar for ITman

can any one give me C program for ROUND ROBIN ALGORITHM . please needed urgently

Software Development algorithm c
Member Avatar for ITman
0
115
Member Avatar for ah01

#include <iostream> #include <stdio.h> #include <iomanip> using namespace std; struct person { char name[15]; int Idnum; int *testscores; float average; char grade; } *student, freshman; //////////// function prototype /////////// void allocate_memory(int number_students , int number_scores); void get_data(int number_students ,int number_scores); float validate_score(int score); void print_results(int number_students ,int number_scores); void release_memory(int …

Software Development c++ data-structure
Member Avatar for vegaseat
0
178
Member Avatar for tones1986

the code compiles but when i try running the .exe it closes. It looks liek for the 2 seconds its up it works, but then it closes itself. What am i doing wrong? heres the code: #include <iostream> using namespace std; int main() { // sets variables to be set …

Software Development c++
Member Avatar for bombe
0
602
Member Avatar for cymbalistic1

Hello, I'm new to this site and this is my first post. I got an assignment where I have to do a QuickSort on 100,000 numbers first and then combine QuickSort and BubbleSort so that the BubbleSort comes in for the last 1,000 numbers. The information is to be exported …

Software Development c first-post
Member Avatar for cymbalistic1
0
101
Member Avatar for chound

I get 2 strings. I remove all the characters present in both the 2 strings.I count the no. of characters left. How do i do this in C++?

Software Development c++
Member Avatar for vegaseat
0
177
Member Avatar for 40ounce68

anyone know where i can get the answers for the exercises...Im stuck on some of these...

Software Development c++
Member Avatar for vegaseat
0
106
Member Avatar for tones1986

I have this banking program that has a savings, checking account set up. The user has 4 options. Checking, Saving, Balance, and monthly maintenance. The checking option is all correct and never comes out weird...u can deposit everything and withdraw without any probs. If i do that -- then i …

Software Development c++ display ios
Member Avatar for tones1986
0
149
Member Avatar for Alfarata

I am writing a program in C not C++ how do I allow the user to input a name for the file, but not the extension. I will use the extension .csv always.

Software Development c++
Member Avatar for Narue
0
233
Member Avatar for dal4488

Hi, I'm totally new to C++ and so far am extremely confused. I was wondering if anyone could give me any help with one of my assignments. Basically I don't know where to even start. I think if maybe someone can help me get started maybe I can figure this …

Software Development c++
Member Avatar for vegaseat
0
607
Member Avatar for potential

hello guys. :confused: just a question about vectors: (sorry if it seems stupid, but i really don't know much about vectors) is it possible to return a vector or a pointer to vector from a function? if so, how? thanks in advance.

Software Development c
Member Avatar for potential
0
106
Member Avatar for Tomas Lopez

Ok, I've been trying to find and solve the problem with this source code by using the ddd debuger and I just can't. Here is the code. //lab1.cc, a driver for list.cc //CSCI 1120 //Will Briggs #include <iostream.h> #include "list.h" main () { Item Letters [MAX_ITEMS]; int num_letters = 0; …

Software Development c++
Member Avatar for Tomas Lopez
0
173
Member Avatar for eastgate

:cry: I have written this in [B]TCLite v1.x (Successful!) [/B]but when I ran it on BloodShed DevC++ v4.9.9.1 (Latest from Blood) it won't work!.. arrgg.. I need this functionalities.. ;-(.. for educational I typed [B]exactly[/B] these... [code] [COLOR=DarkOliveGreen] #include <iostream.h> #include <conio.h>[/COLOR] void main () { int mark; int sum; …

Software Development c++ gui
Member Avatar for eastgate
0
621
Member Avatar for evilsilver

lol i have tried and tried and look and ignored it for a long time. but i just can't find this problem or find it's solution anywhere. Here it is i have a function called fight i need to call to it often but for some odd reason whenever i …

Software Development c++ display flash
Member Avatar for evilsilver
0
117
Member Avatar for f_escobar82

I am writing a Win32 Console application and I need to change the font size to 18x10 pixels. I think this can be done with a function in windows.h but Im not sure which one or how to do it.

Software Development c
Member Avatar for kc0arf
2
4K

The End.