51,593 Topics

Member Avatar for
Member Avatar for squinx22

below is my program.. this concerns about IP addresses. this program works, but I have to separate the implementations in a class in the header file aside from main function.. the implementation/ the codes in the header file must be separated in one file and be conected to the header …

Member Avatar for iamthwee
0
79
Member Avatar for FreeFull

I tried to write a program that uses if loops to check if a char variable had certain value: [code=c++] /* FreeFull Software */ #include <iostream> using namespace std; float dark_rays; float light_rays; float ball; float universe; float matter; char menu; char darkmenu; char lightmenu; int main() { cout << …

Member Avatar for vijayan121
0
158
Member Avatar for chikwava

[b][/b][u][/u]my Question Is: Design And Implement A Programme That Helps To Analyse The Flow Of Patients Into The Emergency Room. Enter The Integers That Represents The Number Of Patients That Entered The Emergency Room During Each Hour Of The Day For Four Weeks In A Three-dimensional Array Then Analyze The …

Member Avatar for naya22
0
98
Member Avatar for Gaurav arora

hi all! i m trying to input an array of strings same as we input array of integers. by declaring a 2 dimensianal array runnig 2 for loops like [code] for(i=0;i<m;i++) for(j=0;j<n;j++) cin>>arr[i,j] [/code] plz help me i m in great confusion because by doing in this way, i m …

Member Avatar for sirkraven
0
109
Member Avatar for CRD

Find out Which header or DLL files are needed for functions in C++? In other words how do you know which include headers are needed to do ferious user defined functions? Dick

Member Avatar for Mpiangu
0
103
Member Avatar for nottoshabi

I wrote this code, and I'm having a little problem with it. The point of the code is for the user to enter a desired number, then that number gets subtracted by 45 then dived by the percentages and all that dived by 2. Also I dont know how to …

Member Avatar for Ancient Dragon
0
327
Member Avatar for NewKidWalking

Hello, I'm new... And this is my first code display. [code] [code=Language] #include <iostream.h> #include <iomanip.h> #include <ctype.h> #include <stdio.h> main() { struct figure_info { int a = 1; int who = 2; int where = 3; int when = 4; int how = 5; int why = 7; return; …

Member Avatar for ~s.o.s~
0
92
Member Avatar for Osama Mehtab

I've so far studied C++ through Robert Lafore's Book but to understand more variations of recursion I need some example codes for recursions hoping good from u :mrgreen:

Member Avatar for Ancient Dragon
0
97
Member Avatar for Duki

Hey everyone, I'm working on this program for class but I'm getting an error in the [I]sumGrades[/I] function saying 'inp' is undeclared. Could someone give me a hand? #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; // initializes count of females, count of males, female GPA sum, …

Member Avatar for John A
0
103
Member Avatar for Duki

Hey, I'm working on another program for class which is to determine the day of the year given the date the user inputs. The date will be input in the xx-xx-xxxx format. Is there a way I can cin Mon, skip char, cin Day, skip char, cin Year ? How …

Member Avatar for John A
0
245
Member Avatar for sirkraven

