49,766 Topics

Member Avatar for
Member Avatar for rokz84

okay.. i'm really stuck on this program assignment i have to add two arrays (20 digits long) than sum the two. what i have done so far is (or at least attempted) is putting the digits into a temporary array than moving them into one of the arrays i want …

Member Avatar for vocater
0
119
Member Avatar for rObOtcOmpute

I'm supposed to use a 'top-down' programming style (which is my enemy) for a simple game of Cootie, and I am very new to C++ so there will be errors abound in my program, I'm just working on getting past one error thus far: [CODE=C++]void ApplyRoll(int Roll, int Body, int …

Member Avatar for rObOtcOmpute
0
3K
Member Avatar for okwy

Good day all, I have a date string format say like "2010-03-01" and I want to get the "tm_wday" equivalent of it say like Monday, Tuesday ... Could someone give me a hint on how to achieve this in c. Thank you.

Member Avatar for Ancient Dragon
0
224
Member Avatar for Rachel Ross

This problem is related to an unsolved problem in game theory... Consider a blind cat and mouse that live on a (unit) circle. They start off in random positions then each choose a speed and start running in a random direction. On average how far will the cat run before …

Member Avatar for Aranarth
0
115
Member Avatar for lafayettejohnso

Hi Iam new to c++ programing and I have this project where I must write a program that takes in data from the employee.dat. I have the program started but now Iam stuck any help would be greatly appreciated. heres my instructions. • Note there are only 4 employees in …

Member Avatar for daviddoria
0
220
Member Avatar for Jennifer84

Hello I wonder if it is possible center align a linklabel in a Panel ? I cant find any property for this in the Panel. Thank you

Member Avatar for jonsca
0
98
Member Avatar for wyssen

Hi, I have a wired problem. I try to build a argv array which will be passed to ssh command. The following line works perfectly: [CODE]argv[n++] = "64.106.11.123";[/CODE] But when I try to get the IP address out of a string which contains it, it will add me a line …

Member Avatar for wyssen
0
282
Member Avatar for wander36

Hey, I'm trying to create a program that displays a map and allows the user to put coordinates on the map and enter what the coordinate is. I want the user part to be in a console window, but I want the map to be displayed using SDL. I can't …

0
32
Member Avatar for Twinzen

I'm having trouble with using a multiset of my own data structure. It seems to complain about my comparison (less than) function when I try to iterate, but it works at some level because I can insert() stuff and call functions from the first member of the multiset. If anyone …

Member Avatar for Twinzen
0
141
Member Avatar for ironmancpp

Hi I am learning c++ at school. I am supposed to submit a project this year end. I would like to create an offline mail server using c++; something in which you can create an account and read & send messages to other existing accounts in the same computer. Once …

Member Avatar for Ancient Dragon
0
207
Member Avatar for Anex

I am working on a program which would really become easier to write if I can use character variables as an index to an array.. for eg. if char_var is a character variable say initialized to 'a'(ascii decimal value = 97), then array1[char_var] should refer to array1[97] element. I wrote …

Member Avatar for Ancient Dragon
0
9K
Member Avatar for Nathaniel10

Hi!, I am doing the exercises in Stroustrup's book, Programming: Principles and Practice Using C++. The 6th chapter uses a simple calculator to demonstrate Tokens and grammars. I realize that there are other calculator questions in the forum, but I did not find one that dealt directly with mine. An …

0
39
Member Avatar for Kanoisa

Hi, I think im trying to break c++ again in making it do something it does not want to do. Basically i have a logging class im making which simply takes a string stream and pumps it into a file. But i want 2 different versions one that trys to …

Member Avatar for Kanoisa
0
193
Member Avatar for PixelExchange

Hi all. I need help "binding" to a specific IP address. My program is able to "bind" when using inaddr_any, but I can't seem to bind to a specific IP address using inet_addr("...."). I am basically trying to "bind" a socket to MY home pc's IP address, and a random …

Member Avatar for Ketsuekiame
0
148
Member Avatar for wyssen

Hey everyone I have this huge program which comes with different directories like lib, include, test, modules, services etc. Every directory has a -Makefile -Makefile.am -Makefile.in The root directory has the following files -missing -Makefile -Makefile.in -Makefile.am -configure -configure.ac I added two classes with 2 header files and one of …

Member Avatar for wyssen
0
251
Member Avatar for cj232

[CODE=c++]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<"x value x2 value x3value\n\n"; int x=0, y, z; back: x++; if(y=x*x) if(z=x*x*x) cout<<" "<<x<<" "<<y<<" "<<z<<"\n"; if(x<10) goto back; system("PAUSE"); return EXIT_SUCCESS; }[/CODE] how can i get the total of x value, x2 value, x3 value...??? …

