48,985 Topics

Member Avatar for
Member Avatar for Asif_NSU

In my program i will be taking two inputs, lets say two integers. If the number of input is more than two the program will exit. If it is two then the loop will be executed and after that it will again ask for two new inputs-- and will continue …

Member Avatar for Dave Sinkula
0
91
Member Avatar for shouvik

I need to submit 23 programmes in C++ in school by Monday. plz somebody provide me with only 3 programmes one on Inheritance, one on structures and one on classes... Very urgent plz. Plz post a programme that is probably of 12 to 13 lines or more... It would be …

Member Avatar for shouvik
0
124
Member Avatar for shouvik
Member Avatar for Stack Overflow
0
124
Member Avatar for Dick

I've scanned a lot of C++ sites but have not found an answer yet. In several pre written programs, I've noticed that a single brace "{" is used without being closed later in the program. It appears like it is used to go outside the program to get info. like …

Member Avatar for Dick
0
100
Member Avatar for big_k105

Ok my problem is i have a struct and im tring to ready a line into the array of structs using fstream. here is the code i have its just a basic layout of what will come later on. but here it is :) [code]// file: main.cpp // author: Kyle …

Member Avatar for big_k105
0
137
Member Avatar for mpkhadloya

hi, How socket programming is done in c++ for window? how to use port in c++?

Member Avatar for nallahp
0
150
Member Avatar for RITZY_G

just need a little help wit comparing two int arrays and return the value as bool. help: #include<iostream> #include<iomanip> using namespace std; using std::setw; bool compare(int[], int[]); int main(){ const int correctarraysize=5; const int pupilarraysize=5; int resultarraysize=5; int pupilarray[pupilarraysize ]; int correctarray[correctarraysize]={1,2,3,4,1}; bool resultarray=0; cout<<"\n\nEnter pupil's results:"<<endl; for(int k=0;k<pupilarraysize;k++) cin>>pupilarray[k]; …

Member Avatar for RITZY_G
0
211
Member Avatar for kohkohkoh

after words are been entered by the user, it saved in the file.txt as address something like 0047D123. what should i do if i want it to be appeared as in full character?? thank you! #include <iostream> #include <fstream> using namespace std; int main() { char words[50]; char *p = …

Member Avatar for kohkohkoh
0
77
Member Avatar for iamboredguy

I'm trying to use sequential binary file editing in C++. I use a temporary file. I have to make the changes in the file by storing the modified data in the temp file. Then I delete the original file and rename the temp as the original. The problem is the …

Member Avatar for iamboredguy
0
103
Member Avatar for samology

I want to find out how Visual C++(Windows Programming) is used to access and manipulate data in the database using ODBC.

Member Avatar for hivework
0
107
Member Avatar for Sukhbir

Consider The Following Statements *p++=*(p++) These Two Are Equals.can Someone Explain Me How. Is Parentehsis Not Alter The Behaviour? :?:

Member Avatar for Chainsaw
0
135
Member Avatar for Ghost

What's the coolest program you've ever written in regular C++, not Visual C++?

Member Avatar for shouvik
0
404
Member Avatar for manav_sh

can somebody give me an idea as to how do i go about developing a C++ application with capabilities of calling a number, answering calls etc.

Member Avatar for Chainsaw
0
66
Member Avatar for kohkohkoh

based on the forum at [url="http://www.daniweb.com/techtalkforums/thread6305.html"]http://www.daniweb.com/techtalkforums/thread6305.html[/url] i tried to change the color but still only black and white screen. can anyone show me a simple example, so i could learn from there... i'm learning c++; thank you.

0
70
Member Avatar for yeohsli

i m just learning pointer in c++. and i coded a program. however the output is not wat i wanted. :?: [code] #include <iostream> using namespace std; void descending( int *, const int ); void ascending( int *, const int ); int main() { int input[10]; int *p = input; …

Member Avatar for yeohsli
1
89
Member Avatar for Kyman2008

