49,761 Topics

Member Avatar for
Member Avatar for helixkod

Heres my current code: [CODE] const int SIZE = 100; //constant 100 const int COL = 30; //number of columns int testScores[SIZE]; //test score array char students[SIZE][COL]; //student names array int numTests; //the number of tests char *namePtr; //char pointer int *numPtr; //number pointer int count; //counter numPtr = testScores; …

Member Avatar for Duoas
0
110
Member Avatar for jrice528

OK, I finally figured out command line arguments... my program is called prime, in the console i need to type "prime 7" and the program will tell me if its a prime or not. heres my code: [code]#include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; int main(int …

Member Avatar for Duoas
0
111
Member Avatar for johnnyjohn20

Hello, i am trying to count from 0 - 7 and storing the values in an array. I have been trying to do this solidly for 2 weeks :'( my attempt: ************************************** int a[20]; int x; for ( x=0 ; x<=7 ; x++ ) { a[1] = x; cout << …

Member Avatar for Salem
0
98
Member Avatar for geckoo

I was wondwring can somebody help me with my problem: how can i run my .exe, created usnig bolrand c++ on another computer wich hasn't got C++ installed maybe its a silly qustion, but i just don't konw it. ...ooops I forgot the main reason for my qustion my program …

Member Avatar for Sturm
0
139
Member Avatar for amnajvd

Hi I Am Working On This Project I Which I Need To Send Jpeg Files Over The Lan Ports To Some Device. Can Somebody Please Tell How Do I Program My Lan Ports In C++ Orc Maybe??/ Thanx Amna

Member Avatar for Ancient Dragon
0
323
Member Avatar for jrice528

What exactly does this mean?? Your program must determine the user-specified lower bound and upper bound by using command-line arguments. You will need to use the strtoul() function (from the cstdlib header) to convert command-line arguments to int values.

Member Avatar for vmanes
0
113
Member Avatar for heav_yduty

Hi! I try to make a simple internet browser. I use document SDI and base class CHtmlView. And the problem is that I don't know how to make an address bar like in IE. Maybe somebody can help me? Sorry for my English (I mean "a question about VC++6") , …

Member Avatar for heav_yduty
0
71
Member Avatar for powellinthesout

I'm very new to C++ and want to start some beginner programs; but I also want a partner, to learn together. Post here :) ~powell

Member Avatar for Lerner
0
73
Member Avatar for joceyn226

HELP.. below is part of my code which i have trouble with it why when i choose 5 to exit.. it does not exit..but it will ask me to press any key to continue then when i press...it cum back to the main menu again.. thx for helping...really appreciate it …

Member Avatar for Ancient Dragon
0
96
Member Avatar for amitshukla

hi, I am working on a project and regarding that i want to know how can i send a file to a computer on the LAN using C / C++ program PLEASE HELP ME OUT

Member Avatar for Salem
0
135
Member Avatar for Biro

Hey I am new to c++, I am trying to work with programmer defined functions, I was wondering if someone could tell me where I went wrong with this: [code]#include "stdafx.h" #include <iostream> using namespace std; double hatsize(double user_weight, double user_height); // hat size function declaration int _tmain(int argc, _TCHAR* …

Member Avatar for Ancient Dragon
1
102
Member Avatar for samaru

Hey guys. I was thinking about writing a C++ tutorial. What do you think are the hardest topics to cover in C++? I know a lot of people have a hard time with pointers, but I was wondering what you guys think.

Member Avatar for Salem
0
395
Member Avatar for teddyzhai

Hi , There: I just have a simple question by programming. Looks like this: class A{ ..... ..... Public: copy(){ return *(this); } } in .cc file: for example we have a container list<A> list; A* a = new A(...); list.push_back(a->copy()); Why is this copy() better than not use it …

Member Avatar for Duoas
0
141
Member Avatar for cuddlerbes

hello can you help me with my program. Are you familiar with microsoft visual studio 6.0. I made a program in c++ but it will commit errors everytime it will accepts more than 10 integers.. or even large integers

Member Avatar for zandiago
0
82
Member Avatar for alcoheca

Hi, me again! I wish to tidy up strings from user input. I have done a bit of research and have most of this working except the tricky bit - converting all/any whitespace between words to 1 ' ' char. For instance, using hyphen to represent spaces.. ---John-----MacDonald- should end …