Member Avatar for Stefano Mtangoo
0
128
Member Avatar for sana_moi

hi pleas i need help if it's possible ; i have a c++ code which can select from a DB but i can't do the code for insert a new data in my data base .

Member Avatar for sana_moi
0
139
Member Avatar for Saranya Ravi
Member Avatar for mike_2000_17
0
128
Member Avatar for fire_

Hello. I'm using this constuction to write to file: [CODE]#include <iostream> #include <fstream> using namespace std; int main () { char data [50]; cout << "Enter data\n"; cin >> data; ofstream file("data.txt"); if (!file) { cout << "File opening error"; cin.get(); return 1; } file << data; file.close(); cout << …

Member Avatar for abdelhakeem
0
131
Member Avatar for fire_

Hello. I'm writing DOS program with Visual C++ 6 and i want to log date and time to file. I'm new at programming so please tell me all #include <> and full syntax :) Also I tried time() but i recieved error: error C2064: term does not evaluate to a …

Member Avatar for fire_
0
6K
Member Avatar for Shikhin

Hi To All, I just wanted to ask you all brainies that I wanted to attempt Microsoft Certification For C++ Language. Now when I searched Microsoft certification it showed up results such as Microsoft Certified ...(Something Something). Now can anyone give me a link to the information about Microsoft C++ …

Member Avatar for AkashL
0
87
Member Avatar for autodale

I am wondering what the capabilities of C++ are for launching executables. I would like to create a simple launcher for one of my projects. It would need to launch a program in the same folder. The launched program needs to be run maximized and in Windows 98 compatibility mode. …

Member Avatar for Ketsuekiame
0
102
Member Avatar for Haxifix

Hey guys, I wrote a TicTacToe program at my friends house in like 10 minutes, so I am sure I can improve some things. Can someone please give me some idea's on either stuff to add or stuff I can improve on (make more efficient). [code]#include <iostream> using namespace std; …

Member Avatar for mrnutty
0
150
Member Avatar for mkcee

I am having difficulty reading the following input file Jon 40 Chris 50 Pete 60 what is wrong with this code that I wrote to read the above file. thank you for your help. [code]//***************** #include <iostream> #include <string> #include <stdlib.h> #include <fstream> #include <iomanip> #include<cassert> using namespace std; void …

Member Avatar for nutristars
0
226
Member Avatar for Lomko

Hello everybody, i'm a beginner in programming, so I hope someone can help me. I'm programming in Visual Studio 2008 in C++ and I'd like to use the error functionor the complementary one, erf(x) and erfc(x). I've looked for a solution in the internet and I've seen that including math.h …

Member Avatar for Lomko
0
705
Member Avatar for eysiy

I need to read .dat file which is in form: x y z d 4.860568047E+000 1.591771126E+001 4.034203053E+000 1.000000000E+000 -2.356933117E+000 2.466155815E+001 -3.108083963E+000 1.000000000E+000 -1.673650980E+000 1.986449051E+001 6.616530895E+000 1.000000000E+000 -5.323183060E+000 1.964732361E+001 -7.041398048E+000 1.000000000E+000 .... I need to read the first line and put these values into a equation, say: results = x+y+z+d, then …

Member Avatar for iamthwee
0
81
Member Avatar for figuer25

I just coded this implementation of a stack using a singly linked list. Its written in C++ using the STL. I believe I am complete with it but there may be functions I am forgetting or ways to improve/ optimize my code. I tried using exceptions to learn how to …

Member Avatar for figuer25
0
402
Member Avatar for new_programmer

I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it?

Member Avatar for new_programmer
0
179
Member Avatar for sudoku43

hello, im newbie here and also newbie in c++. I have a problem with char data type. I try writing the code input character 'D', 'd', 'R' and 'r'. if input are correct, the output will be 'OK' but turn out, even I give input other character, still give the …

Member Avatar for RogueEffect
0
168
Member Avatar for Lukezzz

Hi, I have created a ToolStripMenuItem in the MenuStrip. Is is called: [B]OneToolStripMenuItem[/B] What I need to do now is these tasks programatically: 1. Add one Item named: "Item1" 2. Create a Click Event for this "Item1" 3. Place a very small .JPG Image or Icon Before this "Item1" I …

0
60

The End.