Beginners - April 2012 (Page 34)

Creating a user defined .txt file
 
I am writing this encryption and decryption program and need the user to define the name of the .txt file for the encryption. The program compiles with no erro...
[2 replies] Last: Sorry about that, its all set now. (by toddlerj)
Making a 'Menu' for my math program (1,2)
 
1/2 Hello, I am very new to C/C++. I am trying to make a free 'Math suite' for the maths department that has taught me as a gift to them. Here is the code: ...
[20 replies] Last: bump (by nerdycameron)
by kwm12
Urgent..to write a program using Function!
 
Hi.. I am very new to programming...and Ihave a program using a goto statement.. however, I need to redo the program, using functions.. Can some body help ...
[2 replies] Last: No, He is not ! Can you help me rewrite the program using functions! ... (by kwm12)
DirectX in CodeBlocks, can't get started
 
Hi, I'm just trying to get CodeBlocks set up and running. I'm trying to compile the example DirectX project. I got the DirectX SDK and Windows SDK, and Visual...
[2 replies] Last: Does directX not provide tutorials for installing onto code::blocks? I... (by Need4Sleep)
by mariam
difficult codes
 
how to write te following codes in c++ 1- Write the code for an algorithm to find the row with the largest variance in a matrix of any size. 2-Write t...
[4 replies] Last: About your code: 1. what are the global variables supposed to be for? ... (by Athar)
Loading a data file into a 2-D array
 
Hi, for a project I have to load a .txt data file into a 2d array and for some reason it keeps outputting the number "20088763392" when I want to display the ar...
[1 reply] : double buffer; for(long i = 0; i < 20; i++) for(long j = 0; j < 4; j... (by TheDestroyer)
how to write a program ? "for beginners"
 
1. Write a C++ program that takes numbers from the user until he enter zero and display the maximum and the minimum number. 2. Write a C++ program that tak...
[6 replies] Last: I do know the first few steps as it's my first program to write so it'... (by Mona Azzam)
Compiler?
 
Sorry in advance if this is a stupid question/something obvious I overlooked. I recently started reading the tutorial, and I've decided I want to try some th...
[3 replies] Last: I use code::blocks because of how user friendly it is. Easy to pick up... (by Need4Sleep)
2d array not outputting correctly
 
I'm trying to figure out why this 2d array is not outputting what I need it to. This program is inputting from two files. First problem is that the array is onl...
[9 replies] Last: THANK YOU SO MUCH! Thanks to your input I finally finished the program... (by lcmosley)
Merging and sorting vectors.
 
Well i have an assignment for class and im having a little trouble understanding how to code this. I have 2 vectors (A & B), the goal is to 1) merge the vectors...
[9 replies] Last: while (counter < a.size && b.size) size is a function and therefore ... (by ui uiho)
Switch case 'x': case 'X': in simple form
 
I am trying to figure out How I can Do this in its simplest form. #include <iostream> using namespace std; char checkinput(char input) { if ...
[3 replies] Last: You're welcome :) (by TheDestroyer)
by bujiko
Counting vowels and consonants in a string
 
Hi, for my homework assignment my teacher wants us to read a file word by word and count the vowels and consonants in that word, among other manipulations of th...
[11 replies] Last: A actually purposefully avoided using std::string because of premature... (by Duthomhas)
by john99
C++ save data in Mysql table
 
Hello, I try to save C++ data in Mysql table, but unsuccessfuly. May be someone can help me? Thanks for helping, #include <iostream> #include <iomanip> #inclu...
[no replies]
by stuted
STL vector usage
 
Hello obsessed C++ users. I wrote a program using the STL. I hope i don't offend anyone if I share this, it may be useful for some. #include <iostream> #incl...
[3 replies] Last: Woow, never thought I would make so many mistakes, I just felt like sh... (by stuted)
compile error - undefined reference
 
What are the possible reasons that the following code would give the compile error below: //Create a system for each channel & //copy propogated field in...
[6 replies] Last: so its an undefined reference linker error....do you have any sugges... (by frenchcr)
help with classes
 
I am in the works of learning how to use classes and objects. I am trying to create 2 dice tossed rolling a random number between 1 and 6 on each die when the u...
[no replies]
N number of nested for loops
 
Hey Guys, I want to create an N number of nested loops, for any value for N inputted by the user. If N = 4, then for(blah blah blah) { for(blah bl...
[6 replies] Last: void rec_for(int num_of_loops, int some_test_case){ cout << num... (by oonej)
2D Array problem
 
Newbie here. Here's a description: A class of students take a 20-question MC exam and each question has five choices (A,B,C,D,E), only one correct and assuming ...
[3 replies] Last: Another note about the above reply. As you see, the output is adding t... (by lcmosley)
Really tough array question!
 
Declare an array of floating point elements called week that can be referenced by using any day of the week as a subscript. Assume Sunday is the first subscript...
[6 replies] Last: I would remove DaysOfWeek from the enum as it is not a day of the week... (by andywestken)
what to do when missing files from library
 
When i try to compile my Main.cc file with my Makefile, I get a compilation error. Im getting undefined references to an element called ReadFilter. Ive tri...
[10 replies] Last: Thanks TheDestroyer, I had to recompile the library to include the mis... (by frenchcr)
April 2012 Pages: 1... 3233343536... 66
  Archived months: [mar2012] [may2012]

This is an archived page. To post a new message, go to the current page.