Member Avatar for alcoheca
0
115
Member Avatar for Knad

Hello, I am trying to impliment a guassian blur filter in C++, but i cannot progress asi keep getting a Floating point exception every time i run it. I am unsure as to why, i have narrowed the error down to somewhere within the function gaussian_mask() which creates the gaussian …

Member Avatar for Knad
0
290
Member Avatar for valdix

I have problem with my homework in C++ There is number n and numbers a1, a2, ... , an ( n<100 ) And I need to get thous number pairs, that are mutual prime. Also I need to use function, that calculates two number mutual primes. :S

Member Avatar for Salem
0
154
Member Avatar for np2100

I am still just a beginner and i made this average program. It worked out just fine. THen i decided I wanted to make it say like the grade you got such as an A+ or C. Anyway after I add all the grades and divide them by the number …

Member Avatar for np2100
0
275
Member Avatar for wambooman

what I want to do is replace the spaces inputted to '~10' text. I input a string a1. I change the string to a char array names SA so I can go through each char. if the char[i] is a space, I want to append ~10 to the sa string. …

Member Avatar for Duoas
0
123
Member Avatar for Ken JS
Member Avatar for MNDGAM

Im trying to Write a Recursive funtion that computes F(n) = 2 + 4 + 6 +...+2n using pass by reference.. here is the code I have [code=c++] #include <iostream> #include <iomanip> #include <cmath> using namespace std; int F(int &); int main(){ int n; cout <<"Enter n for computing F(n) …

Member Avatar for vmanes
0
100
Member Avatar for brlukosk

Hello all! New here at daniweb. I am working on a function to check the validity of a sudoku puzzle. It must check the 9x9 matrix to make sure it follows the rules and is a valid sudoku puzzle. this is what I have come up with so far: [CODE]/** …

Member Avatar for brlukosk
0
4K
Member Avatar for alcoheca

hi, I'm checking a date is valid as it's typed in, however I always want to allow the user to skip with a CR. The while condition is causing my program to crash when [B]str_date.length()==0[/B] (I think) here's my code: [CODE=c++] struct Date { int d; int m; int y; …

Member Avatar for Narue
0
259
Member Avatar for wijitha

hi.. I'm new to ACE framework. I want to develop a server which has multiple ports and multiple clients can connect with the server simultaneously. I tried to do it using a ACE_Event_Handler objects witch registered with ACE_REACTOR. But i could not achieve what i want. If you have idea …

Member Avatar for vijayan121
0
283
Member Avatar for tonyaim83

Hi My problem statement is as follows :- I have set of processes all having unique name say PROG,PROG1,PROG2 etc. Now with each of these processes different integer values are being associated say min_time, max_time,median_time. What i want is to create a map of all these processes and associate the …

Member Avatar for vijayan121
0
102
Member Avatar for rajdeep.mm

hi, can anybody provide me with a C++ code to check if a dll file is currently in use without using the microsoft framework. i mean right now im doing it using the GetProcessesByName() method. Is there any way i can do it without the use of this method

Member Avatar for Ancient Dragon
0
66
Member Avatar for alcoheca

Hi I wish to break up a date entered as a string into [B]int[/B]s for day, month, year. String to be entered follows this convention DDMMYYYY - this will be checked so we can presume it's suitable. I have it working using tempary variables, but is there a way to …

Member Avatar for Nick Evan
0
853
Member Avatar for n.aggel

hi lets say you have a big application and you want to break it up to many files... The ideal would be if you can have the application in one .c {i.e main.c} file your types and includes in another file {types.h} and your functions in a seperate file {functions.c} …

Member Avatar for n.aggel
0
96
Member Avatar for DamiLeon

Hi, I am supose to do a program in C++ that tests for a password it should do the following: a- the password should be between 6 and nine characters b- the password should contain at least one upper case and at least one lowercase letter c- the password should …

Member Avatar for wambooman
0
81
Member Avatar for rajdeep.mm

hi all, i am using RougeWave CTLib code to connect to a sybase database. can anybody pls guide me as to how i can modify this code to be able to connect to a unicode database. The ct_command() takes the sql query in char format. how can i pass 2 …

Member Avatar for Ancient Dragon
0
29

The End.