[COLOR=#555555]Hey, [/COLOR] [COLOR=#555555]I have a singly linked list that has a show all function that looks like this[/COLOR] [code] [COLOR=#555555]virtual void Show()[/COLOR] [COLOR=#555555] {[/COLOR] [COLOR=#555555] myObject->Show(); myNext->Show();[/COLOR] [COLOR=#555555] } [/COLOR] [/code] [COLOR=#555555]Where myObject is a class ordered by an int. This function prints out all information in the list.[/COLOR] [COLOR=#555555]I …

Member Avatar for sirkraven
0
128
Member Avatar for vegaseat

Did you know C# has its own scripting language based on Lisp, here is an example ... [code];;; Scripting a 'C#'' GUI with Lsharp, free from [URL="http://www.lsharp.org"]www.lsharp.org[/URL] (reference "System.Windows.Forms") (reference "System.Drawing") (using "System.Drawing") (using "System.Windows.Forms") ;; Create a form (= form (new System.Windows.Forms.Form)) (set_text form "Hello from Lsharp") ;; Create …

0
70
Member Avatar for maverick786

I have created a project with about 7 files including 3 header files and 3 implementation files. I am getting a multiple definition error when compiling for one specific file of class. I have checked that if there is more than one allocation of storage for identifiers, this error arises. …

Member Avatar for thekashyap
0
63
Member Avatar for naya22

Hi. I am trying to write a program that asks for the wholesale cost of an item and its markup percentage, and displays the retail price. Well, I did that the regular way, but... My instructions require for me to: *Create a function that accepts the wholesale cost and markup …

Member Avatar for thekashyap
0
105
Member Avatar for jasssvj

Hi! How can I read all files in a directory, when I don't know which files are there? Sincerely Jasmina Jeleva!

Member Avatar for vijayan121
0
1K
Member Avatar for tygerberg

Hi I need help finding a gui library for c/c++, I'm tired of using DOS. I also want to get started in network programming. I want to create a server-client program that will enable me to send text over a network or from a mobile phone to a pc. If …

Member Avatar for Ancient Dragon
0
110
Member Avatar for sirkraven

[COLOR=#555555]Hi, I’m new to c++ and am looking for some help. I’ve searched through most of the site but cant find exactly what I need, so thought I’d ask. [/COLOR] [COLOR=#555555]I need to read in strings (arrays of char) from a text file in a function then pass them back …

Member Avatar for Ancient Dragon
0
106
Member Avatar for Riazansar

dear people i have an assignment due in one hour and its not working. i have to write a program with four functions that finds out and print the twin prime numbers. i followed every step in the assignment and its not giving any error but i dont have any …

Member Avatar for Riazansar
0
149
Member Avatar for Tauren

[code=c]cout << "\nYou trade your sword for a battle axe."; inventory[0] = "battle axe"; cout << "\nYour items:\n"; for (int i = 0; i < numItems; ++i) cout << inventory[i] << endl; [/code] Uhh well the question is that I really dont get the ++i Why would you use the …

Member Avatar for WaltP
0
132
Member Avatar for Manzar

Write a C/C++ program which consists of a user-define function Prime. This function will take a number and check that the number is prime or not if the number is prime Display The number is Prime other wise display The number is not Prime Call this function in main program.

Member Avatar for WaltP
0
102
Member Avatar for pc0019

Hi I've just picked up a copy of SAMS teach yourself C in 21 days (I dont think Ill finish it that quickly) because I wanted to get into programming. I've worked through the first chapter, but keep enountering a problem: my programs exit before I can see what they …

Member Avatar for pc0019
0
132
Member Avatar for Brent.tc

How do i find the dimensions of a button? Example: I want to find the width of the start button, and the height and then assign them to seperate ints. int width=WindowWidth(Start); int height=WindowHeight(Start); The abbove functions are totally made up, so they are just examples...

Member Avatar for Ancient Dragon
0
115
Member Avatar for Senel

I want to write a program that enter the marks of n of student out of 100%, students who are (marks>=65) pass otherwise failed, want to print number of students who'r passed and failed ? I solved but wont work >< To enter nth marks of student need loop, then …

Member Avatar for Senel
0
106
Member Avatar for Brent.tc

I was wondering if it is possible (by this I mean, with a 'premade' c++ api function) to logon to a windows account (if there is I assume you must know the password) I use bloodshed, not vc++.

Member Avatar for vijayan121
0
245
Member Avatar for naya22

Well, everyone, here I am again. (I'm becoming a familiar face, am I???):confused: I am working on an program in Borland C++ Builder 6 in which I have to create a program that asks the user for their name, what package they choose, and how many hours did they use. …

Member Avatar for naya22
0
116
Member Avatar for addicted

me again, I need help with that so called templates in C++, i need someone who can break it down to bits for me, i just read it today and i understand few of it, i understand that templates are used for substituting function overloading... but i was thinking that …

Member Avatar for iamthwee
0
112
Member Avatar for CRD

Can any one spot why this listing Will not compile? [code=c] /*print_it.c-This program preints a listing with line numbers */ #include <stdlib.h> #include <stdio.h> void do_heading(char *filename); int line = 0, page = 0; int main( int argv, char *argc[] ) { char buffer[256]; FILE *fp; if( argv < 2 …

Member Avatar for CRD
0
440
Member Avatar for student86

In options 1 and 2, the user will input the ID, Type, Description, Quantity on Hand, and Unit Cost as one string with the values separated by commas. Use the function [B]strtok[/B] to parse the input into separate values. For the numeric values, call the function [B]verifyValue[/B] to verify that …

Member Avatar for student86
0
93
Member Avatar for naya22

Hi. Can anyone tell me some good websites that I can go to to find out more about functions in C++? Thanks

Member Avatar for mariocatch
-1
207
Member Avatar for nanodano

Is there any way to read or write to a socket besides using the [inlinecode]read()[/inlinecode] and [inlinecode]write()[/inlinecode] functions. Is there any way to treat it like a stream and use the insertion/extraction operators (<< and >>)? The reason I ask is because with read I have to put an arbitrary …

Member Avatar for vijayan121
0
189
Member Avatar for viraltaj

Hello friends, This is my first post on this forum. I just came here to learn a bi t of C++. I have developed an operating system called TAJ in C++. Its an object oriented operating system. It is multitasking, multithreading and multiuser operating system. This is its link: <snipped …

Member Avatar for jan1024188
0
160
Member Avatar for jerryseinfeld

Hi... I have a project whic is input should be like... Kazma 7 780 m Kaz 13 1400.5 f Azaz 1 601 m and output should be like.... Kazma 7 ,,,,780.00 "m" ,,,,,Kaz 13 1400.50 "f" ,,,Azaz 1 ,,,,601.00 "m" (please think without , ) In this project input can …

Member Avatar for jerryseinfeld
0
125
Member Avatar for MarzenaM

Hi! I am doing program to calculate votes. its very simple but .......... up to what I did so far it doesn't want to calculate the first vote. Please tell me what i am missing? It's what i did so far.[code=c] char choice; int total, voting_station, votes,spoiltVote, totalA, totalB, totalC, …

Member Avatar for MarzenaM
0
83
Member Avatar for Jedimaster

I want to know :idea: how to have a line output with highlighted text and how to COUT<< a Blinking line using Borland compiler ThankYou...

Member Avatar for WaltP
0
35
Member Avatar for l-o-s-t

I defined a struct that has the format: [CODE] struct node{ char *str; int key; link next; }; [/CODE] and I have a list of this type, when I try to do this [CODE] free ( list -> str ) [/CODE] the program terminates :-| how can I free the …

Member Avatar for l-o-s-t
0
130
Member Avatar for Green Anorak

Hi All I am very new to C and would appreciate your help. I am trying to create a program which reads a file (a list of numbers) and prints to the screen those which are higher than 0.7. Does anyone know how to do this? So far I am …

Member Avatar for DEMWilson
0
96
Member Avatar for Osama Mehtab

hi everybody, dayz back i've posted the intro thread I'm really needing ur help people to consult C++ as one of the core courses of my engineering Program tell me how can u help or just suggest me right now as I 'm a beginner:confused:

Member Avatar for WaltP
0
83
Member Avatar for i m gr8

Hello, I am university student and currently we are being thaught C++ and are studying Object Oriented Programming. Since last few weeks what ever assignment I get , My program always end up with thread stop error while runtime and I cant find the reason. I have to currently submit …

Member Avatar for iamthwee
0
484
Member Avatar for wujianwei

I have been wondering the definition... I mean, [B]Are both 00123 and 12345 five-digit numbers?[/B]

Member Avatar for Aia
0
104
Member Avatar for techie82

Hello all I'm a fresher to Microcontroller programming. I have defined certain global variables that I need to store at consecutive memory locations, say starting from 0x8000h . Will appreciate if anyone can give me the syntax / instructions to go about the same. thanks techie

Member Avatar for Infarction
0
115
Member Avatar for BaD-AiM
Member Avatar for naya22
0
98
Member Avatar for kaushalsahil09

please tell me how I can execute c++ program frm java I had tried this one but it does`t work /*import java.io.*; public class exe1 { public static void main(String[] arg) { try { Runtime rt = Runtime.getRuntime(); //int s=rt.availableProcessors(); Process prcs =rt.exec("inventry.exe"); InputStreamReader isr =new InputStreamReader(prcs.getInputStream()); BufferedReader br = …

Member Avatar for daninator09
0
632
Member Avatar for ithelp

Hello C/C++ experts, I write the following code [code] int a[10]; int b[10]; // initiliaze all element of array a and b to 0. a[11]=255; [/code] Neither the program crashes nor the value of b[0] becomes 255 What could be the reason?

Member Avatar for vijayan121
0
114
Member Avatar for earlyriser

Hello. I'm trying to read an input file to build a list formed by structs. The input file has this format: 1 2,15 3,0 2 1,15 3,8 ... the first number of each line will be in what I call NOMBRE, and for the rest of the numbers in the …

Member Avatar for earlyriser
0
80
Member Avatar for mrjoli021

I am using c++ I have a string array and I need to convert it to an int array. I tried static_cast and that did not work. Any suggestions

Member Avatar for iamthwee
0
68
Member Avatar for mrjoli021

I have a two dimensional array that I need to make into a global variable to be able to access it from other functions. I can't quite figure out what the correct syntax is. [code] [COLOR=#008000] [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] "stdafx.h"[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <fstream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <string>[/COLOR] [COLOR=#0000ff] using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff] void[/COLOR][COLOR=#000000] …

Member Avatar for Aia
0
124
Member Avatar for mrjoli021

in c++ how do I get the size of a string array. sterlen(arrayname) does not work or size(arrayname) either. I am getting sterlen or size as idenitfier not found at compile time.

Member Avatar for WaltP
0
224
Member Avatar for tasomaniac

[I]<< split from [URL="http://www.daniweb.com/techtalkforums/showthread.php?t=22498"]this[/URL] thread >>[/I] I am a student in Bogazici University/Turkey. We have a project and I want to change the cursor position but there is a problem. Our teachers are using Microsoft Visual C++ 2005 Express Edition. In this compiler there is no windows.h header. What can …

Member Avatar for TkTkorrovi
0
715
Member Avatar for Aia

If you would have to write your own implementation of the function [COLOR=Blue]getchar()[/COLOR] in C; how would you do it?.

Member Avatar for vijayan121
0
490
Member Avatar for jan1024188

I have compiled a project using Visual Studio in Vista ultimate. On my computer the application works fine, but on the computer where XP is installed I get the error like "Progam configuration is wrong". Do I have to compile my WIN API project in XP to be runned on …

Member Avatar for vijayan121
0
304

The End.