I recently bought the "Teach Yourself Game Programming In 24 Hours" and it doesn't seem to be helping me much. The book gives you code for a game but really doesn't explain it or tell you how to use it in your own game. I am attempting to make a …

Member Avatar for FireNet
0
112
Member Avatar for RobinA

Hi im programming a program thats going to count how how many doussins,grosses and pieces. there are if you enter a number. (just so u know ive started programming 1 week ago and havent programed alot cause school started) ok heres my problem: when i enter 502 pieces it says …

Member Avatar for RobinA
0
91
Member Avatar for Asif_NSU

Sorry Inscissor, I couldnt approve the reason why you closed that thread. I think learning about viruses can be quite educational. If no one studied about viruses it would not have been possible to make anti-viruses. Learning to know how to create viruses or atleast discussing about viruses is no …

Member Avatar for FireNet
0
116
Member Avatar for matika

working on a project on c++ consol application and need to change the color of a specific letter in a text on the output screen 4 example : [COLOR=SandyBrown]V[/COLOR]Ie[COLOR=Red]w[/COLOR] pllz help thx :confused:

Member Avatar for FireNet
0
108
Member Avatar for chound

Can I create a virus with c or c++? [SIZE=5][FONT=Fixedsys]Will anyone teach me how to do it?[/FONT][/SIZE] :( :twisted: Why doesn't anyone add to my reputation? :cheesy:

Member Avatar for samaru
-2
223
Member Avatar for Lothia

I am using Microsoft Visual C++, and when i try and compile something i either can't or i get " Cannot compile the file in 'C\Program Files\Microsoft Visual Studio\Common\tools\H1.h'; no compile tool is associated with the file extension" I have placed it in so many different places and each time …

Member Avatar for Lothia
0
319
Member Avatar for hfick

I am stuck on this problem..you are supposed to locate the error in the segment of code: char var1, ptr1; var1='X'; ptr1=&var1; Can someone please help me figure this out. It is much appreciated.

Member Avatar for FireNet
0
333
Member Avatar for hail2dthief

I :cheesy: want to input a string but instead of showing the real characters on the screen, i want all to be astericks. Can anybody help me to solve this?

Member Avatar for hail2dthief
0
402
Member Avatar for kalinga

I am having a problem regarding nesting loops.for example for(int x=1;x<10;x++){ for(int y=1;y<x;y++) i want to know what this statement means. I posted a question to the forum but the moderator has unfortunately taken it off. I need some help regarding the concepts of the program given below.just give me …

Member Avatar for alc6379
0
104
Member Avatar for sonix

below is one of my function call of a program done in C: /* asks if the players would like to have another game of Tic Tac Toe */ void prompt_user(int game[][SIZE]) { char reply; printf("\nPlay Again? (Y/N): "); scanf("%c", &reply); if(reply == 'Y' || reply == 'y') { print_empty_board(); …

Member Avatar for kc0arf
0
121
Member Avatar for yesuf

Dear members, I am self practicing C++ and I am interested to understand ADTs in C++. It became challenging to understand, but seems very interested. So for my clear understanding, I invite any member to assist me to understand the implementation of linked list using pointers in dynamic memory allocation …

Member Avatar for Chainsaw
0
241
Member Avatar for kalinga

i need some help in understanding to write the following programs.please describe how you think of doing it.. 1) * ** *** **** ***** ****** ******* 2)******* ****** ***** **** *** ** * thank you.....

Member Avatar for rishiraj_bayerd
1
123
Member Avatar for nanosani

Is c # slower than c ++? Actually I am a little familiar with c and java ... now I am in a mood to learn c #. Is it better than c and java?

Member Avatar for nanosani
0
306
Member Avatar for RobinA

hi im new to c++ (started today) and im reading a book about c++ (called C++ Programming A) Well i started to read and learned the first code and wrote it in Microsoft Visual C++ and i get a error (error C2065: 'cout' : undeclared identifier) i dont know why …

Member Avatar for FireNet
1
224
Member Avatar for varma

The End.