49,757 Topics

Member Avatar for
Member Avatar for Kareem Klas

Hi everyone I'm studying the part about while-statement but I don't understand the explanation in the book really well and the example doesn't work for me so I can't see it with my own eyes how it works. Can someone explain what the while-statement means and does? Also can you …

Member Avatar for Kareem Klas
0
330
Member Avatar for pbsarg

Hello all, I'm both new to the forum, and to C++. The only languages I know (and not extremely well) are CLISP, ICARUS, and MatLab. I'm planning on learning C++, but I was wondering if this problem could be solved without a full-fledged understanding of C++ for the time being. …

Member Avatar for mike_2000_17
0
196
Member Avatar for arba shahid

aoa guyz...plzzzz help me...i have to do a project whic should be related to data structure...kindly suggest me the easiest project becoz em very weak in programming...:(

Member Avatar for Suzie999
-1
194
Member Avatar for Devoney

Hi all, I was looking for a piece of code to simply obtain the manufacturer of the CPU in your computer (might also be known under vendor ID). I found it difficult to obtain a code as basic as possible. I had already coded this once in Assembly language, still …

Member Avatar for zar19
0
3K
Member Avatar for dualstar

help me to write a program which sets/arrаnges spacеs in width, аlign left, аlign right how can I align text? pls,can you explain in detail?

Member Avatar for deceptikon
0
29
Member Avatar for maml

please i want to return multiple values in c++ , and i have this peace of struct struct returns { int row_locs,col_locs; int row_descriptors,col_descriptors; double **locs; double **descriptors; }; and i have this pease of call by reference void returns (int &row_locs,int &col_locs,int &row_descriptors,int &col_descriptors,double **locs, double **descriptors){ } the …

Member Avatar for annaharris
0
386
Member Avatar for PixelExchange

Using Winsock and C++, I have successfully created a server which runs on my pc good and well. The problem is, I would like this same (console) server to run at a different IP address (that is not my home IP address). If my server (which is called server.exe) is …

Member Avatar for Reiz3N
0
177
Member Avatar for yassink

Write a function (seat_type) that reads an input from the user that represents a seat class. The user should enter F: for a first class seat, C: for a business class seat, or Y: for an economy seat. The function should validate the user input to accept only F, C, …

Member Avatar for RonalBertogi
0
318
Member Avatar for mc3330418

Sorry guys, this is a huge chunk of code that looks inefficient as f***. This was for a class I had last spring, so I'm not rying to cheat I just want an answer. So here's the assignment, Develop an object-oriented program to produce a grade report and an error …

Member Avatar for RonalBertogi
0
622
Member Avatar for sasukecold

Hi, imnewbie to c++ programming. Im want to read some txt file that have a data write inside. The data should be "WAT1235" which is the license plate number. Then if the programming read this data "WTA1234" it will give other information like the Roadtax, Colour of the car and …

Member Avatar for Ancient Dragon
0
199
Member Avatar for donaldw

I am using MCI controls to play media files within some software. For the most part, it works OK but sometimes things go poorly (e.g. when the media file is corrupt). How can I either put the code into a try/catch (i.e. what exception do I look for?) or how …

Member Avatar for donaldw
0
262
Member Avatar for selipar.jepun.712

Write a C++ program to compute and display a person's monthly salary as determined. If the status is Technician the person receives RM70 perday for 26 days work in a month. If the status is Lecturer the person receives RM200 perday for 26 days work in a month. if the …

Member Avatar for Schol-R-LEA
0
142
Member Avatar for sushants
Member Avatar for saad.taj1

Write a complete C program that asks the user to input two sets of integer numbers each of size 5 and store them in two arrays A and B. The program then outputs the elements that are common to both sets (available in both A and B). If there are …

Member Avatar for Moschops
0
88
Member Avatar for new_developer

Hi there, What is the easiest way to declare and initialize 2d dynamic array in class in C++ ?? Please tell me the easiest way, I have used 2d dynamic array in Java. Thanks !

Member Avatar for deceptikon
0
242
Member Avatar for CodyOebel

Ok basically what I am trying to do is this. There is a game and it has an address that changes but always contains the same value. So what I'm trying to do is enumerate from a starting address of this running process in this case 0x0120DE13 and read what …

Member Avatar for Suzie999
0
339
Member Avatar for siddiquedu

3 years ago, one brother solved this problem, i need this program to make some calculation. actually, i have some fractional/decimal component t (like 2.0213, 3.047) this program can only take integer. Can anybody please help me !!! #include<iostream> #include<fstream> #include<string> #include<cstdlib> #include<cmath> #include<iomanip> #include <windows.h> using namespace std; //void …

Member Avatar for siddiquedu
0
377
Member Avatar for erinkay528

**Here is the assignment:** Write a C++ program to calculate and display the number of primes in the first 50 “chiliads”. Your results should be exactly as presented below, under testing. Design Considerations: I think you will find your program easier to structure and write if you break it down …

Member Avatar for tinstaafl
0
323
Member Avatar for nur fieza

A road distance table may be used to give the distances between some towns as shown below. To simplify the programming of distance tables, we assign numbers 0, 1, . . . to the towns. Then we may get a distance table like this: Towns Number Alor Setar 0 0 …

Member Avatar for ndeniche
0
281
Member Avatar for mr.muin13

#include <iostream> #include <fstream> #include <windows.h> #include <iomanip> using namespace std; void printMainPage(); //customer need to register 1st Page void printUserPage(); //User(registered customer) page void Login(); bool openFileIn(fstream &, string ); //fstream in_file("Register and Login Details.txt"); fstream file("Register and Login Details.txt", ios::out | ios::in); int main() { printMainPage(); system("cls"); printUserPage(); …

Member Avatar for mr.muin13
0
262
Member Avatar for mallikaalokam

Hii guys.. Iam having problems with visual c++ i created a win32 application in visual c++..then if tried to execute a noraml turboc3 developed C++ porogram..then it is showing some errors regarding the header files... the error is... 1>cvar.cpp 1>d:\mallika\stuff\cpp\cvar.cpp(1) : fatal error C1083: Cannot open include file: 'iostream.h': No …

Member Avatar for mallikaalokam
0
178
Member Avatar for nilou.far.79

I am writing a program for a clinic now. here is my code ,the problem now is I need to write 2 functions for my program The first function : is to capture time of registration The second function: is for treated time of patient -each patient can consult DR …

Member Avatar for CodyOebel
0
227
Member Avatar for CodyOebel

I cannot get the microsoft SDK installed. This is the log file. I'm on windows 7 pro 64bit. I am running Kaspersky Internet Security 2013 if this may be an issue. Any help would be appreciated. 10:29:27 AM Sunday, May 19, 2013: ------------------------------------------------------------------------------------------------- 10:29:27 AM Sunday, May 19, 2013: [SDKSetup:Info] …

Member Avatar for CodyOebel
0
1K
Member Avatar for owenransen

I have a combobox in a dialog which I populate in the resource editor with this string: -12;-11;-10;-9;-8;-7;-6;-5;-4;-3;-2;-1;0;1;2;3;4;5;6;7;8;9;10;11;12 If the user chooses a new number from the combobox lots of other things happen in the dialog, then I select the number chosen again, this time programatically. (Some numbers are not …

Member Avatar for owenransen
0
203
Member Avatar for Rogierownage

Hello. I made this program. It's designed to be a version of the game "Game of Life", except text-based and played entirely in cmd. Now, the program is working fine, but I would like to get some suggestions for things I could have done more efficiently, or anything else that …

Member Avatar for c0DEZOMBIE
0
167
Member Avatar for c0DEZOMBIE

Help needed with a function problem I really cant solve. Why is it that RegOpenKey() returns error success even though it fails. First it fails to return a handle with a valid Registry key/address filling the key paramater with nothing 0 but returns 0 aswell indicating an error_success right? because …

Member Avatar for c0DEZOMBIE
0
460
Member Avatar for Labdabeta

Hello. I read about the daniweb api competition thing and I have an idea of what I want to create. I have never done anything webby before (aside from using dreamweaver to make websites) and I think its about time that I did! I am hoping that it is possible …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for josey_matt

Hi, could anybody please tell me what i am doing wrong in this program. The goal is to read the student name and grade from a text file and print it on the screen. This is what i have so far. by the way this is for a school project …

Member Avatar for siddiquedu
0
8K
Member Avatar for MasterHacker110

I have this code that is supose to just display "Hello Hacker!". But when ever I run it it gives a segmentation fault error #include <stdio.h> char code[] = "\xba\x0e\x00\x00\x00\xb9\x4\x90\x04\x08\xbb\x01\x00\x00\x00\xb8\x04\x00\x00\x00\xcd\x80\xbb\x00\x00\x00\x00\xb8\x01\x00\x00\x00\xcd\x80"; int main() { void(*func) (void); func = (void*) code; func(); } I am trying to run it on linux btw. …

Member Avatar for MasterHacker110
0
140
Member Avatar for chrispitt

The End.